API de Reddit: Comentarios de la publicación
Comentarios de primer nivel de una publicación de Reddit por URL: autor, cuerpo, puntuación y marca de tiempo. Pagina con el campo cursor.
US$0.60/1k solic., pagas por solicitud, sin suscripción.
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}
Precios y proveedores
Precios del endpoint Comentarios de la publicación de la API de Reddit: una API, 3 proveedores intercambiables
El proveedor más barato responde primero. Si falla, el siguiente toma el relevo en la misma llamada.
Pruébalo
Obtén Comentarios de la publicación de Reddit en una sola solicitud
Este ejemplo muestra 8 de 18 campos. Ver todos los campos
{
"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
}
]
}
}Referencia completa de parámetros y respuesta: cada campo, tipo y ejemplo de este endpoint.
Referencia
Una solicitud, un formato de respuesta.
Cada campo que envías y cada campo que recibes, cada uno con un ejemplo real.
Verificado por última vez el 2026-11-14 · disponibilidad y latencia medidas en 30d
Cuerpo de la solicitud
JSON, enviado por POST a este 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
Cursor de una respuesta anterior para obtener más comentarios.
Respuesta
JSON, un valor de ejemplo por 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
- typestring
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.
¿Vendes esta API? Consulta el esquema completo que debe devolver tu endpoint.
Preguntas frecuentes
Acerca del endpoint Comentarios de la publicación de la API de Reddit
El endpoint Comentarios de la publicación de AnyAPI para Reddit devuelve datos de Reddit como JSON normalizado con una sola llamada POST a /v1/run/reddit.post_comments. Comentarios de primer nivel de una publicación de Reddit por URL: autor, cuerpo, puntuación y marca de tiempo. Pagina con el campo cursor. AnyAPI enruta cada solicitud entre 3 fuentes y recurre automáticamente a otra cuando una falla. Cuesta desde US$0.60 por cada 1,000 solicitudes, en dólares estadounidenses, sin suscripción y sin mínimo mensual. En los últimos 30 días, el 100.0% de las llamadas al endpoint Comentarios de la publicación de la API de Reddit a través de AnyAPI tuvo éxito, con un tiempo de respuesta mediano de 1.2 segundos en 98.953 llamadas medidas.