API de Reddit

API de Reddit: Publicaciones en tendencia

Obtén las publicaciones de Reddit en tendencia ahora mismo en todos los subreddits, con paginación estable por cursor.

US$0.30/1k solic., pagas por solicitud, sin suscripción.

r/popular
reddit.com/r/popular/
redditLog InSign Up
BestHotNewTopRising4.2M here
84.2K

r/space· Jun 4, 2024

NASA's Europa Clipper sends back its first images of Jupiter's icy moon

3,120 CommentsShareSave
CommentsShareSave
CommentsShareSave
Lo que devolvió la APIposts[0]
{
"id": "1gm3k8",
"title": "NASA's Europa Clipper sends back its first images of Jupiter's icy moon",
"selftext": "",
"author": "orbital_mechanic",
"score": 84210,
"numComments": 3120,
"url": "https://www.nasa.gov/europa-clipper-first-images",
"permalink": "/r/space/comments/1gm3k8/nasas_europa_clipper_sends_back_its_first_images/",
... 8 campos más
}
Disponibilidad
92.79%
30d · 666 llamadas
Solicitudes
666
30d · semanal, últimas 12 sem.
Respuesta
2.0s
mediana · 30d

Precios

Precios del endpoint Publicaciones en tendencia de la API de Reddit

Pagas
US$3.00
US$0.30/1k solic., solo por lo que usas. Sin plan mensual.
Tus primeras 333 solicitudes son gratis con el saldo inicial de US$0.10.

Pruébalo

Obtén Publicaciones en tendencia de Reddit en una sola solicitud

Abrir en
Respuesta de ejemplo
Las ejecuciones gratis devuelven solo los primeros 3 resultados. Agrega fondos a una clave para obtener la respuesta completa.

Este ejemplo muestra 20 de 21 campos. Ver todos los campos

{
  "found": true,
  "data": {
    "posts": [
      {
        "id": "1gm3k8",
        "title": "NASA's Europa Clipper sends back its first images of Jupiter's icy moon",
        "selftext": "",
        "author": "orbital_mechanic",
        "score": 84210,
        "numComments": 3120,
        "url": "https://www.nasa.gov/europa-clipper-first-images",
        "permalink": "/r/space/comments/1gm3k8/nasas_europa_clipper_sends_back_its_first_images/",
        "createdUtc": 1717516800,
        "subreddit": "space",
        "isArchived": false,
        "isLocked": false,
        "authorId": "4d8k1n",
        "nsfw": false,
        "upvoteRatio": 0.98,
        "domain": "nasa.gov"
      },
      {
        "id": "1gm2f1",
        "title": "Study finds four day work week trial improved productivity at 92% of companies",
        "selftext": "",
        "author": "econ_watcher",
        "score": 41720,
        "numComments": 5896,
        "url": "https://www.reuters.com/business/four-day-week-trial-results",
        "permalink": "/r/technology/comments/1gm2f1/study_finds_four_day_work_week_trial_improved/",
        "createdUtc": 1717513200,
        "subreddit": "technology",
        "isArchived": false,
        "isLocked": false,
        "authorId": "7q2m9x",
        "nsfw": false,
        "upvoteRatio": 0.95,
        "domain": "reuters.com"
      },
      {
        "id": "1gm1a4",
        "title": "Indie studio's 6 person team ships a 40 hour RPG built entirely in Godot",
        "selftext": "After three years of nights and weekends we finally launched Wraithmoor Keep on Steam. It is built entirely in Godot 4 and the whole team is six people. Happy to answer questions about the pipeline.",
        "author": "trailrunner_kate",
        "score": 26330,
        "numComments": 1042,
        "url": "https://www.reddit.com/r/gaming/comments/1gm1a4/indie_studios_6_person_team_ships_a_40_hour_rpg/",
        "permalink": "/r/gaming/comments/1gm1a4/indie_studios_6_person_team_ships_a_40_hour_rpg/",
        "createdUtc": 1717509600,
        "subreddit": "gaming",
        "isArchived": false,
        "isLocked": false,
        "authorId": "3f5j7p",
        "nsfw": false,
        "upvoteRatio": 0.99,
        "domain": "self.gaming"
      }
    ],
    "nextCursor": "t3_1gm0d2"
  }
}

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.

  • afterstring

    Cursor de paginación del nextCursor de una respuesta anterior. Omítelo para la primera página.

  • limitinteger

    25

    Maximum number of trending posts to return (1-100, default 100).

Envías. Un cuerpo JSON pequeño. Los valores que se muestran son ejemplos para reemplazar por los tuyos.

Respuesta

JSON, un valor de ejemplo por campo.

datadata
  • nextCursorstring

    t3_1gm0d2

    Cursor for the next page; pass it back as after. Null when no more results exist.

each postdata.posts[]

