POST

API health

24h health
Normal
  • Healthy / normal
  • Available
Normal

Last 24 hours

Last 30 days

Read the replies under one top-level comment on a Bilibili video, oldest first, 20 per page. Each reply has text, likes, time, the replier and their level, and which reply it answers when it replies to a reply. Pass next_page_token back as page_token for more.

Send POST https://api.everyinfra.com/api/v1/social with platform set to bilibili and action set to comment_replies. Price $0.56 per 1,000 requests ($0.000556 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 Comment replies endpoint (bilibili/comment_replies).

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 comment_replies, and put the parameters inside params.
- Required parameters:
  - url: The video the comment is on: a Bilibili video link such as https://www.bilibili.com/video/<BV ID>, or the BV ID itself. Anything else returns 422 and is not charged.
  - comment_id: The top-level comment's numeric ID, taken from the id of a comments row. A value that is not all digits returns 422 and is not charged.
- Optional parameters:
  - page_token: Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, with the other parameters unchanged. Replies run oldest first, up to 20 per page.
- Returns a list of records. Main fields of each record: id, url, text, like_count, reply_count, posted_at, root_comment_id, reply_to_comment_id, video_id, author_id, author_name, author_url; 18 fields in total, full list at https://api.everyinfra.com/api/v1/social/catalog?platform=bilibili.
- Example request body:
{
  "platform": "bilibili",
  "action": "comment_replies",
  "params": {
    "url": "https://www.bilibili.com/video/BV1uv411q7Mv",
    "comment_id": "3249407228"
  }
}
- Price: $0.56 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.
actionbodystringYescomment_repliesCapability identifier, fixed value.
urlbody.paramsstringYes-The video the comment is on: a Bilibili video link such as https://www.bilibili.com/video/<BV ID>, or the BV ID itself. Anything else returns 422 and is not charged.
comment_idbody.paramsstringYes-The top-level comment's numeric ID, taken from the id of a comments row. A value that is not all digits returns 422 and is not charged.
page_tokenbody.paramsstringNo-Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, with the other parameters unchanged. Replies run oldest first, up to 20 per page; each page is one call and limit has no effect. Tokens last 24 hours, and the last page has no next_page_token.

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": "comment_replies",
  "params": {
    "url": "https://www.bilibili.com/video/BV1uv411q7Mv",
    "comment_id": "3249407228"
  }
}'

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

Response example

#
Captured November 21, 2026 at 07:17 (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": "comment_replies",  "results": [    {      "id": "•••",      "url": "https://www.bilibili.com/video/BV1uv411q7Mv#reply178599527152",      "text": "这波和头像配合得不是很好[tv_doge][tv_doge][tv_doge]",      "like_count": 4,      "reply_count": 0,      "posted_at": "2023-08-02T13:52:38+00:00",      "root_comment_id": "•••",      "video_id": "BV1uv411q7Mv",      "author_id": "•••",      "author_name": "D•••1",      "author_url": "https://space.bilibili.com/•••",      "author_avatar_url": "https://i0.hdslb.com/•••",      "author_level": 6,      "is_by_uploader": false,      "ip_location": "•••",      "platform": "bilibili"    },    {      "id": "•••",      "url": "https://www.bilibili.com/video/BV1uv411q7Mv#reply251062381824",      "text": "最喜欢的创作了",      "like_count": 1,      "reply_count": 0,      "posted_at": "2024-12-30T11:56:13+00:00",      "root_comment_id": "•••",      "video_id": "BV1uv411q7Mv",      "author_id": "•••",      "author_name": "老•••l",      "author_url": "https://space.bilibili.com/•••",      "author_avatar_url": "https://i1.hdslb.com/•••",      "author_level": 6,      "is_by_uploader": false,      "ip_location": "•••",      "platform": "bilibili"    }  ],  "next_page_token": …,  "pagination": { … },  "count": 5,  "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.
urlLink to the record on the platform.
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).
like_countLikes. null means the platform or this capability does not disclose it; it is not 0.
reply_countReplies, usually replies to a comment. null means not disclosed.
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.
root_comment_idKeeps the platform's own meaning
reply_to_comment_idKeeps the platform's own meaning
video_idKeeps the platform's own meaning
author_idAuthor's unique ID on the platform.
author_nameAuthor's display name.
author_urlLink to the author's profile on the platform.
author_avatar_urlUploader avatar link (popular).
author_levelKeeps the platform's own meaning
is_by_uploaderKeeps the platform's own meaning
ip_locationUpload location (popular): the IP region Bilibili shows on the video page, a province or country.
image_urlsArray of image links in the platform's display order; absent when there are no images.
mentionsKeeps the platform's own meaning
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

Google Analytics needs consent. Privacy