Reddit Commentaires de la publication API
Commentaires de premier niveau d’une publication Reddit par URL : auteur, corps, score et horodatage. Paginez avec le champ cursor.
0,58 $US/1k req, paiement à la requête, sans abonnement.
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}
Tarifs et fournisseurs
Tarifs de l’API Reddit Commentaires de la publication : une API, 4 fournisseurs interchangeables
Le fournisseur le moins cher répond en premier. S’il échoue, le suivant prend le relais dans le même appel.
Essayer
Obtenez Reddit Commentaires de la publication en une requête
Cet exemple affiche 8 champs sur 18. Voir tous les champs
{
"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
}
]
}
}Référence complète des paramètres et de la réponse : chaque champ, type et exemple de cet endpoint.
Référence
Une requête, une seule forme de réponse.
Chaque champ que vous envoyez et chaque champ que vous recevez, avec un vrai exemple.
Dernière vérification : 2026-11-21 · disponibilité et latence mesurées sur 30d
Corps de la requête
JSON, envoyé à cet 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
Curseur d’une réponse précédente pour obtenir plus de commentaires.
- 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.
Réponse
JSON, une valeur d’exemple par champ.
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
- typestringpeut exiger
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.
Vous vendez cette API ? Consultez le schéma complet que votre endpoint doit renvoyer.
FAQ
À propos de l’API Reddit Commentaires de la publication
L’API Reddit Commentaires de la publication d’AnyAPI renvoie des données Reddit en JSON normalisé à partir d’un appel POST à /v1/run/reddit.post_comments. Commentaires de premier niveau d’une publication Reddit par URL : auteur, corps, score et horodatage. Paginez avec le champ cursor. AnyAPI route chaque requête sur 4 sources et bascule automatiquement quand l’une échoue. Elle coûte à partir de 0,58 $US pour 1 000 requêtes, en dollars US, sans abonnement et sans minimum mensuel. Ces 30 derniers jours, 100,0% des appels Reddit Commentaires de la publication passés par AnyAPI ont réussi, avec un temps de réponse médian de 1,0 secondes, sur 109 924 appels mesurés.