Parsing messages from public Telegram channels on the website https://t.me/s/<channel> and returning them as an API response in JSON format.
- ✅ Retrieve message text
- 🖼 Extract images
- 🎥 Get video previews
- 📎 Extract document titles
- 🕒 Formatted date (ISO 8601)
- 🧩 Simple REST API
git clone https://github.com/MrghtChannel/telegram-channel-scraper
cd telegram-channel-scraper
npm installnode index.jsBy default, the server runs on port 3000.
GET http://localhost:3000/t.me/s/<channel>/json
Replace <channel> with the channel name. Examples:
durovbreakingmashelonmusk
- ❗ Works only with public Telegram channels
- ❗ Telegram may change the HTML structure at any time (if this happens, the parser will need to be updated)
- ❗ Video and documents — only previews or titles, not the files themselves
This project is licensed under the MIT license.