# Wanderu — 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 and compare bus and train routes between US cities with real-time pricing and schedules. Find the best travel options for your trip by filtering results and viewing available departure times and fares across multiple carriers.

**Category:** Travel | **Website:** [www.wanderu.com/](https://www.wanderu.com/) | **Docs:** [parse.bot/marketplace/676e24a1-bde1-4426-9b1b-77bf1e4e4d91/wanderu-com-api](https://parse.bot/marketplace/676e24a1-bde1-4426-9b1b-77bf1e4e4d91/wanderu-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-wanderu-com-api-676e24a1/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### search_trips

Search one-way bus and train trips between two US cities on a given departure date. Returns all available options with carrier, schedule, duration, and price. Results include Amtrak, Greyhound, FlixBus, and other operators. Times are in UTC ISO-8601 format.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `date` | string | Yes | Departure date in ISO format YYYY-MM-DD. |
| `destination` | string | Yes | Destination city and state (e.g. 'New York, NY'). |
| `origin` | string | Yes | Origin city and state (e.g. 'Boston, MA'). |

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