API para Telegram

API para Telegram: Channel posts

Get a public Telegram channel's posts by username, about 20 per page with a cursor for older pages: text, posting time, views, photo and video links, and reactions.

POST/v1/run/telegram.channel_posts
Disponibilidade
100,00%
30d · 11.669 chamadas
Requisições
11.907
30d · semanal, últimas 12 sem.
Resposta
0,6s
mediana · 30d

Status

Carregando status...

Receber e-mails de falhas deste endpoint

Ver todos os endpoints na página de status

Preços e provedores

Preços do endpoint Channel posts da API para Telegram: uma API, 3 provedores intercambiáveis

O provedor mais barato atende primeiro. Se ele falhar, o próximo assume na mesma chamada.

Você paga
US$ 11,00
US$ 1,10/mil req., só pelo que você usar. Sem plano mensal.
Suas primeiras 90 requisições são grátis com o saldo inicial de US$ 0,10.

Teste

Obtenha Channel posts do Telegram em uma só requisição

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 `linkPreviewUrl` or `edited`, 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.
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": [
      {
        "channel": "example",
        "createdUtc": 12.5,
        "edited": true,
        "id": "a1b2c3d4",
        "image": "https://example.com/image.jpg",
        "linkPreviewDescription": "https://example.com/page",
        "linkPreviewTitle": "https://example.com/page",
        "linkPreviewUrl": "https://example.com/page",
        "media": [
          {
            "durationSeconds": 12.5,
            "image": "https://example.com/image.jpg",
            "type": "general",
            "url": "https://example.com/page"
          }
        ],
        "mediaUrls": [
          "https://example.com/page"
        ],
        "reactions": [
          {
            "count": 12500,
            "emoji": "example"
          }
        ],
        "text": "A short example description of this item.",
        "url": "https://example.com/page",
        "views": 12500
      }
    ]
  },
  "found": true,
  "reason": "not_found"
}

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

Referência

Uma requisição, um formato de resposta.

Cada campo que você envia e cada campo que você recebe, cada um com um exemplo real.

Última verificação em 2026-12-03 · disponibilidade e latência medidas em 30d

Corpo da requisição

JSON, enviado via POST para este endpoint.

  • handlestring

    telegram

    Public Telegram channel username, with or without the @ (e.g. "telegram"), or its t.me link.

  • cursorstring

    Opaque pagination cursor from a previous response's nextCursor, for older posts. Omit for the newest page; a page holds about 20 posts.

  • 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 `linkPreviewUrl` or `edited`, 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.

Você envia. Um corpo JSON pequeno. Os valores mostrados são exemplos para você trocar pelos seus.

Resposta

JSON, um valor de exemplo por campo.

datadata

Wrapper holding the posts array and the next-page cursor, or null when nothing was found.

  • nextCursorstring

    Opaque cursor for the next, older page of posts, or null/empty when there are no more. Pass it back as cursor to continue.

each postdata.posts[]

One page of the channel's posts, about 20, from the newest page back. Populated whenever the provider has data for the entity.

  • channelstring

    Username of the channel that published the post.

  • createdUtcnumber

    UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity.

  • editedbooleanpode ser exigido

    True when the post was edited after it was published. Null when this source does not report it.

  • idstring

    Post number, unique within the channel. Posts are numbered in order. Populated whenever the provider has data for the entity.

  • imagestring

    Thumbnail image URL for the post's photo, video or link preview; null when it has none. Temporary: Telegram's CDN link expires.

  • linkPreviewDescriptionstringpode ser exigido

    Description on the post's link preview card. Null when the post has no link preview, the card has no description, or this source does not report it.

  • linkPreviewTitlestringpode ser exigido

    Title on the post's link preview card. Null when the post has no link preview, the card has no title, or this source does not report it.

  • linkPreviewUrlstringpode ser exigido

    URL of the page the post's link preview card shows. Null when the post has no link preview or this source does not report it.

  • mediaUrlsstring[]

    Direct URLs of the post's photos and videos. Temporary and signed: keep the query string. Empty when the post has no media or Telegram withholds a large video's file.

  • textstring

    Post text or media caption, plain. Empty when the post has none. Some sources collapse line breaks into spaces. Populated whenever the provider has data for the entity.

  • urlstring

    The post's t.me link, e.g. https://t.me/telegram/441. Populated whenever the provider has data for the entity.

  • viewsinteger

    View count. Telegram rounds it ("1.2K" becomes 1200). Null when not shown.

