public_api_specs
public_api_specs copied to clipboard
is it possible to fetch and render the single article content?
I got the url
properties nyt://article/c5798482-0b2b-502a-9484-de0d86a3830c
and try to fetch with Search API as the following:
const result = await axios.get(
`/svc/search/v2/articlesearch.json?fq=uri:"nyt://article/c5798482-0b2b-502a-9484-de0d86a3830c"&api-key=myAPIKey`
)
and the response
I want to render content something like this if is possible.
Thank you in advance.
NYT's non-commercial APIs return only the article metadata (headline, byline, URL, ...). They don't return the full article body content.
The NYT Licensing group handles licensing NYT content. https://nytlicensing.com/
Thanks -Hugh