API Anything

NPR APIunofficial

NPR's public text-only front page, sections and articles.

all live 3 operations, checked by the installs that call them.

Seeded by the maintainers.

Try it

Set up API Anything for your agents:

npx -y api-anything setup

Then ask your agent, which finds this site by itself, or call it from a shell:

api-anything pull npr
api-anything call npr getSection sectionId=1001

Operations

OperationMethodLoginWritesStatus
getSection(sectionId?) -> title, url, storyId

List current stories in an NPR text-only section.

GET no no Live0 confirmations · success unknown; last worked unknown
getStory(storyId) -> headline, byline, date, paragraphs

Read an NPR text-only article, including its headline, byline, date and paragraphs.

GET no no Live0 confirmations · success unknown; last worked unknown
topStories() -> title, url, storyId

List current stories on NPR's text-only front page.

GET no no Live0 confirmations · success unknown; last worked unknown

Notes

No account is needed. NPR content is copyrighted: link to the original and use summaries as appropriate rather than republishing full articles.

  • topStories and getSection return links to the text site. The final path component is the story ID. Section IDs include 1001 (news, the default), 1003 (national), 1004 (world), 1014 (politics), 1006 (business), 1019 (technology), 1007 (science), and 1128 (health). A section's selection can overlap with other sections.
  • getStory accepts the ID from a story link, including IDs such as nx-s1-6020993 and older numeric IDs. Paragraphs are the text site's direct paragraph elements, not a transcript of audio or a reproduction of images and embedded material. Some articles include promotional text among them. Metadata may be absent or differently arranged on some pages.

About these operations

Each operation is a request learned from NPR's own web pages: API Anything replays it over plain HTTP and falls back to a browser when it must. Read them as JSON.

← All shared sites