Goibibo Flights
Live flight pricing from Goibibo (INR, India region) — the same job-based /scrape/ contract as Google Flights, MakeMyTrip, Cleartrip, Paytm and Ixigo, selected with "source": "goibibo". Search, fare families and review detail (fare breakup, booking policies, the coupon list, and optionally each coupon priced) are available for domestic and international, one-way and round-trip journeys.
/api/v1/flight-scraper/scrape/— submit/api/v1/flight-scraper/scrape/{job_id}/— pollBase URL: https://api.scrapeguys.com · Auth: X-API-Key: fsk_… with the goibibo scope · See the Overview.
source on /scrape/ or /batch/ and you get google_flights, as before. This page covers Goibibo flights; for hotels see Goibibo Hotels.goibibo scope. Without it every call returns 403 This API key does not have the 'goibibo' scope. The same scope governs polling those jobs. There is no wildcard and existing keys are not granted it automatically — ask your ScrapeGuys contact to add it.The three stages
Goibibo uses the same L1 / L2 / L3 vocabulary as the other flight sources. Each stage is an ordinary job — submit, get a job_id, poll — and each later stage takes a flight_index from the search it came from.
| Stage | Endpoint | Answers |
|---|---|---|
| L1 search | POST /scrape/ · /batch/ | What flies the route on the date, and the per-adult fare of each flight. |
| L2 fare families | POST /scrape/fares/ | The fare families sold on one flight, with cancellation, date-change and baggage terms. |
| L3 review | POST /scrape/review/ | The fare breakup, booking policies and the advertised coupons; with apply_coupons, each coupon's measured effect on the total. |
Submit a search
curl -X POST 'https://api.scrapeguys.com/api/v1/flight-scraper/scrape/' \
-H 'Content-Type: application/json' -H 'X-API-Key: fsk_...' \
-d '{"origin":"DEL","destination":"BOM","departure_date":"2026-12-18",
"adults":1,"cabin_class":"economy","currency":"INR",
"source":"goibibo"}'
# {"job_id":"9f2b...","status":"pending","poll_url":"/api/v1/flight-scraper/scrape/9f2b.../"}
| Field | Goibibo | Notes |
|---|---|---|
origin, destination | Supported | 3-letter IATA codes, domestic or international. |
departure_date, return_date | Supported | YYYY-MM-DD. Add return_date for a round trip. |
adults, children | Supported | |
infants_in_seat, infants_on_lap | Supported, summed | Goibibo carries one infant count. The sum is capped at adults. |
cabin_class | Supported | economy, premium_economy, business, first. |
max_stops | Supported | Applied after the search. |
currency | INR only | Any other value is refused, not relabelled. |
region | in only | Use source=google_flights for other markets. |
include_nearby_airports | Optional | Flights from nearby airports are filed under nearby_airport_options unless this is true. |
include_calendar, calendar_days, calendar_days_before, per_leg_fares, include_cheapest, fare_family_name, price_coupons, include_coupon_breakups | Not supported | Refused with a 400 whose message names the remedy (for example, use apply_coupons on review, and fare_index to name a fare). |
apply_coupons | Review only | Refused on the search; send it on POST /scrape/review/. |
400 — never accepted and quietly dropped.Poll for results
Poll every 1–2 seconds until status is completed or failed. The envelope is the one every source uses — flights, search_context, error, error_category — so an existing parser needs no changes. Each flight carries:
priceis per adult — Goibibo's displayed fare.total_priceisnullon the listing.segments— one per leg withorigin,destination,carrier,flight_numberanddeparture; plusairlines,carrier_code,departure_time,arrival_time,duration,stopsandlayover_airports.offer_text— the promotional text Goibibo shows on the card, if any.goibibo_ids— what the expansions need. Treat as opaque; you never send it.
search_context carries shape, trip_type, international, no_results, total_options and stops_filtered_out.
Round trips: three shapes
search_context.shape tells you how Goibibo returned the journey:
ONEWAY— a single list inflights.SPLIT— a domestic round trip listed as two legs: outbound rows inflights, return rows inreturn_flights. To expand, send bothflight_indexandreturn_flight_indexto price the pair.COMBINE— an international round trip where each row is already the whole trip. Sendflight_indexalone;return_flight_indexis refused.
An empty route is not an error
A route Goibibo does not sell comes back status: "completed", error: null and search_context.no_results: true. Check no_results, not error.
Batch scraping
POST /api/v1/flight-scraper/batch/ and /batch/results/ accept "source": "goibibo" with the same rules as /scrape/. GET /usage/ is unchanged.
Expansion endpoints
source is required on the expansion endpoints. It defaults to makemytrip there, so omit it on a Goibibo parent and you get a 400 naming the mismatch. The parent must be your own, completed job. Expand within the search-context window (30 minutes by default): past that the expansion is refused with error_category: "invalid_input" and you should re-run the search.| Endpoint | Goibibo |
|---|---|
POST /scrape/fares/ | Supported — fare families per flight |
POST /scrape/review/ | Supported — fare breakup, policies, coupon list, optional coupon pricing |
POST /scrape/return/ | Not applicable — Google Flights only |
POST /scrape/checkout/, /farelock/, /booking/ | Not part of this API |
Fare families
curl -X POST 'https://api.scrapeguys.com/api/v1/flight-scraper/scrape/fares/' \
-H 'Content-Type: application/json' -H 'X-API-Key: fsk_...' \
-d '{"job_id":"9f2b...","flight_index":0,"source":"goibibo"}'
# 202, then poll the returned job
result.fare_families[] lists the families sold on the chosen flight. Each has name, fare_id, per_adult, total, cabin, cancellation, date_change, cabin_bag, checkin_bag and refundable. For a round trip the response also carries return_fare_families and round_trip_combination (final_fare, slashed_fare) — the re-priced combined fare. A round trip's families are per leg, so fare_index applies to one-way flights only.
fare_families, search_context.no_results: true and a warning. The searched fare is then the only fare: review the flight without fare_index.Review
POST /scrape/review/
{"job_id": "…", "flight_index": 0, "source": "goibibo", "fare_index": 0}
# domestic round trip (shape SPLIT): add "return_flight_index": 0
Same request shape as fares. fare_index is optional and one-way only: a family's position in /scrape/fares/'s list for the same flight.
result.review field | Meaning |
|---|---|
total_price | The whole party's total as Goibibo shows it, with total_label. |
price_breakup | Titled sections, each with lines of {text, amount, value}: base fare, taxes, discounts, … |
policies[] | Per journey: cancellation, date_change, baggage. |
default_coupon | The coupon Goibibo has pre-selected, if any. |
Coupons
result.coupons[] lists every coupon Goibibo advertises on the review: code, category, types, advertised (the discount text), description and is_bank.
Add "apply_coupons": true to the review request to have each non-bank coupon applied and the resulting total measured. apply_coupons is the cross-source name; price_coupons is accepted as a synonym on review, but sending both with different values is a 400.
POST /scrape/review/
{"job_id": "…", "flight_index": 0, "source": "goibibo", "apply_coupons": true}
The result then carries coupon_application: baseline_total; applied[] with, per coupon, code, advertised, measured_discount, total_after, applied, failed and message; not_tried (coupons beyond the per-review shortlist); and best / best_total_after_coupon. Bank-linked coupons are listed but not applied.
apply_coupons is refused with a 400 rather than returning no coupon_application; the coupon list is still published on every review.Errors on this source
The same vocabulary as every other source, so existing dashboards and retry logic work unchanged.
error_category | Meaning on Goibibo | What to do |
|---|---|---|
"" | Success. An empty route is here too — check search_context.no_results. | — |
blocked | Goibibo refused the request, after retries. | Resubmit later. |
transient | A rate limit, an outage, or a network/timeout failure. | Retry. |
invalid_search | Goibibo read the request and refused it. | Change the request. Retrying returns the same answer. |
invalid_input | A stale or missing search context, or a bad parameter. | Re-run the search, or fix the input. |
fare_unavailable | The chosen fare is no longer sold. | Run a new search. |
error | A feature that is not available to you, or an unexpected failure. | Contact us. |
Not supported on this source
- Convenience fee, checkout and payment — not part of this API.
- Calendar / price-per-day — no endpoint exists.
- Currencies and regions other than INR /
in.
Next: Google Flights · MakeMyTrip Flights · Cleartrip Flights · Paytm Flights · Ixigo Flights