Skip to main content

Search News

Search news articles by keyword. Results are relevance-ranked.

GET /v1/news/search
Keywords only

Supply the topic you care about (e.g. apple earnings, climate summit). Plain keywords work best; boolean operators are not supported.

Query parameters​

ParameterTypeDefaultDescription
querystring—Required. Keyword(s), e.g. apple earnings or climate summit.
time_filterstring(empty)Recency window: day, week, month, or year. Empty for no restriction.
max_pagesinteger1Number of pages to fetch. Each page returns up to ~20 articles. Maximum 50.

Pages are deduplicated across the result set, and fewer pages come back if there are no further results.

Examples​

Basic keyword search:

curl -G "$LISTENX_BASE/v1/news/search" \
-H "X-API-Key: $LISTENX_KEY" \
--data-urlencode 'query=apple earnings'

Last 24 hours, three pages for a broader pull:

curl -G "$LISTENX_BASE/v1/news/search" \
-H "X-API-Key: $LISTENX_KEY" \
--data-urlencode 'query=climate summit' \
--data-urlencode 'time_filter=day' \
--data-urlencode 'max_pages=3'

Response​

{
"query": "apple earnings",
"time_filter": "day",
"pages_requested": 1,
"pages_fetched": 1,
"returned": 12,
"results": [
{
"title": "Apple Launches Creative Labs Program With The King's Trust",
"url": "https://www.macrumors.com/2026/10/07/apple-creative-labs-kings-trust/",
"snippet": "Apple partners with The King's Trust to provide creative career education for young people.",
"source": "www.macrumors.com",
"published_at": "2026-10-08",
"thumbnail_url": null
}
],
"billing": {
"endpoint": "news.search",
"units": 1,
"unit_price": "0.010000",
"amount": "0.010000",
"balance_after": "97.240000",
"request_id": "…"
}
}

Fields​

FieldDescription
time_filterThe recency window applied (any, day, week, month, or year).
pages_requestedThe max_pages you asked for.
pages_fetchedPages actually fetched (also the number of billed units).
returnedNumber of articles in results (deduplicated across pages).
results[]Article summaries, in relevance order.

Result​

FieldDescription
titleArticle headline.
urlLink to the article on the publisher's site.
snippetShort text excerpt of the article.
sourcePublisher domain, e.g. www.macrumors.com.
published_atPublish date (ISO-8601), when available.
thumbnail_urlPreview image, when available.

Billing​

Search is billed per page fetched — units = pages_fetched, minimum 1. So max_pages=3 costs up to 3 units (fewer if there are no more results). See Billing.

Notes​

  • News discovery is a public-web surface; results are not exhaustive and can shift over time.
  • Each url points at the publisher's own article page, ready to open or ingest directly.