# Jetsmart — 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 JetSMART flights across available routes and airports, check real-time schedules and flight status, and discover low fares with an interactive calendar. Plan your trips efficiently by browsing all airport and route options without needing authentication.

**Category:** Travel | **Website:** [jetsmart.com/](https://jetsmart.com/) | **Docs:** [parse.bot/marketplace/0209d374-9d8d-4298-8dee-c03fdbe415a0/jetsmart-com-api](https://parse.bot/marketplace/0209d374-9d8d-4298-8dee-c03fdbe415a0/jetsmart-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-jetsmart-com-api-0209d374/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_available_airports

Retrieve all airports in JetSMART's network. Each airport includes IATA code, name, country, coordinates, and a list of destination codes reachable from it. The full network is returned in a single page; no parameters needed.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-jetsmart-com-api-0209d374/get_available_airports \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_available_routes

List every origin-destination pair in JetSMART's network, grouped by country. Returns all routes in a single page. Useful for discovering valid route pairs before searching flights.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-jetsmart-com-api-0209d374/get_available_routes \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_flight_status

Check the schedule and availability of flights on a specific route and date. Optionally filter by flight number to get details for a single flight. Returns the same flight structure as search_flights but scoped to one date and route.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `date` | string | Yes | Flight date in YYYY-MM-DD format. |
| `destination` | string | Yes | Destination airport IATA code. |
| `flight_number` | string | No | Flight number to filter results (e.g. 731). |
| `origin` | string | Yes | Origin airport IATA code. |

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

### get_low_fare_calendar

Retrieve the lowest available fare for a specific route across all future dates with availability. Returns a calendar sorted by date with the minimum CLP price per date. Useful for finding the cheapest travel dates on a given route.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `destination` | string | Yes | Destination airport IATA code. |
| `origin` | string | Yes | Origin airport IATA code. |

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

### search_flights

Search available flights from a given origin, optionally filtered by destination and date. Returns flight schedules with multi-currency pricing (ARS, BRL, CLP, COP, PEN, USD), seat availability, and fare information. Without a date, returns flights across all available future dates. Without a destination, returns flights to all reachable airports from the origin.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `date` | string | No | Travel date in YYYY-MM-DD format. If omitted, searches all available future dates. |
| `destination` | string | No | Destination airport IATA code. If omitted, returns flights to all destinations from origin. |
| `origin` | string | Yes | Origin airport IATA code. |

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