# Goibibo — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search for real-time flights and compare fares on Goibibo by looking up airports, viewing live pricing tiers, and checking cancellation policies all in one place. Get instant access to flight listings and detailed fare rules to find the best deals on your next trip.

**Category:** Travel | **Website:** [goibibo.com/](https://goibibo.com/) | **Docs:** [parse.bot/marketplace/b8468835-4a82-48fa-af4f-63dc524b44b2/goibibo-com-api](https://parse.bot/marketplace/b8468835-4a82-48fa-af4f-63dc524b44b2/goibibo-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-goibibo-com-api-b8468835/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_fare_details

Get detailed fare options (tiers) for a specific flight using its rKey.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `rKey` | string | Yes | Flight result key (rKey) from search results |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-goibibo-com-api-b8468835/get_fare_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"rKey":"<string>"}'
```

### get_fare_rules

Get cancellation and date change policies for a specific flight.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `rKey` | string | Yes | Flight result key (rKey) from search results |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-goibibo-com-api-b8468835/get_fare_rules \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"rKey":"<string>"}'
```

### search_airports

Search for airports by city name or IATA code. Returns matching airport suggestions including IATA codes, airport names, city names, country information, and nearby airports within 200km. Results are ranked by relevance to the query, with exact IATA matches appearing first. Each result may include a groupData array of nearby airports with distance information.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Maximum number of airport suggestions to return |
| `query` | string | Yes | City name or IATA code to search for (e.g. 'DEL', 'Mumbai', 'BOM', 'London') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-goibibo-com-api-b8468835/search_airports \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","query":"<string>"}'
```

### search_flights

Search for one-way flights between two airports on a specific date.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `date` | string | Yes | Departure date in YYYYMMDD format (e.g., '20260315') |
| `destination` | string | Yes | Destination airport IATA code (e.g., 'BOM') |
| `origin` | string | Yes | Origin airport IATA code (e.g., 'DEL') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-goibibo-com-api-b8468835/search_flights \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"date":"<string>","destination":"<string>","origin":"<string>"}'
```