each mediadata.posts[].media[]

The post's attachments in order, each with its kind, file URL, preview image and length. Empty when the post has none; null when this source does not report them.

  • durationSecondsnumber

    Video length in seconds; null for other attachments.

  • imagestring

    Preview image URL (the photo itself for a photo). Temporary: Telegram's CDN link expires. Null when there is none.

  • typestring

    Attachment kind as Telegram labels it, e.g. photo or video.

  • urlstring

    Direct file URL. Temporary and signed: keep the query string. Null when Telegram withholds the file, as for a large video.

each reactiondata.posts[].reactions[]

Reactions on the post and how many of each. Empty when the post has none or the channel hides them.

  • countinteger

    How many times it was given. Telegram rounds large counts.

  • emojistring

    The reaction's emoji; null for a custom emoji, and on some sources for a paid star reaction.

top level
  • foundboolean

    True when the channel's posts were found; false when no public channel has this username or it has no readable posts.

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

Você recebe. Campos nomeados e tipados, no mesmo formato, seja qual for a fonte que responder.

Dúvidas frequentes

Sobre o endpoint Channel posts da API para Telegram

O endpoint Channel posts da AnyAPI para Telegram retorna dados de Telegram em JSON normalizado com uma chamada POST para /v1/run/telegram.channel_posts. Get a public Telegram channel's posts by username, about 20 per page with a cursor for older pages: text, posting time, views, photo and video links, and reactions. A AnyAPI distribui cada requisição entre 3 fontes, com failover automático quando uma falha. Custa a partir de US$ 1,10 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 100,0% das chamadas ao endpoint Channel posts da API para Telegram feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 0,6 segundos, em 11.669 chamadas medidas.

Custa a partir de US$ 1,10 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.

Get a public Telegram channel's posts by username, about 20 per page with a cursor for older pages: text, posting time, views, photo and video links, and reactions. 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 Channel posts da API para Telegram feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 0,6 segundos, em 11.669 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.

Sim. Uma conta nova da AnyAPI começa com US$ 0,10 de saldo grátis, sem cartão, o que cobre 90 chamadas de Channel posts do Telegram a US$ 0,0011 cada.

A AnyAPI consulta a próxima das suas 3 fontes na mesma requisição, começando pela mais barata, então a queda de uma fonte não derruba sua chamada.

Envie uma requisição POST para https://api.getanyapi.com/v1/run/telegram.channel_posts com sua chave da AnyAPI em um cabeçalho "Authorization: Bearer" e a entrada como corpo JSON. A mesma chave e a mesma carteira funcionam em todos os endpoints da AnyAPI.

Não. Você adiciona dólares a um único saldo pré-pago da AnyAPI e cada requisição desconta dele. Não há plano mensal nem mínimo, e o mesmo saldo paga todos os endpoints da AnyAPI.

Sim. Instale @getanyapi/sdk pelo npm para TypeScript ou getanyapi pelo pip para Python. Os dois chamam todos os endpoints da AnyAPI com a mesma chave, e qualquer cliente HTTP também funciona.

Sim. Um agente pode se conectar ao servidor MCP da AnyAPI em https://api.getanyapi.com/mcp, ou criar a própria chave de teste grátis com um único POST sem autenticação para https://api.getanyapi.com/agent/signup e chamar este endpoint por HTTP.