NPR APIunofficial
NPR's public text-only front page, sections and articles.
- npr.org
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 setupThen 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=1001Operations
| Operation | Method | Login | Writes | Status |
|---|---|---|---|---|
getSection(sectionId?) -> title, url, storyIdList current stories in an NPR text-only section. |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
getStory(storyId) -> headline, byline, date, paragraphsRead 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, storyIdList 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.
topStoriesandgetSectionreturn links to the text site. The final path component is the story ID. Section IDs include1001(news, the default),1003(national),1004(world),1014(politics),1006(business),1019(technology),1007(science), and1128(health). A section's selection can overlap with other sections.getStoryaccepts the ID from a story link, including IDs such asnx-s1-6020993and 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.