Reddit Commenti del post API
Commenti di primo livello a un post Reddit tramite URL: autore, testo, punteggio e timestamp. Pagina con il campo cursor.
0,58 USD/1k richieste, paghi a richiesta, nessun abbonamento.
r/MechanicalKeyboards·
Log in or sign up to leave a comment
switchdoctor· Jun 12, 2024
Look at the Keychron V-series, great value out of the box.
Reply
{"id": "t1_klm123","author": "switchdoctor","body": "Look at the Keychron V-series, great value out of the box.","url": "https://www.reddit.com/r/MechanicalKeyboards/comments/1abc234/comment/klm123/","createdUtc": 1718201500,"parentId": string,"score": integer}
Prezzi e provider
Prezzi dell'API Reddit Commenti del post: una sola API, 4 provider intercambiabili
Serve per primo il provider più economico. Se fallisce, subentra il successivo nella stessa chiamata.
Provalo
Ottieni Reddit Commenti del post in una sola richiesta
Questo esempio mostra 8 campi su 18. Vedi tutti i campi
{
"found": true,
"data": {
"comments": [
{
"id": "t1_klm123",
"author": "switchdoctor",
"body": "Look at the Keychron V-series, great value out of the box.",
"url": "https://www.reddit.com/r/MechanicalKeyboards/comments/1abc234/comment/klm123/",
"createdUtc": 1718201500
}
]
}
}Riferimento completo di parametri e risposta - ogni campo, tipo ed esempio per questo endpoint.
Riferimento
Una richiesta, una sola forma di risposta.
Ogni campo che invii e ogni campo che ricevi, ciascuno con un esempio reale.
Ultima verifica 2026-11-21 · disponibilità e latenza misurate su 30d
Corpo della richiesta
JSON, inviato a questo endpoint.
- urlstring
https://www.reddit.com/r/MechanicalKeyboards/comments/1abc234/
Full Reddit post URL on reddit.com. A gallery link (https://www.reddit.com/gallery/<id>) is read as the post it belongs to, and a relative permalink (/r/<subreddit>/comments/<id>/...) as the same path on https://www.reddit.com.
- cursorstring
Cursore da una risposta precedente per altri commenti.
- requireFieldsarray
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `media`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a post that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. On a paginated walk it applies to the first page only; later pages stay with the source that page chose, at the price it was quoted.
Risposta
JSON, un valore di esempio per campo.
Populated whenever the provider has data for the entity.
- authorstring
switchdoctor
Commenter username, without the u/ prefix. Populated whenever the provider has data for the entity.
- bodystring
Look at the Keychron V-series, great value out of the box.
Comment text, as Markdown. Populated whenever the provider has data for the entity.
- createdUtcnumber
1718201500
UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.
- idstring
t1_klm123
Reddit comment ID (base-36, without the t1_ prefix). Populated whenever the provider has data for the entity.
- parentIdstring
ID of the comment this one replies to (base-36, without the t1_ prefix). Empty for a top-level comment that replies to the post itself.
- scoreinteger
Net score (upvotes minus downvotes) on the comment at fetch time.
- urlstring
https://www.reddit.com/r/MechanicalKeyboards/comments/1abc234/comment/klm123/
Permalink to the comment on reddit.com. Populated whenever the provider has data for the entity.
Photo, video, and GIF attachments on the post. Empty when the post has none; null when the serving source does not report attachments.
- heightinteger
- typestringpuò richiedere
One of photo, video, or gif.
- urlstring
Image URL. For a video or GIF this is the poster/thumbnail frame.
- videoUrlstring
Playable video file URL. Present only for video and gif items.
- widthinteger
- nextCursorstring
Opaque cursor for the next page of comments, or null when this lane has no more. Pass it back as cursor to continue.
- foundboolean
true
- reason"not_found"
Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.
Vendi questa API? Consulta lo schema completo che il tuo endpoint deve restituire.
FAQ
Sull'API Reddit Commenti del post
L'API Reddit Commenti del post di AnyAPI restituisce dati Reddit come JSON normalizzato da una sola chiamata POST a /v1/run/reddit.post_comments. Commenti di primo livello a un post Reddit tramite URL: autore, testo, punteggio e timestamp. Pagina con il campo cursor. AnyAPI instrada ogni richiesta su 4 fonti e passa automaticamente a un'altra quando una fallisce. Costa da 0,58 USD ogni 1.000 richieste, in dollari statunitensi, senza abbonamento e senza minimo mensile. Negli ultimi 30 giorni, il 100,0% delle chiamate Reddit Commenti del post tramite AnyAPI è riuscito, con un tempo di risposta mediano di 1,0 secondi su 109.924 chiamate misurate.