News Search

GET/gateway/v1/search/news

Searches crypto news articles by keyword.

Returns results ranked by relevance with highlighted matching fragments. Supports pagination via limit and offset.

Query Parameters

qstringrequired

Search keyword or phrase

Example: bitcoin ETF
limitinteger

Results per page

Example: 10
offsetinteger

Pagination offset

Example: 0
News Search
const options = {method: 'GET'};

fetch('https://api.asksurf.ai/gateway/v1/search/news?q=bitcoin ETF&limit=10&offset=0', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
OK
{
  "$schema": "https://example.com/schemas/DataResponseNewsArticleItem.json",
  "data": [
    {
      "highlights": {},
      "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>",
    "has_more": true,
    "limit": 123,
    "offset": 123,
    "total": 123,
    "watermark": 123
  }
}