post_idsstringobbligatorio
Post IDs comma-separated, format like "t3_XXXXXX,t3_YYYYYY", max 5 posts
https://api.sandbase.ai/v1/api/reddit/app/post-details-batchReturns detailed post data for up to five Reddit posts specified by ID. Supports optional comment context and structured data formatting.
[
{
"data": {
"postsInfoByIds": null
}
}
]Seleziona un esempio per caricare i suoi input e il risultato nel playground.
Returns detailed data for up to five Reddit posts in one call. You pass the post IDs as a comma-separated string in post_ids, such as t3_1ojnh50,t3_1ok432f. Each result includes the author, flair, comment count, and status flags for the post.
DeletedSubredditPost because the post was removed.curl -X POST "https://api.sandbase.ai/v1/api/reddit/app/post-details-batch" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"post_ids": "t3_1ojnh50,t3_1ok432f,t3_1nwil8j"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
post_ids | string | Yes | Post IDs comma-separated, format like "t3_XXXXXX,t3_YYYYYY", max 5 posts |
comment_id | string | No | Comment ID (used when include_comment_id is True), format like "t1_XXXXXX" |
include_comment_id | boolean | No | Whether to include specific comment ID, default False |
need_format | boolean | No | Whether to clean and format the data |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"postsInfoByIds": [
{
"__typename": "SubredditPost",
"attributionInfo": null,
"authorCommunityBadge": null,
"authorFlair": null,
"authorInfo": {
"__typename": "Redditor",
"accountType": "USER",
"iconSmall": {
"__typename": "MediaSource",
"dimensions": {
"height": 50,
"width": 50
},
"url": "https://styles.redditmedia.com/t5_9uhspc/styles/profileIcon_snoo-nftv2_bmZ0X2Vpc…"
},
"id": "t2_n5zmzf3v0",
"isBlocked": false,
"isCakeDayNow": false,
"name": "ambachk",
"newIcon": {
"__typename": "MediaSource",
"dimensions": {
"height": 256,
"width": 256
},
"url": "https://styles.redditmedia.com/t5_9uhspc/styles/profileIcon_snoo-nftv2_bmZ0X2Vpc…"
}
},
"awardings": [
{
"__typename": "AwardingTotal",
"award": {
"__typename": "Award",
"id": "award_wholesome_seal",
"name": "Wholesome Seal",
"static_icon_16": {
"__typename": "MediaSource",
"dimensions": {
"height": 16,
"width": 16
},
"url": "https://www.redditstatic.com/marketplace-assets/v1/core/awards/wholsome_v1_16.pn…"
},
"static_icon_24": {
"__typename": "MediaSource",
"dimensions": {
"height": 24,
"width": 24
},
"url": "https://www.redditstatic.com/marketplace-assets/v1/core/awards/wholsome_v1_24.pn…"
},
"static_icon_32": {
"__typename": "MediaSource",
"dimensions": {
"height": 32,
"width": 32
},
"url": "https://www.redditstatic.com/marketplace-assets/v1/core/awards/wholsome_v1_32.pn…"
},
"static_icon_48": {
"__typename": "MediaSource",
"dimensions": {
"height": 48,
"width": 48
},
"url": "https://www.redditstatic.com/marketplace-assets/v1/core/awards/wholsome_v1_48.pn…"
},
"static_icon_64": {
"__typename": "MediaSource",
"dimensions": {
"height": 64,
"width": 64
},
"url": "https://www.redditstatic.com/marketplace-assets/v1/core/awards/wholsome_v1_64.pn…"
}
},
"total": 1
}
],
"awardingsInfo": null,
"commentCount": 11404,
"content": null,
"createdAt": "2025-10-30T01:58:59.142000+0000",
"crosspostRoot": null,
"crowdControlLevel": "OFF"
}
]
}
| Field | Meaning |
|---|---|
postsInfoByIds[] | One entry per requested post ID, in the order of the request. Posts that no longer exist come back as an entry with only __typename set to DeletedSubredditPost. |
postsInfoByIds[].__typename | Type of the entry. SubredditPost means the post data is present. DeletedSubredditPost means no data is available. |
postsInfoByIds[].id | Post ID in the t3_ format, for example t3_1ojnh50. |
postsInfoByIds[].createdAt | Creation time of the post as an ISO 8601 timestamp with a UTC offset. |
postsInfoByIds[].commentCount | Number of comments on the post. |
postsInfoByIds[].authorInfo.name / postsInfoByIds[].authorInfo.id | Username of the author and the author's account ID in the t2_ format. |
postsInfoByIds[].flair.text | Text of the post flair, for example Cringe. |
postsInfoByIds[].domain | Domain the post links to. The value v.redd.it marks a video hosted on Reddit. |
postsInfoByIds[].isLocked / postsInfoByIds[].isNsfw / postsInfoByIds[].isSpoiler / postsInfoByIds[].isStickied | Boolean flags that show whether the post is locked, marked NSFW, marked as a spoiler, or pinned. |
postsInfoByIds[].awardings[].award.name / postsInfoByIds[].awardings[].total | Name of each award on the post and how many times it was given. |
post_ids takes up to 5 IDs in the t3_XXXXXX format, separated by commas.comment_id in the t1_XXXXXX format together with include_comment_id set to true to add context for one comment.id.$0.005 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
curl -X POST "https://api.sandbase.ai/v1/api/reddit/app/post-details-batch" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"post_ids": "example"
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
post_idsstringobbligatorioPost IDs comma-separated, format like "t3_XXXXXX,t3_YYYYYY", max 5 posts
comment_idstringComment ID (used when include_comment_id is True), format like "t1_XXXXXX"
include_comment_idbooleanWhether to include specific comment ID, default False
need_formatbooleanWhether to clean and format the data
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
[
{
"data": {
"postsInfoByIds": null
}
}
]Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
Reddit Batch Post DetailsQuesta API Reddit | $0.005 per chiamata | JSON |
Reddit | $0.001 per chiamata | JSON |
Reddit | $0.001 per chiamata | JSON |
Reddit | $0.001 per chiamata | JSON |
Reddit | $0.001 per chiamata | JSON |
Reddit | $0.001 per chiamata | JSON |
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/reddit/app/post-details-batch con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
$0.005 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Richiesti: post_ids (string). Facoltativi: comment_id (string), include_comment_id (boolean) e need_format (boolean). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
No. Reddit Batch Post Details funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Reddit.