API Reference

API Overview

ScrapeGuys exposes real-time web data through a small set of REST endpoints. This page covers the concepts shared by every scraper — authentication, base URLs, the async job workflow, rate limits and errors. Each scraper then has its own reference page.

Base URLs

The scrapers are served by four API surfaces on two independent key families (see Authentication): the Hotel, Social Scraper and Bus APIs share gsk_… keys, each surface with its own scopes, and the Flight API has its own fsk_… keys.

SurfaceBase URLCovers
Hotel APIhttps://api.scrapeguys.com/api/v1/scraperMeta (Google Hotels) + OTA (Agoda, Booking.com, MakeMyTrip, Expedia, Goibibo, Cleartrip), plus Destination Search, Rate Shop, Cheapest Room and Hotel Details
Social Scraper APIhttps://api.scrapeguys.com/api/v1/social-scraperInstagram (profile posts, post + comments) — same gsk_… keys, own scopes
Flight APIhttps://api.scrapeguys.com/api/v1/flight-scraperMeta (Google Flights) + OTA (MakeMyTrip, Cleartrip, Paytm)
Bus APIhttps://api.scrapeguys.com/api/v1/bus-scraperMakeMyTrip Bus (route and date fares) — same gsk_… keys, own scope
Note: replace api.scrapeguys.com with the host provided to you during onboarding if it differs. All examples on these docs use the host above.

Authentication

Every request must include your API key in the X-API-Key header. Keys are 68-character strings; the Hotel API issues gsk_… keys (the Social Scraper and Bus APIs use them too) and the Flight API issues fsk_… keys. The two families are independent — a gsk_… key does not authenticate the Flight API and vice-versa.

Scopes. Both key types carry an explicit scope list controlling which sources they may call. A gsk_… key can hold: gmaps (Google Hotels), ota:agoda (Agoda), ota:booking (Booking.com), ota:makemytrip (MakeMyTrip), ota:expedia (Expedia), ota:goibibo (Goibibo), ota:cleartrip (Cleartrip Hotels), destination:booking / destination:makemytrip / destination:cleartrip (Destination Search), details:makemytrip / details:booking / details:cleartrip (Hotel Details), and instagram:profile_posts / instagram:post (Instagram), and bus:makemytrip (MakeMyTrip Bus). A fsk_… key can hold: google_flights (Google Flights) and/or makemytrip (MakeMyTrip Flights, both its app and desktop platforms), cleartrip (Cleartrip Flights), paytm (Paytm Flights), ixigo (Ixigo Flights), goibibo (Goibibo Flights) and/or skyscanner (Skyscanner Flights), per source. Which of these a given key actually carries depends on when it was issued and what was requested for it — see below. Calling an endpoint or source outside your key's scopes returns 403 with {"detail": "This API key does not have the '<scope>' scope."}. There is no wildcard scope — a source added later is never automatically granted to existing keys. See the OTA Directory (GET /otas/) for a live, per-key readout of which OTA scopes your gsk_… key actually holds.

Existing keys keep working. Scoping was introduced after both APIs already had customers on unscoped keys. Every key that was live at cutover was migrated to full access for the scopes that existed at that time, automatically and with no key-value change — nothing breaks and no action is needed on your side. Migrated Hotel keys carry gmaps, ota:agoda, ota:booking and ota:makemytrip; migrated Flight keys carry google_flights and makemytrip. ota:expedia, ota:goibibo, destination:booking and the Cleartrip hotel scopes came later and have to be added to a migrated key explicitly. The same goes for cleartrip (Cleartrip Flights), paytm (Paytm Flights), ixigo (Ixigo Flights), goibibo (Goibibo Flights) and skyscanner (Skyscanner Flights). Scoped (narrower) keys are opt-in from here: ask your ScrapeGuys contact if you want a new key limited to specific sources.
destination:booking is not granted by default, including to full-access keys. It's a separate scope from ota:booking, not implied by it — pricing one hotel and enumerating an entire city are different products with unit costs orders of magnitude apart. Because it was added after the migration above, it is never granted implicitly; ask your ScrapeGuys contact to add it explicitly before your first call to Destination Search.
ota:goibibo and the Cleartrip hotel scopes (ota:cleartrip, details:cleartrip, destination:cleartrip) are available on request. The same "existing keys keep working" migration does not reach them — they were added after it, same as destination:booking above. Ask your ScrapeGuys contact to add them, and see the Goibibo and Cleartrip Hotels guides: a call can still return 400 until the source itself is enabled for you, even once your key holds the scope.
Authorization header
X-API-Key: gsk_a1b2c3d4e5f6... # Hotel API (Google Hotels + OTA rates) X-API-Key: fsk_a1b2c3d4e5f6... # Flight API (Google Flights)

