Sign in
GET

/v1/content

v1

Get article content


Retrieve the extracted full-text content of an article by its URL hash. Includes the article body, images, summaries, and tags.


Parameters

url_hash required string
query

URL hash of the article

e.g. a1b2c3d4e5

max_chars integer
query

Maximum number of characters to return for the text body (1-200000)

Default: 50000

e.g. 10000


Request Examples

bash
curl "https://api.newsrank.ai/v1/content?url_hash=a1b2c3d4e5&max_chars=10000" \
  -H "Authorization: Bearer nrf_your_api_key"

Response

json
{
  "ok": true,
  "url_hash": "a1b2c3d4e5",
  "final_url": "https://example.com/article/supreme-court-climate",
  "image_url": "https://example.com/images/court.jpg",
  "thumb_url": "string",
  "video_url": "string",
  "extracted_title": "Supreme Court Rules on Landmark Climate Case",
  "text": "The Supreme Court issued a landmark ruling today...",
  "extracted_at": 1708301400000,
  "truncated": false,
  "headline_summary": "Supreme Court sides with environmental regulators",
  "full_summary": "The Supreme Court ruled 6-3 in favor of stricter emissions standards...",
  "tags": [
    {
      "tag": "string",
      "score": null
    }
  ]
}

Try it

Server

Using sandbox demo key (5 req/min) — no signup required

Authentication
Demo key (sandbox)
Endpoint
GET /v1/content
Default: 50000