{"uid":"cap_ckFdQ5F91QNhRpdk57VO-","slug":"glim-sh-telegram-channel-post-fetcher-664f2852","name":"glim.sh Telegram Channel & Post Fetcher","description":"Fetch a public Telegram channel's posts (with optional in-channel search and history pagination) or a single post with its discussion comments","url":"https://glim.sh/api/v1/telegram/get","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"ref":{"type":"string","maxLength":2048,"minLength":1,"description":"Public channel ref (@handle, handle, or t.me URL) returns the channel feed; a post ref (t.me/<channel>/<id> or '<channel>/<id>') returns that post with its discussion comments."},"after":{"type":"string","maxLength":20,"description":"Return posts newer than this message id"},"limit":{"type":"integer","default":20,"maximum":100,"minimum":1,"description":"Max posts for channel refs (walks history pages as needed)"},"query":{"type":"string","maxLength":500,"description":"Search within the channel's full history (channel refs only)"},"before":{"type":"string","maxLength":20,"description":"Return posts older than this message id (pagination cursor from next_cursor)"},"comment":{"type":"string","maxLength":20,"description":"Post refs: center the comment window on this comment id (walks older comments)"},"include_comments":{"type":"boolean","default":true,"description":"Post refs: include discussion comments. Telegram's public embed serves a small window of the most recent comments; walk older ones by re-calling with comment=<oldest returned comment id>. Availability varies by channel - many discussion groups are not exposed on the public web preview."}}},"responseSchema":{"type":"json","example":{"kind":"channel","posts":[{"id":"durov/530","text":"...","views":4060000}],"channel":{"handle":"durov","subscribers":11700000},"has_more":true,"next_cursor":"510"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3hNf7O5UaF-IHu79DpNeX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetch posts from a public Telegram channel with optional search and pagination, or fetch a single post along with its discussion comments","exampleAgentPrompt":"Pull the last 30 posts from the Telegram channel @durov, and search within them for anything mentioning 'privacy' — include any discussion comments on matching posts.","exampleUseCases":null,"resultDescription":"Returns a list of posts from the specified public Telegram channel, each containing message content, metadata (IDs, timestamps), and optionally discussion comments. When a search query is provided, only matching posts are returned. Supports forward and backward pagination via before/after message IDs.","failureModes":["Channel is private or does not exist — returns error indicating inaccessible resource","Invalid ref format (not a valid handle, t.me URL, or post URL) — returns validation error","limit out of range (outside 1-100) — returns validation error","Post ID not found within the channel — returns not found error","Rate limit exceeded — returns 429 or payment-related error","Network timeout fetching channel data from Telegram"],"whenToPreferThis":"Use this endpoint when you need to read posts from a public Telegram channel, paginate through its history, search within a channel's messages, or retrieve a single post with its discussion thread. Prefer this over generic web scraping when the target is specifically a Telegram channel or post URL and you need structured message data with metadata.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:34:25.911Z","isFirstParty":false}