Populated whenever the provider has data for the entity.

  • authorstring

    orbital_mechanic

    Author username, without the u/ prefix. Populated whenever the provider has data for the entity.

  • authorIdstring

    4d8k1n

    Reddit account ID of the author, without the t2_ prefix.

  • createdUtcnumber

    1717516800

    UTC epoch timestamp in seconds (Unix time). Populated whenever the provider has data for the entity.

  • domainstring

    nasa.gov

    Domain the post links to, for example "self.IAmA" for a text post.

  • idstring

    1gm3k8

    Reddit post ID (base-36, without the t3_ prefix). Populated whenever the provider has data for the entity.

  • isArchivedboolean

    false

    True when Reddit has archived the thread, which blocks new comments and votes. Archiving is a per-community setting, so an old thread is not necessarily archived. Absent when the source that served this request does not report it, which means unknown rather than false.

  • isLockedboolean

    false

    True when a moderator has locked the thread, which blocks new comments. Absent when the source that served this request does not report it, which means unknown rather than false.

  • nsfwboolean

    false

    Whether the post is marked not-safe-for-work.

  • numCommentsinteger

    3120

    Total number of comments on the post.

  • permalinkstring

    /r/space/comments/1gm3k8/nasas_europa_clipper_sends_back_its_first_images/

    Canonical reddit.com thread path for the post. Populated whenever the provider has data for the entity.

  • scoreinteger

    84210

    Net score (upvotes minus downvotes) at fetch time.

  • selftextstring

    Body text of a self post, as Markdown. Empty on a link post, which has no body.

  • subredditstring

    space

    Subreddit name, without the r/ prefix. Populated whenever the provider has data for the entity.

  • titlestring

    NASA's Europa Clipper sends back its first images of Jupiter's icy moon

    Post title. Populated whenever the provider has data for the entity.

  • upvoteRationumber

    0.98

    Share of votes on the post that are upvotes, between 0 and 1.

  • urlstring

    https://www.nasa.gov/europa-clipper-first-images

    The post's destination link: the external URL for a link post, the media URL for an image, gallery or video post, or the thread URL for a text post. A text post that also carries an image may give either its thread URL or the image URL. Populated whenever the provider has data for the entity.

top level
  • 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.

Recibes. Campos con nombre y tipo, con el mismo formato sin importar qué fuente responda.

Preguntas frecuentes

Acerca del endpoint Publicaciones en tendencia de la API de Reddit

El endpoint Publicaciones en tendencia de AnyAPI para Reddit devuelve datos de Reddit como JSON normalizado con una sola llamada POST a /v1/run/reddit.trending_posts. Obtén las publicaciones de Reddit en tendencia ahora mismo en todos los subreddits, con paginación estable por cursor. AnyAPI devuelve un único esquema normalizado sin importar qué fuente atienda la solicitud. Cuesta desde US$0.30 por cada 1,000 solicitudes, en dólares estadounidenses, sin suscripción y sin mínimo mensual. En los últimos 30 días, el 92.8% de las llamadas al endpoint Publicaciones en tendencia de la API de Reddit a través de AnyAPI tuvo éxito, con un tiempo de respuesta mediano de 2.0 segundos en 666 llamadas medidas.

Cuesta desde US$0.30 por cada 1,000 solicitudes, en dólares estadounidenses, sin suscripción y sin mínimo mensual. Agregas fondos a una billetera en dólares y cada llamada descuenta de ella. Algunas solicitudes fallidas pagadas con la billetera generan cargos de procesamiento que trasladamos al costo, sin margen; la respuesta de error muestra el monto cobrado.

Obtén las publicaciones de Reddit en tendencia ahora mismo en todos los subreddits, con paginación estable por cursor. La respuesta es JSON normalizado con el mismo envoltorio que devuelve cada endpoint de AnyAPI, así que procesar un segundo endpoint es solo cambiar la URL.

En los últimos 30 días, el 92.8% de las llamadas al endpoint Publicaciones en tendencia de la API de Reddit a través de AnyAPI tuvo éxito, con un tiempo de respuesta mediano de 2.0 segundos en 666 llamadas medidas. Estas son mediciones propias de AnyAPI sobre el tráfico que pasa por el gateway, recalculadas continuamente, no un objetivo de nivel de servicio publicado.

Sí. Una cuenta nueva de AnyAPI empieza con US$0.10 de saldo gratis, sin tarjeta, que alcanza para 333 llamadas a Publicaciones en tendencia de Reddit a US$0.0003 cada una.

Envía una solicitud POST a https://api.getanyapi.com/v1/run/reddit.trending_posts con tu clave de AnyAPI en un encabezado "Authorization: Bearer" y la entrada como cuerpo JSON. La misma clave y la misma billetera sirven para todos los endpoints de AnyAPI.

No. Agregas dólares a un solo saldo prepagado de AnyAPI y cada solicitud descuenta de él. No hay plan mensual ni mínimo, y el mismo saldo paga todos los endpoints de AnyAPI.

Sí. Instala @getanyapi/sdk desde npm para TypeScript o getanyapi desde pip para Python. Ambos llaman a todos los endpoints de AnyAPI con la misma clave, y también sirve cualquier cliente HTTP.

Sí. Un agente puede conectarse al servidor MCP de AnyAPI en https://api.getanyapi.com/mcp, o crear su propia clave de prueba gratis con un solo POST sin autenticar a https://api.getanyapi.com/agent/signup y llamar a este endpoint por HTTP.