# 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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/goibibo/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## 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/credits/goibibo/get-fare-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/goibibo/get-fare-rules \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/goibibo/search-airports \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/goibibo/search-flights \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"date":"<string>","destination":"<string>","origin":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.