Request free-tier keys (1,000 credits, no card needed) to get started.

The job workflow

Every scraping endpoint is asynchronous. You submit a job, receive a job_id and a poll_url, then poll until the job reaches a terminal state:

  1. Submit — POST …/scrape/ (or POST …/ota-price/) returns 202 with { job_id, status: "pending", poll_url }.
  2. Poll — GET the poll_url every ~2 seconds. status moves pending → processing → completed (or failed). Polling is free.
  3. Read — when status is completed, the result object holds the data.
Jobs poll on their own surface: Hotels → Meta jobs at /scrape/{job_id}/, Hotels → OTA jobs at /ota-price/{job_id}/, Hotels → Destination Search jobs at /destination-search/{job_id}/, Hotels → Rate Shop jobs at /rate-shop/{job_id}/, Hotels → Cheapest Room jobs at /cheapest-room/{job_id}/ (an OTA job can be read at either /ota-price/{job_id}/ or /cheapest-room/{job_id}/), Hotels → Hotel Details jobs at /hotel-details/{job_id}/, Flights jobs (any source) at /scrape/{job_id}/ on the Flight API, Bus jobs at /scrape/{job_id}/ on the Bus API, and Instagram jobs at the poll_url their submit returns. Polling a job on another family's endpoint returns 404.
statusMeaning
pendingAccepted, not started yet. Poll again.
processingRunning. Poll again.
completedFinished with an answer in result. A search that ran and found nothing (for example sold_out: true, or no flights) is still completed, as is a flight expansion (fare families, review, checkout) that finds the fare sold out: it keeps error_category: "fare_unavailable" and carries result.sold_out: true.
failedFinished without a usable result; error_message says why (and error_category where the job carries one). The client dashboard labels these jobs Completed - No Data.

completed and failed are final. Google Hotels also takes an optional X-API-Version header (1, the default, or 2) and echoes api_version on submit and poll — see the Google Hotels guide.

Rate limits & quotas

Limits are enforced per API client and are configurable per plan. Defaults:

LimitDefaultWindow
Rate limit10 requestsper minute
Daily quota1,000 requestsper day (UTC)
Monthly quota20,000 requestsper billing cycle

"Per billing cycle" is not always the calendar month: each client has a billing_cycle_day (1–28) the monthly quota resets on. New clients are anchored to their sign-up day; clients provisioned before billing cycles existed run on day 1 — the calendar month, unchanged. GET /usage/'s billing_period block reports your account's actual window.

Exceeding any limit returns HTTP 429 with a descriptive detail: "Rate limit exceeded (10/min). Try again shortly." for the per-minute limit, "Daily quota exceeded (1000/day). Resets at midnight UTC." for the daily quota, and "Monthly quota exceeded (20000/month)." for the monthly one. A per-minute 429 clears within the minute; a quota 429 lasts until the daily or billing-period reset.

What counts as one request. One accepted job is one unit, counted against your daily and monthly quota when it finishes. A batch is one unit per item, a Rate Shop one per cell, a Destination Search one per sweep however many properties it returns, and a Hotel Details lookup one, found or not. Limits and quotas belong to your client account, not to a single key: every key you hold draws on the same pool.

