{"openapi":"3.1.0","info":{"title":"Agoda Hotels Prices Rooms and Reviews Data (x402 & MCP)","version":"0.1.0","description":"Agoda hotel listings, nightly prices, ratings, addresses, rooms and optional guest reviews worldwide, one row per entity.","x-guidance":"Structured real-time web intelligence APIs paid per delivered row in USDC via x402. All endpoints are synchronous at POST /s/<site>/v1/<endpoint> and also exposed over stateless MCP at POST /mcp. Supports x402 v2 'upto' (Permit2, charged strictly for delivered rows) and 'exact' (EIP-3009). Empty/0-row (404), invalid input (422), timeout (504), and upstream failures (502) are never charged.","contact":{"email":"ops@opendata.best"}},"servers":[{"url":"https://x402.opendata.best"}],"paths":{"/s/agoda-com/v1/search":{"post":{"operationId":"agoda_com_search","summary":"Agoda Hotels Prices Rooms and Reviews Data: Search Agoda hotels, rooms and guest reviews","description":"Query Agoda accommodation prices, ratings, room offers and optional guest reviews by city name or Agoda URL. Unit price: $0.005000/row USDC (default quote 10 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["agoda-com","Travel"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.050000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"destination":{"type":"string","description":"A city name such as Chiang Mai, Seoul or Tokyo, in a language Agoda recognizes. A name that is not recognized as a city returns no rows; hotel page URLs, a city page URL or a city ID take precedence."},"regionId":{"type":"string","description":"Numeric Agoda city ID, such as 9395 for Bangkok. Used instead of destination, unless hotel page URLs or a city page URL are set.","pattern":"^\\d*$"},"cityPageUrl":{"type":"string","description":"Agoda city page URL, such as https://www.agoda.com/city/bangkok-th.html. Returns listed hotels without dated prices; takes precedence over destination and regionId, but not detailUrls.","pattern":"^$|^(https?://)?([A-Za-z0-9-]+\\.)*agoda\\.[A-Za-z.]{2,10}/.*city/.+$"},"detailUrls":{"type":"array","items":{"type":"string"},"description":"Up to 20 distinct Agoda hotel page URLs, such as https://www.agoda.com/asia-hotel-bangkok/hotel/bangkok-th.html. These take precedence over other targets; readable pages return hotel rows, with dated prices when available and optional review rows."},"checkin":{"type":"string","description":"Check-in date in YYYY-MM-DD format. Leave empty to use 21 days from today.","pattern":"^(\\d{4}-\\d{2}-\\d{2})?$"},"checkout":{"type":"string","description":"Check-out date in YYYY-MM-DD format, 1 to 30 nights after check-in. Leave empty to use two nights after check-in. Stays above 14 nights discover hotels with a 14-night window and price the full stay.","pattern":"^(\\d{4}-\\d{2}-\\d{2})?$"},"adults":{"type":"integer","description":"Number of adults, from 1 to 10.","default":2,"minimum":1,"maximum":10},"children":{"type":"integer","description":"Number of children, from 0 to 10. Optional childAges can specify each child's age.","default":0,"minimum":0,"maximum":10},"childAges":{"type":"array","items":{"type":"string"},"description":"Optional ages in years for each child (0-17). When set, provide one entry per child."},"rooms":{"type":"integer","description":"Number of rooms, from 1 to 10.","default":1,"minimum":1,"maximum":10},"maxResults":{"type":"integer","description":"Most rows for each destination search, city page URL, or hotel page URL. Default 70; larger numbers are collected in parts of 70. Hotels, reviews and room variants count together. The whole run stops at your maximum total charge. Free platform plan: up to 200 rows per run and 10 runs of this Actor.","default":10,"minimum":1,"maximum":20},"enrichDetails":{"type":"boolean","description":"Add descriptions, amenities, FAQs and available address details to the first search-result hotels. Guest reviews are separate rows only when includeReviews is enabled.","default":true},"enrichLimit":{"type":"integer","description":"Number of search-result hotels to enrich, from 0 to 20. Direct hotel page inputs are read separately from this setting.","default":1,"minimum":0,"maximum":20},"includeReviews":{"type":"boolean","description":"Return each available guest review as a separate billed row. Hotel and review rows share maxResults; this also enables hotel details.","default":false},"includeSponsored":{"type":"boolean","description":"Keep hotels Agoda marks as sponsored.","default":false},"includeRooms":{"type":"boolean","description":"Return each sellable room variant (room type, bed configuration, price plan) as a separate billed row, in addition to hotel and review rows. Room rows share maxResults.","default":false},"domain":{"type":"string","description":"Agoda site, such as www.agoda.com, www.agoda.co.th or www.agoda.co.jp. A supported country site determines the language and currency.","default":"www.agoda.com","pattern":"^(([A-Za-z0-9-]+\\.)*agoda\\.[A-Za-z.]{2,10})?$"},"locale":{"type":"string","description":"Language and currency setting on www.agoda.com, such as en-us for USD or ja-jp for JPY. A supported country site overrides this setting.","default":"en-us"}},"additionalProperties":false},"example":{"destination":"Bangkok","enrichDetails":false,"includeReviews":false,"includeRooms":false,"maxResults":10}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_agoda_com"},"example":{"jobId":"job_agoda-co_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"rowType":"example_rowType","id":"example_001","service":"example_service","name":"example_name","parentName":"example_parentName","text":"example_text"}],"meta":{"site":"agoda-com","endpoint":"search","maxResults":10,"payment":{"scheme":"upto","network":"eip155:84532","quotedMicrousd":50000,"settledMicrousd":5000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/agoda-com/v1/health":{"get":{"operationId":"agoda_com_health","summary":"Agoda Hotels Prices Rooms and Reviews Data: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["agoda-com","health"],"responses":{"200":{"description":"Operational","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"charged":{"type":"boolean"}}},"ErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"HealthStatus":{"type":"object","required":["ok","site","status","endpoints","rowsBilled"],"properties":{"ok":{"type":"boolean"},"site":{"type":"string"},"status":{"type":"string","enum":["operational","unavailable"]},"endpoints":{"type":"array","items":{"type":"string"}},"rowsBilled":{"type":"integer"}}},"Row_agoda_com":{"type":"object","properties":{"rowType":{"type":["string","null"],"title":"Row type"},"id":{"type":["string","null"],"title":"Row ID"},"service":{"type":["string","null"],"title":"Service"},"name":{"type":["string","null"],"title":"Name"},"parentName":{"type":["string","null"],"title":"Parent hotel"},"text":{"type":["string","null"],"title":"Review text"},"hotelId":{"type":["string","null"],"title":"Hotel ID"},"area":{"type":["string","null"],"title":"Area"},"price":{"type":["number","null"],"title":"Price"},"priceDisplay":{"type":["string","null"],"title":"Price display"},"currency":{"type":["string","null"],"title":"Currency"},"rating":{"type":["number","null"],"title":"Rating"},"reviewCount":{"type":["number","null"],"title":"Reviews"},"destination":{"type":["string","null"],"title":"Destination"},"domain":{"type":["string","null"],"title":"Domain"},"url":{"type":["string","null"],"format":"uri","title":"URL"},"phones":{"type":["string","null"],"title":"Phones"},"emails":{"type":["string","null"],"title":"Emails"},"address":{"type":["string","null"],"title":"Address"},"geo":{"type":["string","null"],"title":"Geo"},"person":{"type":["string","null"],"title":"Person"},"org":{"type":["string","null"],"title":"Organization"},"web":{"type":["string","null"],"title":"Web"},"leadSource":{"type":["string","null"],"title":"Lead source"},"leadReveal":{"type":["string","null"],"title":"Lead reveal"},"leadAbsences":{"type":["string","null"],"title":"Lead absences"},"sponsored":{"type":["boolean","null"],"title":"Sponsored"},"listingId":{"type":["string","null"],"title":"Listing ID"},"scrapedAt":{"type":["string","null"],"format":"date-time","title":"Scraped at"},"policyCheckIn":{"type":["string","null"],"title":"Policy check-in"},"policyCheckOut":{"type":["string","null"],"title":"Policy check-out"},"priceIncludingTaxes":{"type":["number","null"],"title":"Price incl. taxes"},"isLuxuryHotel":{"type":["boolean","null"],"title":"Luxury"},"isAvailable":{"type":["boolean","null"],"title":"Available"},"reviewScore":{"type":["number","null"],"title":"Review score"}},"additionalProperties":true},"Response_agoda_com":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string"},"done":{"type":"boolean"},"rowCount":{"type":"integer","minimum":1},"rowsBilled":{"type":"integer","minimum":1},"rowsDelivered":{"type":"integer","minimum":1},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row_agoda_com"}},"meta":{"type":"object","properties":{"site":{"type":"string"},"endpoint":{"type":"string"},"maxResults":{"type":"integer"},"payment":{"type":"object","properties":{"scheme":{"type":"string"},"network":{"type":"string"},"quotedMicrousd":{"type":"integer"},"settledMicrousd":{"type":"integer"},"transaction":{"type":"string"},"payer":{"type":"string"}}}}}},"required":["jobId","status","done","rowCount","rows"]}}},"x-discovery":{"ownershipProofs":["0xdb7c562a3ef6f9f29da4672abdab1489e82e910a91b863e3c22b905df6522b7223798a84245e0452cab689483b6cbb7cd8c13141319df982b213dea31ee7e4311c"]}}