Telegram channel posts by username
tikhub.x.telegram-web-fetch-channel-postsTelegram: fetch channel posts (web)
- Price
- $0.001/successAu prix du fournisseur
- Success rate
- 100 %Last 30 days · 1 112 calls
- Latency p50
- 2.7 sp95 12 s
- Last verified
- 28 juil. 2026Verified working
GEThttps://toolswitch.dev/v1/tools/tikhub.x.telegram-web-fetch-channel-posts?after=0&limit=5&before=0&channel=durovPreview- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
after | entier | Facultatif | Newer than this id | 0 |
limit | entier | Facultatif | Number of posts | 20 |
before | entier | Facultatif | Older than this id | 0 |
channel | chaîne | Obligatoire | Channel username | durov |
- Paramètres de requête
afterentierFacultatifNewer than this id
Exemple :
0limitentierFacultatifNumber of posts
Exemple :
20beforeentierFacultatifOlder than this id
Exemple :
0channelchaîneObligatoireChannel username
Exemple :
durov
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/tikhub.x.telegram-web-fetch-channel-posts?after=0&limit=5&before=0&channel=durov' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/tikhub.x.telegram-web-fetch-channel-posts?after=0&limit=5&before=0&channel=durov",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/tikhub.x.telegram-web-fetch-channel-posts?after=0&limit=5&before=0&channel=durov", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.001/success, frais de service inclus.