{
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "",
    "title": "Trip.com",
    "version": "1",
    "x-aisa-capabilities": {
      "idempotency": "Idempotency-Key",
      "max_price": "X-AISA-Max-Price-USD",
      "quote": {
        "header": "X-AISA-Cost-Mode",
        "value": "quote"
      }
    },
    "x-aisa-catalogs": {
      "trip": {
        "description": "",
        "title": "Trip.com",
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          }
        },
        "x-aisa-document": {
          "facts_hash": "7363951cafc30b2aefbcd70c18141a6af0edbde1d7d5ff414d9fa2649ebafa43",
          "generator_version": "3",
          "protocol_version": "1",
          "schema_version": "1"
        },
        "x-aisa-plans": {
          "builder": 1.0,
          "display_plan": "payg",
          "payg": 1.0,
          "similarweb_payg": 1.0,
          "team": 1.0,
          "version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb"
        }
      }
    },
    "x-aisa-configured-paths": [
      "/apis/v1/trip/hotel",
      "/apis/v1/trip/reviews"
    ],
    "x-aisa-document": {
      "composer_version": "31",
      "facts_hash": "7363951cafc30b2aefbcd70c18141a6af0edbde1d7d5ff414d9fa2649ebafa43",
      "generator_version": "3",
      "protocol_version": "1",
      "response_pending": [],
      "schema_version": "1",
      "public_projection": {
        "version": "4",
        "source_document_hash": "sha256:11c0027da7d7143998af4656c0f0f3dbf45f76bc76dc12ca6acbdaf0461857a3"
      },
      "document_hash": "sha256:66b70f3c364e1f0d4ab11c4e5ce92d6108b93121bfb97a04191e5948d69f4e09"
    },
    "x-aisa-plans": {
      "builder": 1.0,
      "display_plan": "payg",
      "payg": 1.0,
      "similarweb_payg": 1.0,
      "team": 1.0,
      "version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb"
    },
    "x-aisa-provider": "trip"
  },
  "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
  "openapi": "3.1.0",
  "paths": {
    "/apis/v1/trip/hotel": {
      "post": {
        "description": "Trip.com Hotel\n\n> **请求示例待验证。** 此接口的请求示例尚未在生产环境验证。静态示例用于说明请求格式，请替换为自己的参数。正式调用前，可用免费的报价模式（`X-AISA-Cost-Mode: quote`）查看预估费用。",
        "operationId": "post_trip_apis_v1_trip_hotel",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "additionalProperties": false,
                "properties": {
                  "adults": {
                    "maximum": 9007199254740991,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "checkIn": {
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                    "type": "string"
                  },
                  "checkOut": {
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                    "type": "string"
                  },
                  "children": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "currency": {
                    "maxLength": 3,
                    "minLength": 3,
                    "type": "string"
                  },
                  "hotelId": {
                    "minLength": 1,
                    "type": "string"
                  },
                  "locale": {
                    "minLength": 2,
                    "type": "string"
                  },
                  "login": {
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "type": "integer"
                  },
                  "rooms": {
                    "maximum": 9007199254740991,
                    "minimum": 1,
                    "type": "integer"
                  }
                },
                "required": [
                  "hotelId",
                  "checkIn",
                  "checkOut",
                  "rooms",
                  "adults",
                  "children",
                  "currency",
                  "locale",
                  "login"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "description": "The response envelope and container type are documented, but the business fields are not fully specified.",
                  "properties": {
                    "data": {
                      "additionalProperties": true,
                      "minProperties": 1,
                      "type": "object"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Normalized successful response"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Error response; upstream passthrough responses may use provider formats"
          }
        },
        "summary": "Trip.com Hotel",
        "tags": [
          "Trip.com"
        ],
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "mpp": false,
          "quote": {
            "supported": true
          },
          "x402": false
        },
        "x-aisa-catalog-id": "trip",
        "x-aisa-category": "trip",
        "x-aisa-contract-source": "handler",
        "x-aisa-docs-url": "https://aisa.one/docs/api-reference/trip/post_trip_apis_v1_trip_hotel",
        "x-aisa-example": {
          "reason": "inputs_undeclared",
          "request_contract_sha256": "c604ac167558c67778c68a7c6d0b87ebc9f2d72df81332057bb4c2747e9f113a",
          "state": "pending"
        },
        "x-aisa-latency": {
          "basis": "sweep_seed"
        },
        "x-aisa-latency-class": "fast",
        "x-aisa-observed-responses": {
          "200": {
            "completeness": "observed",
            "last_observed": "2026-11-28",
            "origins": [
              "customer"
            ],
            "schema": {
              "additionalProperties": true,
              "properties": {
                "data": {
                  "additionalProperties": true,
                  "type": "object"
                }
              },
              "type": "object"
            }
          }
        },
        "x-aisa-pricing": {
          "customer_pricing": "usage_based",
          "estimate_source": "unavailable",
          "estimate_unavailable_reason": "reference_request_unavailable"
        },
        "x-aisa-response-contract-hash": "sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
        "x-aisa-runtime-operation": {
          "method": "POST",
          "operation_id": "post_trip_apis_v1_trip_hotel",
          "path": "/apis/v1/trip/hotel"
        },
        "x-aisa-status": "enabled",
        "x-aisa-validation": "runtime",
        "x-aisa-verification": {
          "state": "pending",
          "reason": "inputs_undeclared"
        }
      }
    },
    "/apis/v1/trip/reviews": {
      "post": {
        "description": "Trip.com Reviews\n\n> **请求示例待验证。** 此接口的请求示例尚未在生产环境验证。静态示例用于说明请求格式，请替换为自己的参数。正式调用前，可用免费的报价模式（`X-AISA-Cost-Mode: quote`）查看预估费用。",
        "operationId": "post_trip_apis_v1_trip_reviews",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "additionalProperties": false,
                "properties": {
                  "geoCode": {
                    "description": "Two-letter ISO 3166-1 country code of the proxy the page is fetched through, e.g. 'US', 'SG'. Use the target site's own country (e.g. 'ID' for lazada.co.id, 'TH' for th.hotels.com): it sets the localized prices, currency, language and availability.",
                    "pattern": "^[A-Za-z]{2}$",
                    "type": "string"
                  },
                  "hotelId": {
                    "description": "Trip.com hotel id, the `hotelId` in the hotel page URL (e.g. '3267031'). Reviews come back for THIS id even if `url` names another hotel.",
                    "pattern": "^\\d+$",
                    "type": "string"
                  },
                  "locale": {
                    "description": "Review language, e.g. 'en-US', 'id-ID' (default 'en-US').",
                    "minLength": 2,
                    "type": "string"
                  },
                  "page": {
                    "description": "Review page, starting at 1 (default 1).",
                    "maximum": 9007199254740991,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "pageSize": {
                    "description": "Reviews per page, up to 100 (default 100).",
                    "maximum": 100,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "url": {
                    "description": "Full Trip.com page URL, e.g. https://us.trip.com/hotels/...",
                    "format": "uri",
                    "type": "string"
                  }
                },
                "required": [
                  "url",
                  "hotelId",
                  "geoCode"
                ],
                "type": "object"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": false,
                  "description": "The response envelope and container type are documented, but the business fields are not fully specified.",
                  "properties": {
                    "data": {
                      "additionalProperties": true,
                      "minProperties": 1,
                      "type": "object"
                    }
                  },
                  "required": [
                    "data"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Normalized successful response"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Error response; upstream passthrough responses may use provider formats"
          }
        },
        "summary": "Trip.com Reviews",
        "tags": [
          "Trip.com"
        ],
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "mpp": false,
          "quote": {
            "supported": true
          },
          "x402": false
        },
        "x-aisa-catalog-id": "trip",
        "x-aisa-category": "trip",
        "x-aisa-contract-source": "handler",
        "x-aisa-docs-url": "https://aisa.one/docs/api-reference/trip/post_trip_apis_v1_trip_reviews",
        "x-aisa-example": {
          "reason": "inputs_undeclared",
          "request_contract_sha256": "c604ac167558c67778c68a7c6d0b87ebc9f2d72df81332057bb4c2747e9f113a",
          "state": "pending"
        },
        "x-aisa-latency": {
          "basis": "sweep_seed"
        },
        "x-aisa-latency-class": "fast",
        "x-aisa-pricing": {
          "customer_pricing": "usage_based",
          "estimate_source": "unavailable",
          "estimate_unavailable_reason": "reference_request_unavailable"
        },
        "x-aisa-response-contract-hash": "sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
        "x-aisa-runtime-operation": {
          "method": "POST",
          "operation_id": "post_trip_apis_v1_trip_reviews",
          "path": "/apis/v1/trip/reviews"
        },
        "x-aisa-status": "enabled",
        "x-aisa-validation": "runtime",
        "x-aisa-verification": {
          "state": "pending",
          "reason": "inputs_undeclared"
        }
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ]
}
