> ## Documentation Index
> Fetch the complete documentation index at: https://docs.socq.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Hotel Price Tracker

> Get a hotel's lowest nightly price for each check-in date over the coming weeks from Google Hotels.

# Hotel Price Tracker

The price calendar behind Google Hotels' date picker, as rows. For one hotel you get the lowest price for each check-in night, usually six to eight weeks of dates starting from your check-in. Spot the cheapest nights to travel, chart how a hotel prices weekends against weekdays, or feed a revenue manager's rate-shopping report.

```json theme={"dark"}
{
  "hotel_id": "ChoIyKbJ6puqvPf8ARoNL2cvMTFqNHR2MjczeBAB",
  "currency": "USD"
}
```

Provide a hotel\_id from the id field of Google Hotels Search. check\_in sets the first date of the calendar (tomorrow when omitted); give check\_out with it. Each request costs 4 credits; each row is one check-in date with the price for one night.

## Standard Result Fields

Task results use the stable SocQ fields below. Source-specific field names and formats are normalized without inferring or enriching values that the source did not provide. To request a smaller field set, use `fields` for MCP queries, `_result_fields` for typed tools, or `--result-fields` in the CLI. Declared fields remain present when their value is `null`.

| Field | Type | Nullable | Description |
| - | - | - | - |
| `id` | `string` | Yes | Hotel ID and check-in date, such as `ChoI...:2026-12-10`. |
| `platform` | `string` | No | Platform the result belongs to, such as `instagram` or `linkedin`. |
| `resource` | `string` | No | SocQ resource represented by the result, such as `videos` or `comments`. |
| `type` | `string` | No | Category of the result item, such as `video`, `post`, or `comment`. |
| `url` | `string` | Yes | URL of the hotel on Google Hotels. |
| `published_at` | `string` | Yes | Time the source item was published, in ISO 8601 format when available. |
| `collected_at` | `string` | No | Time SocQ collected or processed this result, in ISO 8601 format. |
| `hotel_id` | `string` | Yes | Hotel ID the prices are for. |
| `name` | `string` | Yes | Name of the hotel. |
| `check_in` | `string` | Yes | Check-in date, in YYYY-MM-DD format. |
| `check_out` | `string` | Yes | Check-out date, in YYYY-MM-DD format. |
| `price` | `object` | Yes | Lowest price for that night. |
| `price.amount` | `number` | Yes | Price as a number. |
| `price.currency` | `string` | Yes | Three-letter currency code of the price. |
| `price.formatted` | `string` | Yes | Price with its currency code, such as `USD 176`. |

The following example shows the response format for a completed task. Actual data depends on your query.

## Completed Task Response

```json theme={"dark"}
{
  "code": 200,
  "data": {
    "task_id": "example-google-hotels-hotel-prices",
    "status": "succeeded",
    "public_id": "google-hotels/hotel-prices",
    "result_count": 1,
    "credits_amount": 4,
    "results": {
      "limit": 50,
      "next_cursor": null,
      "has_more": false,
      "schema_id": "hotel-price",
      "schema_version": "1.0",
      "items": [
        {
          "id": "ChoIyKbJ6puqvPf8ARoNL2cvMTFqNHR2MjczeBAB:2026-11-18",
          "platform": "google-hotels",
          "resource": "hotel-prices",
          "type": "hotel-price",
          "url": "https://www.google.com/travel/hotels/entity/ChoIyKbJ6puqvPf8ARoNL2cvMTFqNHR2MjczeBAB",
          "published_at": null,
          "collected_at": "2026-11-17T23:54:23.792170Z",
          "hotel_id": "ChoIyKbJ6puqvPf8ARoNL2cvMTFqNHR2MjczeBAB",
          "name": "The Rockaway Hotel",
          "check_in": "2026-11-18",
          "check_out": "2026-11-19",
          "price": {
            "amount": 206,
            "currency": "USD",
            "formatted": "USD 206"
          }
        }
      ]
    }
  }
}
```


## OpenAPI

````yaml api-manual/agent-api/agent-api.json POST /v1/google-hotels/hotel-prices
openapi: 3.1.0
info:
  title: SocQ Agent API
  version: v1-87892a6484c2
  description: Asynchronous social data API generated from the SocQ Capability Registry.
servers:
  - url: https://api.socq.ai
security: []
paths:
  /v1/google-hotels/hotel-prices:
    post:
      tags:
        - google-hotels
      summary: Hotel Price Tracker API
      description: >-
        Collect the lowest nightly price of a hotel for each check-in date on
        Google Hotels.
      operationId: socq_google_hotels_hotel_prices
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              additionalProperties: false
              properties:
                callback_url:
                  type: string
                  format: uri
                check_in:
                  type: string
                  pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
                  description: >-
                    Check-in date in YYYY-MM-DD format. Defaults to tomorrow;
                    give check_out with it.
                check_out:
                  type: string
                  pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
                  description: >-
                    Check-out date in YYYY-MM-DD format, after check_in and at
                    most 30 nights later.
                currency:
                  type: string
                  pattern: ^[A-Za-z]{3}$
                  description: Three-letter currency code for prices, such as USD or EUR.
                hotel_id:
                  type: string
                  minLength: 1
                  description: >-
                    Hotel ID from the `id` field of Google Hotels Search
                    results.
                language_code:
                  type: string
                  minLength: 2
                  maxLength: 10
                  default: en
                  description: Language code of the results. Defaults to en.
                location_code:
                  type: integer
                  minimum: 1
                  description: >-
                    Search market location code. Defaults to 2840 (United
                    States).
                  default: 2840
              required:
                - hotel_id
              description: >-
                Provide a hotel_id from Google Hotels Search. Each row is the
                lowest nightly price for one check-in date, covering roughly the
                next two months from check_in.
      responses:
        '200':
          description: Task accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentSubmitResponse'
        '422':
          description: Input validation failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentValidationErrorResponse'
      security:
        - bearerAuth: []
        - apiKeyAuth: []
components:
  schemas:
    AgentSubmitResponse:
      type: object
      properties:
        code:
          type: integer
          const: 200
        data:
          type: object
          properties:
            task_id:
              type: string
            status:
              type: string
            created_time:
              type:
                - string
                - 'null'
          required:
            - task_id
            - status
    AgentValidationErrorResponse:
      type: object
      properties:
        code:
          type: integer
          const: 422
        error:
          type: object
          properties:
            message:
              type: string
            type:
              type: string
            details:
              type: object
          required:
            - message
            - type
      required:
        - code
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.