# /theverge/categories/articles

`POST /api/theverge/categories/articles`

Price: 20 credits

Browse a The Verge topic or section in reverse-chronological order. Works for every slug in the unified topic namespace, from broad sections such as tech, ai or policy down to per-company and per-product topics such as openai or iphone. Each story carries headline, excerpt, publish and update timestamps, credited authors, topic taxonomy, lede image and live comment count.

## How to use it

List The Verge stories filed under one topic, newest first. category takes the bare slug that appears as the first path segment of a topic URL (openai, ai-artificial-intelligence, tech, headphone-review) or the full topic URL; get the catalogue of valid slugs from theverge/categories/search. count is how many stories to return and the endpoint pages through the archive 40 at a time until the topic runs out; the source serves at most 15 pages of any topic, so about 600 stories is the ceiling however many the topic holds, and a larger count comes back short rather than failing. Each item has id, node_id, article_title, alias, excerpt, web_url, published_at, updated_at, word_count, comment_count, authors[], primary_category, categories[] and image — pass id to theverge/articles for the body. For keyword search across topics use theverge/articles/search.

## Parameters

- `access-token` (string, required)

## Request body

- `timeout` (integer) — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)
- `category` (string, required) — The Verge topic or section slug, or the topic URL (examples: "openai", "ai-artificial-intelligence", "https://www.theverge.com/tech"; minLength: 1)
- `count` (integer, required) — Max number of stories to return (min: 1)

## Response

### 200 — Successful Response

- `@type` (string) (default: "ThevergeArticleCard")
- `id` (integer, required)
- `node_id` (string, required)
- `content_type` (string, nullable)
- `article_title` (string, required)
- `alias` (string, nullable)
- `web_url` (string, required)
- `path` (string, nullable)
- `published_at` (integer, nullable)
- `first_published_at` (integer, nullable)
- `updated_at` (integer, nullable)
- `created_at` (integer, nullable)
- `excerpt` (string, nullable)
- `word_count` (integer, nullable)
- `comment_count` (integer, nullable)
- `comments_enabled` (boolean) (default: false)
- `comments_mode` (string, nullable)
- `chorus_id` (integer, nullable)
- `chorus_uuid` (string, nullable)
- `is_paywall_eligible` (boolean) (default: false)
- `has_affiliate_links` (boolean) (default: false)
- `is_live` (boolean) (default: false)
- `status` (string, nullable)
- `image` (string, nullable)
- `image_alt` (string, nullable)
- `image_width` (integer, nullable)
- `image_height` (integer, nullable)
- `image_caption` (string, nullable)
- `image_credit` (string, nullable)
- `image_credit_hidden` (boolean) (default: false)
- `authors` (array) (default: [])
  - `@type` (string) (default: "ThevergeAuthorBrief")
  - `id` (integer, nullable)
  - `node_id` (string, required)
  - `name` (string, required)
  - `alias` (string, nullable)
  - `path` (string, nullable)
  - `web_url` (string, nullable)
  - `job_title` (string, nullable)
  - `short_bio` (string, nullable)
  - `image` (string, nullable)
- `additional_bylines` (string, nullable)
- `primary_category` (object, nullable)
  - `@type` (string) (default: "ThevergeCategory")
  - `id` (integer, nullable)
  - `node_id` (string, required)
  - `name` (string, required)
  - `alias` (string, nullable)
  - `path` (string, nullable)
  - `web_url` (string, nullable)
  - `is_hub` (boolean) (default: false)
  - `breadcrumbs` (array) (default: [])
    - `@type` (string) (default: "ThevergeCategoryRef")
    - `node_id` (string, required)
    - `name` (string, required)
    - `alias` (string, nullable)
    - `path` (string, nullable)
    - `web_url` (string, nullable)
- `categories` (array) (default: [])
  - `@type` (string) (default: "ThevergeCategory")
  - `id` (integer, nullable)
  - `node_id` (string, required)
  - `name` (string, required)
  - `alias` (string, nullable)
  - `path` (string, nullable)
  - `web_url` (string, nullable)
  - `is_hub` (boolean) (default: false)
  - `breadcrumbs` (array) (default: [])
    - `@type` (string) (default: "ThevergeCategoryRef")
    - `node_id` (string, required)
    - `name` (string, required)
    - `alias` (string, nullable)
    - `path` (string, nullable)
    - `web_url` (string, nullable)
- `streams` (array) (default: [])
  - `@type` (string) (default: "ThevergeStream")
  - `id` (integer, nullable)
  - `node_id` (string, required)
  - `name` (string, required)
  - `path` (string, nullable)
  - `web_url` (string, nullable)
  - `chorus_id` (integer, nullable)
  - `is_live` (boolean) (default: false)

## Errors

### 422 — Validation Error

The request body did not validate

What to do: Check the fields against this schema. A URN with the wrong prefix is the most common cause.

- `detail` (array)
  - `loc` (array, required)
  - `msg` (string, required)
  - `type` (string, required)
  - `input` (any)
  - `ctx` (object)

### 408

The request ran past its time limit

What to do: Raise `timeout` in the request body, up to the maximum this endpoint documents. Lowering `count` or turning off the `with_*` flags also helps, because less work finishes sooner.

### 412

Topic not found (well-formed but nonexistent slug, or a slug that is not a topic archive)

What to do: Retrying will not help: either the entity does not exist, or the input points at a different one.

### 429

Too many requests: a rate limit or a usage window is exhausted

What to do: When the response carries an X-Retry-After header, wait that many seconds and retry: the same number is in the body as `detail.retry_after`, and the limit clears once that window passes. The message in the body names the limit that was hit.

### 500

Something broke on our side

What to do: Retrying will not help. If it keeps happening, send us the X-Request-ID from the response headers.

### 529

Rate limit reached, or the endpoint is overloaded

What to do: Wait at least 30 seconds, then retry.

## Response envelope

Success: Array of objects (may be empty if no results)

Error: Error may coexist with partial results if it occurs mid-execution. Check X-Error header and status code.

Every response carries these headers:

- `X-Error` — Error message text (present only on error)
- `X-Request-ID` — Unique request identifier
- `X-Execution-Time` — Execution time in seconds
- `X-Result-Count` — How many records the body carries. 0 means an empty result, which is a normal answer and not by itself an error. A non-zero count can come back together with X-Error when the failure happened partway through — read this header and X-Error independently.
- `X-Total-Available-Results` — How many records exist for this query, when the endpoint can say. On a `dry_run` request this is the answer and the body is empty. It saturates: the endpoint's documented maximum means 'at least that many', any smaller number is exact.
- `X-Warning` — Present when the request body carried keys this endpoint does not document. They were ignored, so any filter you meant to apply through them did not apply. Check the spelling against this schema and retry.
- `X-Retry-After` — Seconds to wait before retrying. Present only on 429.

