News Article Detail

GET/gateway/v1/news/detail

Returns the full content of a single news article by its ID (returned as `id` in feed and search results).

Query Parameters

idstringrequired

Article ID (returned as id in feed/search results)

Example: e54e0ac4-1ef8-44d2-928e-52df465e2c81
News Article Detail
const options = {method: 'GET'};

fetch('https://api.asksurf.ai/gateway/v1/news/detail?id=e54e0ac4-1ef8-44d2-928e-52df465e2c81', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
OK
{
  "$schema": "https://example.com/schemas/DataObjectResponseNewsArticleDetailItem.json",
  "data": {
    "content": "<string>",
    "id": "<string>",
    "project_id": "<string>",
    "project_name": "<string>",
    "published_at": 123,
    "source": "<string>",
    "summary": "<string>",
    "title": "<string>",
    "url": "<string>"
  },
  "meta": {
    "cached": true,
    "credits_used": 123,
    "empty_reason": "<string>"
  }
}