Search posts by keywords in Telegram channels
Changed onSearch across all Telegram channel posts for news, trends, or names mentioned in posts. This is the same search functionality available on https://telemetr.io/en/posts-search
Use quotes for exact phrase matching (e.g., "search this phrase"). Filter results by country, category, or specific channel. Exclude words from post text with a comma-separated exclude_terms parameter, for example ?term=bitcoin&exclude_terms=advertisement,casino. Exclusions do not apply to link fields. Keep them unchanged when requesting the next page. Sort by relevance, date, or views count.
Access and limits
Credits API keys receive message search on Advanced and Team. Successful searches count toward overall request usage and consume credits at the configured endpoint price. The search-request and unique-term rows returned by Usage info are informational for Credits keys.
Subscription API keys use their individually configured message-search permission, search-request quota, and unique-term quota. Repeating the same search phrase counts as additional search requests but does not add another unique term.
Request
- Base URLhttps://api.tlmtr.io
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Search term.
Use quotes for search phrases. Like "search this phrase"
Terms to exclude from post text, supplied as a comma-separated list.
Example: advertisement,casino. Whitespace around entries is trimmed and empty entries are ignored. Omit to apply no exclusions. Entries use the search service's text matching; this is not a literal substring filter. Link fields are not checked. Keep the same exclusions when using a cursor.
Search period.
Default: 7 days
Channel country.
List of countries can be obtained here /v1/dictionaries/countries
Channel category id.
List of categories can be obtained here /v1/dictionaries/categories Example: mf2MkrwoE
Find channel messages.
Provide channel internal id
Return info about channels
Date range start (ISO 8601, e.g. 2024-01-01T00:00:00Z).
If provided together with date_to, overrides period.
Date range end (ISO 8601, e.g. 2024-03-31T23:59:59Z).
If provided together with date_from, overrides period.
Next page cursor.
Response
Messages
Changes
- breaking
the response's body type changed from
objectto no type for status - breaking
the response's body type changed from
objectto no type for status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - info
added
subschema #2to the response bodyallOflist for the response status - info
added
subschema #2to the response bodyallOflist for the response status
- breaking
- info
added the new optional
queryrequest parameterexclude_terms - info
added the new optional
queryrequest parametersort - info
added the media type
application/jsonfor the response with the status - info
added the non-success response with the status
- info