public_api_specs icon indicating copy to clipboard operation
public_api_specs copied to clipboard

is it possible to fetch and render the single article content?

Open oukunan opened this issue 2 years ago • 1 comments

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 Screen Shot 2565-03-19 at 18 18 42

I want to render content something like this if is possible.

Thank you in advance.

oukunan avatar Mar 19 '22 11:03 oukunan

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

nyt-hughmandeville avatar Mar 19 '22 14:03 nyt-hughmandeville