Sample of latest headlines
Up to 100 most recently published articles with a non-empty title from the last 15 minutes (and not in the future), in descending publication order. If fewer than five are available, the response is supplemented with the newest older articles needed to reach five, limited to articles published within the last 2 hours. feedStatus: stale indicates supplementation; if no articles are available within the 2-hour maximum age, the response is empty with feedStatus: empty. No all-time fallback. No API key, not logged, cached server-side for 1 minute. Rate-limited to 30 requests per minute per client IP (token bucket, burst 30); over the limit returns 429 rateLimited with Retry-After. Accepts no query parameters other than apiKey.
https://apis.newssearchapi.com/v1/headlines/samplePublic · no keyResponse
Latest headlines.
statusstringalwaysfeedStatusstringalwaysCurrent means no older articles were needed
One of
currentstaleemptyarticlesobject[]alwaysShow 8 child fields
idstringtitlestringurlstringpublishedAtstringindexedAtstring | nullTime this article version was last indexed; use with
indexed_fromfor incremental sync; null when unavailable.languagestring | nullcountrystring | nullsourceobjectShow 2 child fields
namestringdomainstringPublisher website hostname.
Errors
Every error uses the same envelope with a stable code. See error handling for which ones to retry.
- 400Invalid parameter (`parameterInvalid`) — unknown/repeated parameter, bad format or out-of-range value.
- 405Only GET, HEAD and OPTIONS are supported (`methodNotAllowed`).
- 429More than 30 requests per minute from this IP (`rateLimited`); no credits are charged.
- 500Unexpected server error (`internalError`). Not billable.
- 503A backing service is unavailable or timed out (`serviceUnavailable`). Not billable.