Skip to main content
POST
/
api
/
habr
/
articles
/habr/articles
curl --request POST \
  --url https://api.anysite.io/api/habr/articles \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "article": "<string>",
  "timeout": 300,
  "lang": "ru"
}
'
[
  {
    "id": "<string>",
    "@type": "@habr_article",
    "title": "<string>",
    "lead": "<string>",
    "text": "<string>",
    "url": "<string>",
    "image": "<string>",
    "post_type": "<string>",
    "lang": "<string>",
    "complexity": "<string>",
    "format": "<string>",
    "reading_time": 123,
    "is_corporative": false,
    "comments_enabled": false,
    "tags": [],
    "published_at": "<string>",
    "author": {
      "id": "<string>",
      "alias": "<string>",
      "@type": "@habr_author",
      "fullname": "<string>",
      "speciality": "<string>",
      "image": "<string>",
      "rating": 123,
      "score": 123
    },
    "statistics": {
      "@type": "@habr_article_statistics",
      "comment_count": 123,
      "favorite_count": 123,
      "reading_count": 123,
      "score": 123,
      "vote_count": 123,
      "vote_count_plus": 123,
      "vote_count_minus": 123,
      "reach": 123,
      "reader_count": 123
    },
    "hubs": [],
    "flows": []
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
article
string
required

Article id or URL

Minimum string length: 1
Examples:

"1047492"

"https://habr.com/ru/articles/1047492/"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
lang
enum<string>
default:ru

Content language

Available options:
ru,
en

Response

Successful Response

id
string
required
@type
string
default:@habr_article
title
string | null
lead
string | null
text
string | null
url
string | null
image
string | null
post_type
string | null
lang
string | null
complexity
string | null
format
string | null
reading_time
integer | null
is_corporative
boolean
default:false
comments_enabled
boolean
default:false
tags
string[]
published_at
string | null
author
HabrAuthor · object
statistics
HabrArticleStatistics · object
hubs
HabrHubRef · object[]
flows
HabrFlowRef · object[]