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

> Track real-time Tour de France stage results, including the exact finish order, times, and time gaps between riders for each stage of the race. Get detailed classification data to follow your favorite cyclists' performance and standings throughout the competition.

**Category:** Sports | **Website:** [www.letour.fr/en/rankings](https://www.letour.fr/en/rankings) | **Docs:** [parse.bot/marketplace/7c5a1811-bf4f-4fd7-88f8-d169e38de30b/letour-fr-api](https://parse.bot/marketplace/7c5a1811-bf4f-4fd7-88f8-d169e38de30b/letour-fr-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-letour-fr-api-7c5a1811/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_stage_classification

Retrieve the individual stage classification (classement de l'étape) for a specific Tour de France stage. Returns the arrival order for that stage only (not the cumulative general classification), including each rider's rank, bib number, name, team, finish time, and time gap to the stage winner. Stages that are Team Time Trials have no individual stage classification and return an empty riders list with an explanatory message. Future stages with no results yet also return empty.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `stage_number` | string | Yes | Stage number (1 to 21). |
| `year` | string | No | Tour de France edition year. Currently only 2026 data is available on the live site. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-letour-fr-api-7c5a1811/get_stage_classification \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"stage_number":"<string>","year":"<string>"}'
```
