Documentation
Connect OpenTG to your code with the REST API, or to your AI agent with the MCP server.
- For developers
REST API
JSON endpoints for search, channels, posts and live lookups, with an OpenAPI 3.1 spec. For apps, scripts and backends.
api.opentg.ai/v1Open the API reference - For AI agents
MCP server
Connect Claude, Claude Code or any MCP client and let it search Telegram as a tool. No code needed.
mcp.opentg.ai/mcpSet up the MCP server