POST

API health

24h health
Normal
  • Healthy / normal
  • Available
  • Limited
  • Mostly down
Normal

Last 24 hours

Last 30 days

Browse the videos on Bilibili's Popular page, 20 per page, each with BV and av IDs, views, likes, danmaku, coins, favorites, shares, comments, duration, category, uploader and upload IP region. recommend_reason carries the tag Bilibili puts on a video, such as one for passing a million views, in Chinese as shown. Pass next_page_token back as page_token for the next page; the list changes through the day.

Send POST https://api.everyinfra.com/api/v1/social with platform set to bilibili and action set to popular. Price $0.81 per 1,000 requests ($0.000806 per call). Failed calls and empty results are not charged. Synchronous. For slow jobs add "mode": "async" to the body, take the job_id and poll.

AI prompt

#
Please help me write a data collection script with the EveryInfra Bilibili Popular endpoint (bilibili/popular).

How the endpoint works:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to bilibili and action to popular, and put the parameters inside params.
- No required parameters.
- Optional parameters:
  - page_token: Page token for popular: pass back the previous response's next_page_token exactly as received to get the next 20 videos; leave it out to start at the first page. Tokens last 24 hours and each page is one call.
- Returns a list of records. Main fields of each record: id, aid (The video's numeric av ID (popular)), url, title, text, duration_seconds, duration_sec, view_count, like_count, comment_count, danmaku_count (Danmaku (on-screen comment) count), favorite_count (Favorites); 23 fields in total, full list at https://api.everyinfra.com/api/v1/social/catalog?platform=bilibili.
- Example request body:
{
  "platform": "bilibili",
  "action": "popular",
  "params": {}
}
- Price: $0.81 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.

Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.

Request parameters

#
NameInTypeRequiredDefaultDescription
AuthorizationheaderstringYes-Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository.
platformbodystringYesbilibiliPlatform identifier, fixed value.
actionbodystringYespopularCapability identifier, fixed value.
page_tokenbody.paramsstringNo-Page token for popular: pass back the previous response's next_page_token exactly as received to get the next 20 videos; leave it out to start at the first page. Tokens last 24 hours and each page is one call.

Code samples

#
bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "bilibili",
  "action": "popular",
  "params": {}
}'

OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.

Response example

#
Captured November 7, 2026 at 14:47 (UTC) by calling this API with the parameters in the code sample above. results and count are that call's real response with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2. id, billing and quota differ on every call, so only their shape is shown.
json
{  "id": "req_…",  "platform": "bilibili",  "action": "popular",  "results": [    {      "id": "BV1a14n6jEgs",      "aid": "•••",      "url": "https://www.bilibili.com/video/BV1a14n6jEgs",      "title": "【萌黄一槽】尾巴管理大师,金角[尾兽状态]全技能爆料!",      "text": "点击就看!灵活管理尾巴状态的高手必修课!",      "duration_seconds": 305,      "view_count": 379489,      "like_count": 22051,      "comment_count": 3964,      "danmaku_count": 2267,      "favorite_count": 2662,      "coin_count": 1546,      "share_count": 10977,      "thumbnail_url": "http://i2.hdslb.com/bfs/archive/b393b65559046ac9cd8adf7e16e2378faf0c7cd4.jpg",      "posted_at": "2026-11-07T12:54:20+00:00",      "category": "手机游戏",      "author_name": "火•••君",      "author_id": "•••",      "author_url": "https://space.bilibili.com/•••",      "author_avatar_url": "https://i0.hdslb.com/•••",      "recommend_reason": "很多人分享",      "ip_location": "•••",      "platform": "bilibili",      "duration_sec": 305    },    {      "id": "BV1Rz4n6nEjp",      "aid": "•••",      "url": "https://www.bilibili.com/video/BV1Rz4n6nEjp",      "title": "纯黑《影之刃零》逆天者全程无伤一镜到底攻略解说 第二期",      "text": "一周目逆天者难度全程无伤一镜到底攻略解说。\n非全收集攻略,但每一期开始前会把之前落下的东西收集全。\n一般情况下会根据游戏背景选择会用哪种语言的歌曲做片尾,但奈何自己中文歌听的太少(没有说中文歌不好的意思,死宅一般只听ACG相关歌曲导致的),只能选兼容性较强的英文歌了。",      "duration_seconds": 2557,      "view_count": 124256,      "like_count": 22930,      "comment_count": 1332,      "danmaku_count": 2548,      "favorite_count": 6920,      "coin_count": 27325,      "share_count": 1330,      "thumbnail_url": "http://i2.hdslb.com/bfs/archive/b7ac5c9c3dcd22bc3f042eb2cd1892d96a7e9438.jpg",      "posted_at": "2026-11-07T12:15:29+00:00",      "category": "单机游戏",      "author_name": "-•••-",      "author_id": "•••",      "author_url": "https://space.bilibili.com/•••",      "author_avatar_url": "https://i0.hdslb.com/•••",      "recommend_reason": "人气飙升",      "ip_location": "•••",      "platform": "bilibili",      "duration_sec": 2557    }  ],  "next_page_token": …,  "pagination": { … },  "count": 20,  "billing": {    "charged": …,    "charged_usd": …,    "balance_after_usd": …,    …  },  "quota": { … }}

Response fields

#

Business data is in results. The table lists the fields a record can contain; values the platform does not show are never made up.

FieldMeaning
idThe record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms.
aidThe video's numeric av ID (popular); it names the same video as the BV ID in id.
urlLink to the record on the platform.
titleTitle. null when the platform has no titles (for example text-only posts).
textBody text with HTML removed, returned in full and never cut short (on a few platforms the list results themselves carry only an excerpt; the platform's field notes say so).
duration_secondsDuration in seconds. null for content that is not video or audio.
duration_secKeeps the platform's own meaning
view_countViews or plays. null means not disclosed, not 0.
like_countLikes. null means the platform or this capability does not disclose it; it is not 0.
comment_countComments. null means not disclosed, not 0.
danmaku_countDanmaku (on-screen comment) count. A Bilibili-specific engagement signal; read it alongside comment_count.
favorite_countFavorites.
coin_countCoins given. Coins are a paid form of approval on Bilibili and weigh more than likes.
share_countShares. null means not disclosed, not 0.
thumbnail_urlThumbnail link, lower resolution than image_url.
posted_atPublish time in ISO 8601, UTC (for example 2026-08-07T12:34:56+00:00). Non-standard strings from the platform are passed through as is, so parse defensively. null means the platform does not disclose it.
categoryCategory name in the platform's own taxonomy, not normalized across platforms.
author_nameAuthor's display name.
author_idAuthor's unique ID on the platform.
author_urlLink to the author's profile on the platform.
author_avatar_urlUploader avatar link (popular).
recommend_reasonThe tag Bilibili puts on a Popular video, as shown (popular), for example for passing a million views or many shares; absent when there is none.
ip_locationUpload location (popular): the IP region Bilibili shows on the video page, a province or country.
platformSource platform identifier, the same as platform in the request (for example xiaohongshu, tiktok).

Errors and billing

#
401
Missing or invalid key.
402
Insufficient balance. Top up first.
422
Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
429
Per-minute request limit reached. Wait for Retry-After, then try again.
503
Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
200 empty
No data. No charge.

Errors

Our own visit stats are always on. Google Analytics loads only if you choose “Allow analytics”. Privacy policy