Get one article
Returns a single article by the stored id returned from /v1/articles. IDs are signed 64-bit decimal strings (migrated from the URL fingerprint), so they may be negative. Accepts no query parameters other than apiKey. Any article still available in the data store can be retrieved.
https://apis.newssearchapi.com/v1/articles/{id}API keyParameters
idstringpathRequired
Response
The article.
statusstringalwaysarticleobjectalwaysShow 18 child fields
idstringStable stored article id.
titlestringdescriptionstring | nullcontentstringPlain-text excerpt of the article body (every plan). Markdown links become link text and images are omitted; stored HTML is converted to text. Paragraphs are separated by blank lines. The excerpt is about 200 characters, ending at a sentence or paragraph boundary when possible, otherwise at a word boundary, followed by an ellipsis. Full article text is not returned.
contentTruncatedbooleanTrue when
contentis an excerpt ending with an ellipsis, which is the case on every plan.urlstringimageUrlstring | nullauthorstring | nullpublishedAtstringRFC 3339, UTC, second precision.
languagestring | nullISO 639-1 code (lowercase first two letters of the article locale).
countrystring | nullLowercase country code.
regionstring | nullcategoriesstring[]May be empty.
sourceobjectPublisher display name and website hostname; internal site IDs are never exposed.
Show 2 child fields
namestringdomainstring
indexedAtstring | nullTime this article version was last indexed; use with
indexed_fromfor incremental sync.storyIdstring | nullDedupe story identifier.
trustScorenumber | nullArticle trust score.
corroboratedByintegerNumber of corroborating publishers.
Errors
Every error uses the same envelope with a stable code. See error handling for which ones to retry.
- 400Invalid parameter after authentication; no credits are charged.
- 401Missing (`apiKeyMissing`) or invalid (`apiKeyInvalid`) API key.
- 402Sharedstack could not reserve the maximum charge for this article request (`insufficientCredits`). `X-Credits-Remaining` is `unknown` if Stack does not return a balance.
- 403No active sharedstack plan or subscription; no credits are charged. Revoked-key responses may omit these headers.
- 404No article with this id (`notFound`).
- 405Only GET, HEAD and OPTIONS are supported (`methodNotAllowed`).
- 429The uniform gateway rate limit was exceeded; no credits are charged.
- 500Unexpected server error after authentication; no credits are charged.
- 503Dependency unavailable after authentication; no credits are charged.