Batch requests are admitted or refused as a whole. A batch consumes one unit per item against every limit — a batch of 20 hotels needs 20 per-minute slots and 20 units of daily and monthly quota — all checked before any job is created. If it does not fit, the request returns 429 saying how many it needed and how many remain (e.g. "This batch needs 20 requests but only 10 remain in this minute (10/min). Nothing was submitted; retry next minute or split the batch."), no job is created and nothing is billed or counted. At the default 10 requests/minute, a batch of more than 10 items is always refused: split it. A batch takes at most 20 items (hotels on the Hotel API, routes on the Flight API), and POST /batch/results/ reads at most 20 job IDs at a time. If an item cannot be accepted, the Hotel API still answers 202 and lists that item with status: "failed" and an error: nothing ran for it, so resubmit just that item.
Rate Shop consumes one unit per cell — hotels × otas × dates. A 10-hotel, 3-OTA, 30-date shop is 900 units. The whole matrix is priced against your quota before any work starts and refused as a unit if it won't fit, with the arithmetic in the error — never billed for a partial matrix.
Polling is free. Only job-submitting calls consume rate limit and quota — poll endpoints, batch results, /usage/ and /otas/ are never counted.

Errors

StatusMeaning
400Invalid input or a refused request — validation errors are reported per field; other refusals return {"error": "…"}.
401Missing, invalid, or deactivated API key.
403Key is valid but lacks the scope for the requested source/scraper.
404Job not found (or not owned by your account).
429Rate limit or quota exceeded.
500Unexpected server error.
503The service could not accept the job right now (on /scrape/, /ota-price/, /cheapest-room/ and /batch/). Nothing was run or billed; retry shortly.
Fail-soft results. A scrape that finds nothing is not an HTTP error. A poll of your own, in-scope job returns 200: a job ends completed with an empty result (e.g. no_results, sold_out: true) or failed with a human-readable error_message. Read each scraper's page for specifics.

error_category

Hotel scrape, destination-search and hotel-details jobs carry an error_category next to error_message: "" on success, otherwise one of the values below. Every poll and every Rate Shop row returns it.

error_categoryMeaningBilled?What to do
not_matchedThe hotel is not on this OTA — the same condition Rate Shop reports as hotel_not_matched.YesDon't retry; fix the identifiers.
not_bookableFound, but not bookable for those inputs.YesChange the dates or occupancy.
invalid_inputThe request itself was unusable.YesCorrect the request.
blockedThe OTA refused the request.NoRetry later.
transientNetwork, timeout or temporary failure, including a failed hotel-matching call (read it as "retry later", never "not on this OTA").NoRetry.
rotationThe attempt hit a rotated-out route.NoRetry.
errorInternal error.NoRetry; contact support if it persists.
What is billed on failure. A job is billed only when it succeeded or failed with an answer about your request (error_category not_matched, not_bookable, invalid_input, invalid_search, fare_unavailable or pan_required). A flight job that completes as a sold-out answer (fare_unavailable with result.sold_out: true) is billed the same way. Failures that are ours — blocked, transient, rotation, error, or no category — are not billed and do not use quota, though they still count in failure_count. Retry those. Jobs stuck in processing are failed by a sweeper and never billed.

Usage endpoint

Check your consumption against your quotas at any time. Available on both surfaces:

GET/api/v1/scraper/usage/?days=30
GET/api/v1/flight-scraper/usage/?days=30
GET /usage/
# Hotel API (Google Hotels + OTA rates) curl "https://api.scrapeguys.com/api/v1/scraper/usage/?days=30" \ -H "X-API-Key: gsk_your_api_key" # Flight API (Google Flights) curl "https://api.scrapeguys.com/api/v1/flight-scraper/usage/?days=30" \ -H "X-API-Key: fsk_your_api_key"
200 OK
{ "client": "Your Company Name", "in_flight": { "units": 3, "available_today": 855, "available_this_month": 19140 }, "billing_period": { "cycle_day": 1, "start": "2026-04-01", "end": "2026-04-30", "resets_on": "2026-05-01" }, "lifetime": { "total_requests": 12450, "total_bandwidth_kb": 3245678.5 }, "limits": { "rate_limit_per_minute": 10, "daily_quota": 1000, "monthly_quota": 20000 }, "usage": [ { "date": "2026-04-08", "request_count": 142, "success_count": 138, "failure_count": 4, "total_duration_seconds": 856.3, "total_bandwidth_kb": 36890.2, "one_way_search_count": 78, "round_trip_search_count": 12 } ] }

days is clamped into the 1–90 range (out-of-range values are adjusted, not rejected); a non-integer returns 400 with a message saying days must be an integer from 1 to 90.

