channelstringobbligatorio
Channel username.
https://api.sandbase.ai/v1/api/telegram/web/similar-channelsReturns Telegram's official similar channel recommendations based on a specified channel username for channel discovery and audience research.
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
Returns Telegram's similar channel recommendations for one channel, using the channel username in channel. The response can also carry an mtproto_required flag and a note when recommendations are not available for the request.
similar.curl -X POST "https://api.sandbase.ai/v1/api/telegram/web/similar-channels" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"channel": "telegram"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
channel | string | Yes | Channel username. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"channel": "telegram",
"mtproto_required": true,
"note": "相似频道推荐需要在「设置」页启用并登录 MTProto 后端",
"similar": []
}
| Field | Meaning |
|---|---|
channel | The channel username the request was made for. It repeats the channel input. |
similar | List of recommended channels. It is an empty list in the sample response, so check its length before you read items. |
mtproto_required | Boolean flag. When it is true, the response says recommendations need an MTProto backend that is not active for this request. |
note | Short text that explains the mtproto_required flag. In the sample it says similar channel recommendations need MTProto to be enabled and logged in on the Settings page. |
channel, for example telegram.mtproto_required is true and similar is empty, the call returned no recommendations. Read note for the reason.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
curl -X POST "https://api.sandbase.ai/v1/api/telegram/web/similar-channels" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"channel": "telegram"
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
channelstringobbligatorioChannel username.
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
Nessuna risposta salvata è stata pubblicata. Esegui l'API in Playground per ispezionarne la risposta.
Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
Telegram Similar ChannelsQuesta API Telegram | $0.001 per chiamata | JSON |
Telegram | $0.008 per chiamata | JSON |
Telegram | $0.001 per chiamata | JSON |
Telegram | $0.001 per chiamata | JSON |
Telegram | $0.001 per chiamata | JSON |
Telegram | $0.001 per chiamata | JSON |
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/telegram/web/similar-channels con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
$0.001 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Richiesti: channel (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
No. Telegram Similar Channels funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Telegram.