API Telegram

Telegram Publication API

Get one public Telegram channel post by its t.me link: text, posting time, views, photo and video links, and reactions.

POST/v1/run/telegram.post
Disponibilité
100,00%
30d · 37 appels
Requêtes
156
30 j · par semaine, 12 dernières sem.
Réponse
0,5s
médiane · 30d

Statut

Chargement du statut...

Recevoir les e-mails de panne de cet endpoint

Voir tous les endpoints sur la page de statut

Tarifs et fournisseurs

Tarifs de l’API Telegram Publication : une API, 3 fournisseurs interchangeables

Le fournisseur le moins cher répond en premier. S’il échoue, le suivant prend le relais dans le même appel.

Vous payez
11,00 $US
1,10 $US/1k req, seulement pour ce que vous utilisez. Aucun forfait mensuel.
Vos 90 premières requêtes sont gratuites avec le solde de départ de 0,10 $US.

Essayer

Obtenez Telegram Publication en une requête

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.
Ouvrir dans
Obtenir une clé gratuite
Exemple de réponse
Les exécutions gratuites ne renvoient que les 3 premiers résultats. Alimentez une clé pour obtenir la réponse complète.
{
  "data": {
    "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"
}

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-12-03 · disponibilité et latence mesurées sur 30d

Corps de la requête

JSON, envoyé à cet endpoint.

  • urlstring

    https://t.me/telegram/460

    Link to one public channel post, e.g. https://t.me/telegram/460 (t.me/s/ links work too).

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

Vous envoyez. Un petit corps JSON. Les valeurs affichées sont des exemples à remplacer par les vôtres.

Réponse

JSON, une valeur d’exemple par champ.

datadata

The post record, or null when nothing was found.

  • channelstring

    Username of the channel that published the post. Populated whenever the provider has data for the entity.

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

  • editedbooleanpeut exiger

    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.

  • linkPreviewDescriptionstringpeut exiger

    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.

  • linkPreviewTitlestringpeut exiger

    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.

  • linkPreviewUrlstringpeut exiger

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

  • durationSecondsnumberpeut exiger

    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.

  • typestringpeut exiger

    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.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 post was found; false when it was deleted, never existed, or its channel is not public.

  • 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 recevez. Des champs nommés et typés, dans la même forme quelle que soit la source qui répond.

FAQ

À propos de l’API Telegram Publication

L’API Telegram Publication d’AnyAPI renvoie des données Telegram en JSON normalisé à partir d’un appel POST à /v1/run/telegram.post. Get one public Telegram channel post by its t.me link: text, posting time, views, photo and video links, and reactions. AnyAPI route chaque requête sur 3 sources et bascule automatiquement quand l’une échoue. Elle coûte à partir de 1,10 $US pour 1 000 requêtes, en dollars US, sans abonnement et sans minimum mensuel. Ces 30 derniers jours, 100,0% des appels Telegram Publication passés par AnyAPI ont réussi, avec un temps de réponse médian de 0,5 secondes, sur 37 appels mesurés.

Elle coûte à partir de 1,10 $US pour 1 000 requêtes, en dollars US, sans abonnement et sans minimum mensuel. Vous alimentez un portefeuille en USD et chaque appel le débite. Certaines requêtes échouées financées par le portefeuille entraînent des frais de traitement que nous répercutons au prix coûtant, sans marge ; la réponse d’erreur indique le montant facturé.

Get one public Telegram channel post by its t.me link: text, posting time, views, photo and video links, and reactions. La réponse est du JSON normalisé avec la même enveloppe que celle de tous les endpoints AnyAPI, donc analyser un second endpoint revient à changer l’URL et rien d’autre.

Ces 30 derniers jours, 100,0% des appels Telegram Publication passés par AnyAPI ont réussi, avec un temps de réponse médian de 0,5 secondes, sur 37 appels mesurés. Ce sont les propres mesures d’AnyAPI du trafic passant par la passerelle, recalculées en continu, et non un objectif de niveau de service publié.

Oui. Un nouveau compte AnyAPI démarre avec 0,10 $US de solde gratuit, sans carte, ce qui couvre 90 appels Telegram Publication à 0,0011 $US chacun.

AnyAPI interroge la suivante de ses 3 sources dans la même requête, la moins chère d’abord, donc la panne d’une source ne fait pas échouer votre appel.

Envoyez une requête POST à https://api.getanyapi.com/v1/run/telegram.post avec votre clé AnyAPI dans un en-tête « Authorization: Bearer » et l’entrée en corps JSON. La même clé et le même portefeuille fonctionnent sur tous les endpoints AnyAPI.

Non. Vous ajoutez des dollars US à un solde AnyAPI prépayé unique et chaque requête le débite. Il n’y a ni forfait mensuel ni minimum, et le même solde paie tous les endpoints AnyAPI.

Oui. Installez @getanyapi/sdk depuis npm pour TypeScript ou getanyapi depuis pip pour Python. Les deux appellent chaque endpoint AnyAPI avec la même clé, et n’importe quel client HTTP fonctionne aussi.

Oui. Un agent peut se connecter au serveur MCP d’AnyAPI à https://api.getanyapi.com/mcp, ou créer sa propre clé d’essai gratuit avec un seul POST non authentifié vers https://api.getanyapi.com/agent/signup et appeler cet endpoint en HTTP.