Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
oukunan opened this issue Mar 19, 2022 · 1 comment
Open

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

oukunan opened this issue Mar 19, 2022 · 1 comment

Comments

@oukunan
Copy link

oukunan commented Mar 19, 2022

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.

@nyt-hughmandeville
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants