Habr APIunofficial
Habr (habr.com), the Russian-language IT community, logged out: one article or news item by id. Results are in Russian.
- habr.com
all live 1 operation, 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 habr
api-anything call habr getArticle articleId=541600Operations
| Operation | Method | Login | Writes | Status |
|---|---|---|---|---|
getArticle(articleId) -> title, author, published, hubs, tags, textOne Habr article or news item by id (company blogs included), read from its AMP page: title, author (login), published (ISO time), hubs (list), tags (list) and text (plain text of the body, cut at the output cap). Short posts (/ru/posts/<id>/) have no AMP page and answer as not found. Text is in the language the author wrote in, usually Russian. |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
Notes
No account is needed. Results are in Russian (the author's language).
articleIdis the number in an article or news link:habr.com/ru/articles/541600/,/ru/news/541600/,/ru/companies/selectel/news/1100148/. Short posts (/ru/posts/<id>/) have no AMP page and answerclass: "input"(not found).textis the body as plain text, without images or code formatting. A long article is cut at the output cap (truncated).authoris the login, not the display name.tagscan be empty.- Search is not covered: there is no op that finds articles by words. Get ids from habr.com links.
About these operations
Each operation is a request learned from Habr's own web pages: API Anything replays it over plain HTTP and falls back to a browser when it must. Read them as JSON.