# Flysfo — 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.

> Access data from flysfo.com.

**Category:** Travel | **Website:** [www.flysfo.com/passengers/flight-info/security-wait-times](https://www.flysfo.com/passengers/flight-info/security-wait-times) | **Docs:** [parse.bot/marketplace/8c35d2a6-a4b5-4167-adc3-0aca5bf77d6e/flysfo-com-api](https://parse.bot/marketplace/8c35d2a6-a4b5-4167-adc3-0aca5bf77d6e/flysfo-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-flysfo-com-api-8c35d2a6/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_flight_status

Returns current flight status information at SFO, filtered by flight type. Includes flights within a 12-hour-ahead and 4-hour-past window in Pacific Time. Each flight record contains airline, flight number, origin or destination city, scheduled/estimated/actual times, terminal, gate, and status remark. Code-share flights appear as separate entries.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `flight_type` | string | No | Filter by flight direction. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-flysfo-com-api-8c35d2a6/get_flight_status \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"flight_type":"<string>"}'
```

### get_security_wait_times

Returns current security checkpoint wait times for all SFO terminals. Each checkpoint reports general and TSA PreCheck lane wait times. Wait times are subject to change and reflect live conditions. All gates are accessible from any checkpoint; checkpoint letters reference closest gates (e.g. Checkpoint B for Gate B1).

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-flysfo-com-api-8c35d2a6/get_security_wait_times \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```
