Skip to main content
POST
/
api
/
habr
/
hubs
/habr/hubs
curl --request POST \
  --url https://api.anysite.io/api/habr/hubs \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "hub": "<string>",
  "timeout": 300,
  "lang": "ru"
}
'
[
  {
    "id": "<string>",
    "alias": "<string>",
    "@type": "@habr_hub",
    "title": "<string>",
    "description": "<string>",
    "full_description": "<string>",
    "image": "<string>",
    "keywords": [],
    "subscriber_count": 123,
    "rating": 123,
    "author_count": 123,
    "post_count": 123,
    "reach": "<string>",
    "flow": {
      "id": "<string>",
      "alias": "<string>",
      "@type": "@habr_flow_ref",
      "title": "<string>"
    }
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
hub
string
required

Hub alias or URL

Minimum string length: 1
Examples:

"python"

"https://habr.com/ru/hubs/python/"

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
alias
string
required
@type
string
default:@habr_hub
title
string | null
description
string | null
full_description
string | null
image
string | null
keywords
string[]
subscriber_count
integer | null
rating
number | null
author_count
integer | null
post_count
integer | null
reach
string | null
flow
HabrFlowRef · object