billing_period is the window "monthly" means for your account — the monthly quota is summed over your billing cycle, which starts on cycle_day of each month and resets on resets_on, the date your monthly quota springs back to the full amount. start and end are both inclusive. Identical shape on both APIs, so a customer of both reads one contract.

in_flight (Hotel API only) is the work you have already submitted that has not finished and been billed yet. units is that count; available_today and available_this_month are your remaining quota after subtracting it, so they are the numbers that predict a Rate Shop 429. Submits are checked against billed usage alone, not in_flight: a single job is refused once billed usage reaches the quota, and a batch is refused unless billed usage plus the number of items fits within it. The block is left out if it cannot be computed.

Flight API only: one_way_search_count and round_trip_search_count split each day's searches (/scrape/ and /batch/ jobs) by trip type — a search with a return_date is a round trip. They are for reporting only and do not change quota: every job still counts as one request_count. Expansions (fare families, review, checkout, …) are not split, and days before the split was recorded show 0. The Hotel API response does not include these fields.

Surface difference: the data-transfer fields (lifetime.total_bandwidth_kb, per-day total_bandwidth_kb) exist on the Hotel API only. The Flight API usage response reports requests, successes, failures and durations — no data-transfer figures. total_bandwidth_kb is the data transferred for your jobs, in KB, failed jobs included; it is informational, and quota consumption is request_count. The Flight API's lifetime block carries total_requests only.

Client dashboard

A browser dashboard of your own scraping activity — submitted / succeeded / Completed - No Data / in-flight counts as KPI cards, a time-series chart, and a PDF export. “Completed - No Data” counts the jobs whose status is failed — jobs that ended without a usable result (in the JSON below the same count is the field failed). That can be a search the source site had no matching results for, or a transient error; poll the job and check its error_message, and retry if it is retryable. Searches that ran and simply found nothing end completed with an empty result and are counted as succeeded. Sign in with the portal username/email + password you were provisioned (ask your ScrapeGuys contact), or with any of your active Hotel API keys (gsk_…) or Flight API keys (fsk_…). A Hotel API client sees its hotel jobs; a Flight API client sees its flight jobs; a login holding both gets Hotels and Flights tabs. Either way the dashboard is scoped server-side to your data only, and access ends the moment your credentials are revoked on our side.

On the flight view every job is counted — searches and expansions (fare families, review, checkout, …) alike — by the time it was submitted.

Hotel view: destination searches, Hotel Details lookups, Instagram and Bus jobs aren't in the dashboard's counts yet — on the hotel view, the KPI cards, time-series chart and PDF cover Google Hotels and OTA per-hotel jobs (Rate Shop and Cheapest Room jobs included) only. They do count toward the usage and quota figures on GET /usage/ above, so the two can disagree if you use Destination Search or Hotel Details.
GEThttps://api.scrapeguys.com/client/scrape-dashboard/

For programmatic access, the same stats are available as JSON or PDF using just your API key — no sign-in needed:

GET/client/scrape-dashboard/data/?range=7d
GET/client/scrape-dashboard/pdf/?range=7d
GET /client/scrape-dashboard/data/
curl "https://api.scrapeguys.com/client/scrape-dashboard/data/?range=7d" \ -H "X-API-Key: gsk_your_api_key"
ParamOptionalDescription
rangeyesQuick window ending now, e.g. 10m, 30m, 7d, or a calendar to-date window: mtd (since the start of the current month) or qtd (since the start of the current quarter), in Asia/Kolkata time. To-date windows render at hour, day or month granularity only. Wins over start/end when present.
start, endyesYYYY-MM-DD or full ISO 8601. Ignored if range is set.
granularityyesminute | hour | day | month. When omitted: auto-picked from a range window (minute ≤3h, hour ≤7d, day ≤90d, month beyond), and hour for a start/end window. For mtd/qtd it is never finer than hour; an explicit minute is replaced by the auto-picked size and reported in warnings.
productyeshotel or flight. Selects which of your products the page, JSON or PDF counts. When omitted it defaults to the product your key or login holds — a Flight API key alone reads the flight view, a Hotel API key the hotel view, and a login holding both shows hotel. A key only ever reads its own product, so product cannot widen access. meta.product in the JSON says which product a response counts.
scraper_typeyesNarrows the counts to one engine: google, or an OTA slug — agoda, booking, makemytrip, expedia, goibibo, cleartrip (aliases such as mmt are accepted too; ota works as an alternate param name). With product=flight it narrows to one flight source instead: google_flights, makemytrip, cleartrip, paytm, ixigo, goibibo or skyscanner. per_scraper_type always covers every type regardless of this filter; series, totals and per_client are narrowed.

