Weibo · Comments
All replies to a comment
Send comment IDs; get every reply under each comment with text, likes, time and the replier's public profile and IP location.
POST/v1/weibo/replies
$0.00373per record
- 1,000 records
- ≈ $3.73
- minimum per page of 5 records
- $0.001412
Works with trial balanceOne request, no cursor
Send it
POST with a JSON body, or GET with the same parameters in the query string. Your key goes in the Authorization header.
curl -X POST "https://api.silklinedata.com/v1/weibo/replies" \
-H "Authorization: Bearer $SILKLINE_KEY" \
-H "Content-Type: application/json" \
-d '{"limit":5,"commentIds":["5350630329945143"]}'import os, requests
response = requests.post(
"https://api.silklinedata.com/v1/weibo/replies",
headers={"Authorization": "Bearer " + os.environ["SILKLINE_KEY"]},
json={
"limit": 5,
"commentIds": ["5350630329945143"],
},
)
answer = response.json()
print(answer["data"], answer["meta"]["charged_usd"])const response = await fetch("https://api.silklinedata.com/v1/weibo/replies", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.SILKLINE_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"limit": 5,
"commentIds": [
"5350630329945143"
]
}),
});
const { data, cursor, meta } = await response.json();
console.log(data, meta.charged_usd);What comes back
There is no stored real answer for this endpoint yet, so none is shown. Records come back as JSON objects in data.
Parameters 2
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| limit | integer | no | How many records to return, 1 to 100. A request never returns more than this. | 5 |
| commentIds | array | yes | Numeric comment IDs, e.g. the commentId of a comment returned by comments mode. Returns every reply under each comment. | ["5350630329945143"] |
Paging
This endpoint answers in one request: raise limit (up to 100) for more records. cursor is always null.
What a request costs
You pay per record; when a request returns few records or none, it is charged at most the endpoint minimum for each page it reads, possibly less, and errors or timeouts on our side are not charged.
Here a page holds up to 5 records and its minimum is $0.001412; a request for 100 records reads 20 pages.
- 1 record: up to $0.00373
- 20 records: up to $0.0746
- 100 records: up to $0.373
The response's meta says what was charged (charged_usd) and what is left (balance_usd). Errors on our side are not charged.
Questions
What parameters does All replies to a comment take?
Required: commentIds. Every request also takes limit (1 to 100).
How many records does one request return?
Up to 100 (limit 1 to 100). A page holds up to 5 records, so 100 records take 20 pages in one request.
Can I page through more results?
No. This endpoint answers in full in one request; the answer's cursor is null.
How much does it cost?
Per record: record $0.00373. The minimum is $0.001412 per page: with few records or none, a request pays at most that for each page it reads, possibly less. 100 records cost at most $0.373.
What does a request cost when it fails or comes back empty?
You pay per record; when a request returns few records or none, it is charged at most the endpoint minimum for each page it reads, possibly less, and errors or timeouts on our side are not charged. Each answer's meta says what the request was charged and the balance left.