TELEGRAM API
Channel Details
Retrieve channel details from Telegram with a single API request.
GET
/api/data/v1/telegram/channel1credit base costZero-credit cache supported
Request parameters
Up to 1 creditPublic Telegram handle, @handle, or t.me channel URL.
If we have a response in the cache that is this many days old or newer, return the cached response (0 credits, with "cached": true and a "cached_at" timestamp). Otherwise, scrape a live result (1 credit). [See the Caching page for details.]
Live requests use your prepaid balance. Cached responses cost zero where supported.
curl --request GET \
--url 'https://fetchgoblin.com/api/data/v1/telegram/channel?handle=telegram' \
--header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'Response
Example{
"success": true,
"handle": "telegram",
"name": "Telegram News",
"description": "The official Telegram on Telegram. Much recursion. Very Telegram. Wow.",
"url": "https://t.me/telegram",
"avatar_url": "https://cdn1.telesco.pe/file/...",
"is_verified": true,
"subscriber_count": 9780000,
"subscriber_count_text": "9.78M",
"member_count": null,
"member_count_text": null,
"photo_count": 14,
"video_count": 225,
"file_count": null,
"link_count": 372,
"credits_charged": 1,
"credits_remaining": 1000,
"request_id": "00000000-0000-4000-8000-000000000000"
}Example data from the API specification. Run a request to retrieve current data.
Response shape
This schema describes the documented data shape. Some platform fields may be absent or null. The response also includes your FetchGoblin request ID and current credit balance.
View JSON Schema +
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"handle": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"url": {
"type": "string"
},
"avatar_url": {
"type": "string"
},
"is_verified": {
"type": "boolean"
},
"subscriber_count": {
"type": "integer"
},
"subscriber_count_text": {
"type": "string"
},
"member_count": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"member_count_text": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"photo_count": {
"type": "integer"
},
"video_count": {
"type": "integer"
},
"file_count": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"link_count": {
"type": "integer"
},
"credits_charged": {
"type": "integer",
"minimum": 0,
"description": "FetchGoblin credits charged for this request."
},
"credits_remaining": {
"type": "integer",
"description": "Your FetchGoblin credit balance after this request."
},
"request_id": {
"type": "string",
"format": "uuid",
"description": "FetchGoblin request identifier."
}
}
}