# REST API overview

> Base URL, conventions, pagination and CORS for the REST API.

Source: https://www.podcastlookup.com/documentation/rest-api

## Base URL

```
https://www.podcastlookup.com/api/v1
```

All requests use HTTPS. Responses are JSON (`Content-Type: application/json`), never cached by intermediaries (`Cache-Control: no-store`).

## Endpoints

| Method | Path | Description |
| --- | --- | --- |
| `GET` | [`/podcasts`](https://www.podcastlookup.com/documentation/rest-api/search-podcasts.md) | Search every podcast |
| `GET` | [`/facets`](https://www.podcastlookup.com/documentation/rest-api/list-filters.md) | Languages, categories and providers to filter on |
| `GET` | [`/podcasts/:id`](https://www.podcastlookup.com/documentation/rest-api/get-podcast.md) | One podcast |
| `GET` | [`/podcasts/:id/episodes`](https://www.podcastlookup.com/documentation/rest-api/list-episodes.md) | Its episodes, newest first |
| `POST` | [`/podcasts/:id/refresh`](https://www.podcastlookup.com/documentation/rest-api/refresh-episodes.md) | Re-read the feed now |
| `GET` | [`/podcasts/:id/episodes/:episode`](https://www.podcastlookup.com/documentation/rest-api/get-episode.md) | One episode |
| `GET` | [`/transcripts`](https://www.podcastlookup.com/documentation/rest-api/search-transcripts.md) | Search what was said in every transcript |
| `GET` | [`/podcasts/:id/episodes/:episode/transcript`](https://www.podcastlookup.com/documentation/rest-api/get-transcript.md) | Its transcript |
| `POST` | [`/podcasts/:id/episodes/:episode/transcription-request`](https://www.podcastlookup.com/documentation/rest-api/request-transcript.md) | Ask for a transcript |
| `GET` | [`/me`](https://www.podcastlookup.com/documentation/rest-api/get-usage.md) | Your plan and credits |

## Conventions

- **Field names** are `snake_case`.
- **Dates** are ISO 8601 strings in UTC, such as `2026-11-28T06:00:00.000Z`, or `null` when unknown.
- **Durations** are in seconds (`duration_seconds`, `start_seconds`).
- **Text** from feeds (descriptions) is returned as plain text: HTML is stripped.
- **Missing values** are `null`, never omitted.
- **Ids**: podcasts use integers, episodes use strings. See [Core concepts](https://www.podcastlookup.com/documentation/concepts.md).
- `POST` endpoints take no body.

## Pagination

List endpoints take a `page` parameter starting at `1` and return `page`, `page_size` and `total`:

```ts
const pages = Math.ceil(body.total / body.page_size)
```

Search returns 24 results per page. Episodes default to 25 per page, up to 100 with `page_size`.

## Repeatable parameters

Filters that accept several values are repeated in the query string:

```
/api/v1/podcasts?lang=fr&lang=en&category=technology
```

## CORS

Every origin is allowed and preflight `OPTIONS` requests are answered (free). The `X-Credits-*` and `Retry-After` headers are exposed to scripts. Remember that a key used from a web page is visible to its visitors: see [Authentication](https://www.podcastlookup.com/documentation/authentication.md#calling-from-the-browser).

## Versioning

The API is versioned in the path (`/v1`). Within a version, we only make additive changes: new endpoints, new optional parameters, new response fields. Write clients that ignore fields they don't know.