API para Reddit

API para Reddit: Posts em alta

Obtenha os posts do Reddit em alta agora em todos os subreddits, com paginação por cursor estável.

POST/v1/run/reddit.trending_posts
Disponibilidade
100,00%
30d · 61 chamadas
Requisições
61
30d · semanal, últimas 12 sem.
Resposta
2,2s
mediana · 30d

Preços

Um preço, em dólares

Teste

Faça sua primeira requisição

Abrir em
Obter chave grátis
Resposta de exemplo
Execuções grátis retornam só os primeiros 3 resultados. Recarregue uma chave para receber a resposta completa.
{
  "data": {
    "nextCursor": "example",
    "posts": [
      {
        "author": "Alex Rivera",
        "authorId": "Alex Rivera",
        "createdUtc": 12.5,
        "domain": "example.com",
        "id": "a1b2c3d4",
        "isArchived": false,
        "isLocked": true,
        "nsfw": true,
        "numComments": 12500,
        "permalink": "https://example.com/page",
        "score": 5,
        "selftext": "A short example description of this item.",
        "subreddit": "example",
        "title": "Example title",
        "upvoteRatio": 12.5,
        "url": "https://example.com/page"
      }
    ]
  },
  "found": true,
  "reason": "not_found"
}
Interface da resposta
interface RedditTrendingPostsResponse {
  data: {
    nextCursor: string | null;
    posts: {
      author: string;
      authorId?: string;
      createdUtc: number;
      domain?: string;
      id: string;
      isArchived?: boolean;
      isLocked?: boolean;
      nsfw?: boolean;
      numComments: number;
      permalink: string;
      score: number;
      selftext?: string;
      subreddit: string;
      title: string;
      upvoteRatio?: number;
      url: string;
    }[];
  } | null;
  found: boolean;
  reason?: "not_found";
}

Referência completa de parâmetros e resposta - todos os campos, tipos e exemplos deste endpoint.

Referência

Requisição, resposta e preço

Última verificação em 2026-09-29 · disponibilidade e latência medidas em 30d
POST /v1/run/reddit.trending_posts
curl -X POST https://api.getanyapi.com/v1/run/reddit.trending_posts \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":25}'
CampoTipoValor de exemplo
Corpo da requisição
afterstringCursor de paginação do nextCursor de uma resposta anterior. Omita na primeira página.
limitinteger25Número máximo de posts em alta a retornar (1-100, padrão 25).
Resposta
dataobject
data.nextCursorstringCursor for the next page; pass it back as after. Null when no more results exist.
data.postsobject[]Populated whenever the provider has data for the entity.
data.posts[].authorstringAuthor username, without the u/ prefix. Populated whenever the provider has data for the entity.
data.posts[].authorIdstringReddit account ID of the author, without the t2_ prefix.
data.posts[].createdUtcnumberUTC epoch timestamp in seconds (Unix time). Populated whenever the provider has data for the entity.
data.posts[].domainstringDomain the post links to, for example "self.IAmA" for a text post.
data.posts[].idstringReddit post ID (base-36, without the t3_ prefix). Populated whenever the provider has data for the entity.
data.posts[].isArchivedbooleanTrue 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.
data.posts[].isLockedbooleanTrue 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.
data.posts[].nsfwbooleanWhether the post is marked not-safe-for-work.
data.posts[].numCommentsintegerTotal number of comments on the post.
data.posts[].permalinkstringCanonical reddit.com thread path for the post. Populated whenever the provider has data for the entity.
data.posts[].scoreintegerNet score (upvotes minus downvotes) at fetch time.
data.posts[].selftextstringBody text of a self post, as Markdown. Empty on a link post, which has no body.
data.posts[].subredditstringSubreddit name, without the r/ prefix. Populated whenever the provider has data for the entity.
data.posts[].titlestringPost title. Populated whenever the provider has data for the entity.
data.posts[].upvoteRationumberShare of votes on the post that are upvotes, between 0 and 1.
data.posts[].urlstringThe post's destination link. Populated whenever the provider has data for the entity.
foundboolean
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.
Preço
Preço por requisiçãoUSDUS$ 0,0002
Preço /mil req.USDUS$ 0,20

Dúvidas frequentes

Sobre o endpoint Posts em alta da API para Reddit

O endpoint Posts em alta da AnyAPI para Reddit retorna dados de Reddit em JSON normalizado com uma chamada POST para /v1/run/reddit.trending_posts. Obtenha os posts do Reddit em alta agora em todos os subreddits, com paginação por cursor estável. A AnyAPI retorna um schema normalizado, seja qual for a fonte que atende. Custa a partir de US$ 0,20 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 100,0% das chamadas ao endpoint Posts em alta da API para Reddit feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 2,2 segundos, em 61 chamadas medidas.

Custa a partir de US$ 0,20 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Você recarrega uma carteira em dólares e cada chamada desconta dela. Algumas requisições pagas pela carteira que falham geram cobranças de processamento, que repassamos pelo custo, sem margem; a resposta de erro mostra o valor cobrado.

Obtenha os posts do Reddit em alta agora em todos os subreddits, com paginação por cursor estável. A resposta é JSON normalizado, com o mesmo envelope que todo endpoint da AnyAPI retorna, então processar um segundo endpoint é só trocar a URL, e nada mais.

Nos últimos 30 dias, 100,0% das chamadas ao endpoint Posts em alta da API para Reddit feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 2,2 segundos, em 61 chamadas medidas. Estas são medições da própria AnyAPI sobre o tráfego que passa pelo gateway, recalculadas continuamente, e não uma meta de nível de serviço publicada.