With nothing supplied the window defaults to the last 7 days, every scraper type. Unrecognized values are ignored (not rejected) and reported back in a warnings array; the request still succeeds. A bad range, start or end (or start after end) falls back to a window sized by the granularity — the last 24 hours at the default hour.

200 OK
{ "series": [ { "bucket": "2026-08-06T00:00:00+05:30", "label": "2026-08-06 00:00", "submitted": 42, "succeeded": 39, "failed": 2, "in_flight": 1, "by_scraper_type": { "google": 30, "agoda": 9, "booking": 3 } } ], "per_client": [ { "client_id": 123, "client_name": "Your Company Name", "submitted": 312, "succeeded": 298, "failed": 14, "in_flight": 0, "success_rate": 95.5 } ], "per_scraper_type": [ { "scraper_type": "google", "label": "Google", "submitted": 210, "succeeded": 201, "failed": 9, "in_flight": 0, "success_rate": 95.7, "share": 67.3 }, { "scraper_type": "agoda", "label": "Agoda", "submitted": 68, "succeeded": 65, "failed": 3, "in_flight": 0, "success_rate": 95.6, "share": 21.8 }, { "scraper_type": "booking", "label": "Booking.com", "submitted": 34, "succeeded": 32, "failed": 2, "in_flight": 0, "success_rate": 94.1, "share": 10.9 } ], "totals": { "submitted": 312, "succeeded": 298, "failed": 14, "in_flight": 0, "success_rate": 95.5 }, "meta": { "granularity": "hour", "start": "2026-08-06T00:00:00+05:30", "end": "2026-08-13T00:00:00+05:30", "client_id": 123, "scraper_type": null, "range_key": "7d" } }

per_client contains at most one row — your own — the dashboard endpoints never return another client's name, id or volume. per_scraper_type is your own data split by engine (Google vs each OTA you've used); share is each type's percentage of your total submissions in the window, and the split always covers every type you've used regardless of the scraper_type filter. A per-bucket breakdown of the same split is in each series row's by_scraper_type. bucket timestamps are UTC-offset ISO 8601; label is the same instant formatted for display in Asia/Kolkata.

/client/scrape-dashboard/pdf/ takes the same query params and streams a PDF (Content-Type: application/pdf) instead of JSON.

Without a valid key the JSON endpoint answers 401 with {"error": "Authentication required (X-API-Key header or sign-in)."}. A very large window can be refused with 503 and a Retry-After header (the message says to retry, or to use a shorter range or a narrower filter).

Free. Like /usage/, the dashboard page, JSON and PDF endpoints are never counted against your rate limit or quota.

Client portal and quota emails

The usage portal shows where you stand against your limits, for the Hotel API and the Flight API alike. Sign in at https://api.scrapeguys.com/portal/ with the email (or username) and password you were provisioned — ask your ScrapeGuys contact. A forgotten password is reset from the sign-in page with an emailed link, and the password can be changed under Account. The portal shares its sign-in with the client dashboard, which Hotel API clients open from it as Job analytics.

Quota emails. By default an email goes out once when you reach 75%, once at 95% and once at 100% of your daily quota, and the same for your monthly (billing-period) quota. Each threshold is sent once per day, or once per billing period, and starts again with the next one. If your quota is raised part-way through a window, the thresholds apply afresh to the new quota. They go to your account contact address and to every active portal login, and say how much is used, how much remains, when the window resets, and that requests are refused with 429 once the quota is reached.


Ready to dive in? Pick a guide: Google Flights · MakeMyTrip Flights · Cleartrip Flights · Paytm Flights · Ixigo Flights · Goibibo Flights · Skyscanner Flights · MakeMyTrip Bus · Google Hotels · Agoda · Booking.com · MakeMyTrip Hotels · Expedia · Goibibo · Destination Search · Rate Shop · Cheapest Room · Hotel Details · Instagram.