Python Documentation APIunofficial
Read Python 3 documentation pages and standard library API entries, and browse the module index without an account.
- python.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 pythondocs
api-anything call pythondocs getModule module=jsonOperations
| Operation | Method | Login | Writes | Status |
|---|---|---|---|---|
getModule(module) -> name, kind, signature, descriptionRead documented Python API entries from a standard library documentation page. |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
getPage(path) -> title, headings, paragraphsRead the title, headings, and paragraphs of a Python documentation page. |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
listModules() -> name, url, summary, deprecatedList linked entries in the Python module index with their descriptions and deprecation markers. |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
Notes
These reads need no account and use the moving Python 3 documentation, not a fixed minor version. Check the documentation version when compatibility matters.
getModuletakes the library page basename, which may differ from the import name. For example,asyncio-taskis a page about tasks. The module index links show the actual page to use; some indexed modules share a page. UsegetPagewithlibrary/<basename>for its title and prose.- API entries are in document order.
kindis the page's CSS class, such aspy functionorpy method. A name or description can be missing, and entries with multiple signatures only expose the first. Some pages organize content outside API entries or link to other pages. - The index includes linked modules only, including removed modules marked
Deprecated:. That marker is text and is absent for other entries, not a Boolean. Some summaries are absent. - Page headings and paragraphs are separate ordered lists, not paired sections. Examples, tables, and code blocks are not included. Text and signatures may include Sphinx's paragraph marker.
- Results are capped at 20,000 JSON characters. Check
truncatedand use the result continuation or field shaping when the index or a long page exceeds that limit. - Documentation and examples have separate license terms; see Python's documentation license.
About these operations
Each operation is a request learned from Python Documentation's own web pages: API Anything replays it over plain HTTP and falls back to a browser when it must. Read them as JSON.