Profile Search
A search inside a channel, newest first.
GET
apiKeyheader
AuthorizationBearer <token>An API key from the dashboard: Authorization: Bearer sapi_….
handle?stringThe channel's name (durov), with or without @.
url?stringIts link (https://t.me/durov), instead of handle.
query?stringWhat to search for: words, or a #hashtag.
cursor?stringnextCursor of the previous page.
maxAge?integerHow old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.
Format
int64Range
0 <= valueThe answer.
application/json- response
A page of a list, as every list endpoint answers: { "data": [...], "pagination": … }.
data*array<>pagination*import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data, pagination } = await client.telegram.profileSearch({ handle: "durov", query: "gifts" });Example Response
{ "data": [ { "id": "durov/574", "url": "https://t.me/durov/574", "text": "Telegram gifts are the only NFTs still alive.\n\n📈 They are up 2.5x since issuance 1–2 years ago, despite crypto winter.\n\nThis week, P2P gift trading on Telegram moved on-chain:\n\n— Sales & offers run on smart contracts.\n\n— Grams go instantly to sellers' wallets.\n\n— Fees cut from 10% to 2% 🎉", "createdAt": "2026-11-26T15:26:13.000Z", "author": { "id": "durov", "username": "durov", "displayName": "Pavel Durov", "avatarUrl": "https://cdn4.telesco.pe/file/W46-gekaU28l8Ss0QXl0rJ56iEci59GbWVgLp3H4YcQL7g-L8989ny1R95iP6y0sbrQ4qb-Jmohxw0B3uuDhxWSXeZlFYStrC--ZXpepobwj_dAqWbUtIRoPTJcbFM5u66xKGj2HmEABlgmA52CKBWGDv8GgxGHohqghyMvG5qTLJL2WyKDibOgNXQad6PwMbQZ7Vbsrq2-eh6kOPMu0iuPKfa8ymnXsNhYwkaolpktFpSHxTD3SZfCZXGC8u-r5Q3GupbeebKjibSlA9lhBwnOdHfz2cWrn0X3Y2_9dJhqpI59Ngg7c8pGeE_PL2FL9i1trxhuGeclrvpXfgYXriQ.jpg", "verified": false, "url": "https://t.me/durov" }, "stats": { "views": 607000, "likes": 26880, "comments": null, "shares": null, "saves": null, "engagementRate": 0.0443 }, "media": [], "hashtags": [], "mentions": [], "ext": { "channelId": "1006503122", "authorName": "Pavel Durov", "viewsShown": "607K", "reactions": [ { "emoji": null, "customEmojiId": "5373223594484587136", "count": 16200 }, { "emoji": null, "customEmojiId": "5399847211989246390", "count": 6240 }, { "emoji": null, "customEmojiId": "5334575279731909928", "count": 4440 } ], "stars": 6730, "edited": false, "signature": "Pavel Durov", "forwardedFrom": null, "replyTo": null, "linkPreview": null, "links": [], "mediaHidden": false } }, { "id": "durov/545", "url": "https://t.me/durov/545", "text": "A high-school student just made $20,000 from a Telegram Gift.\n\nJonathan He, an IOI gold medalist ranked #7 in the world, sold his Algorithm Cup — an NFT we gave to the top young coders this month — for 💎 15,000 Grams.\n\nHappy for him. It's a meaningful sum for someone still in school, and I suspect a small fraction of what he'll go on to build.\n\n20 years ago, $20K was enough for me to launch my fi…", "createdAt": "2026-08-30T09:10:19.000Z", "author": { "id": "durov", "username": "durov", "displayName": "Pavel Durov", "avatarUrl": "https://cdn4.telesco.pe/file/W46-gekaU28l8Ss0QXl0rJ56iEci59GbWVgLp3H4YcQL7g-L8989ny1R95iP6y0sbrQ4qb-Jmohxw0B3uuDhxWSXeZlFYStrC--ZXpepobwj_dAqWbUtIRoPTJcbFM5u66xKGj2HmEABlgmA52CKBWGDv8GgxGHohqghyMvG5qTLJL2WyKDibOgNXQad6PwMbQZ7Vbsrq2-eh6kOPMu0iuPKfa8ymnXsNhYwkaolpktFpSHxTD3SZfCZXGC8u-r5Q3GupbeebKjibSlA9lhBwnOdHfz2cWrn0X3Y2_9dJhqpI59Ngg7c8pGeE_PL2FL9i1trxhuGeclrvpXfgYXriQ.jpg", "verified": false, "url": "https://t.me/durov" }, "stats": { "views": 3880000, "likes": 67400, "comments": null, "shares": null, "saves": null, "engagementRate": 0.0174 }, "media": [], "hashtags": [ "7" ], "mentions": [], "ext": { "channelId": "1006503122", "authorName": "Pavel Durov", "viewsShown": "3.88M", "reactions": [ { "emoji": null, "customEmojiId": "5399847211989246390", "count": 44200 }, { "emoji": null, "customEmojiId": "5373223594484587136", "count": 13000 }, { "emoji": null, "customEmojiId": "5936157098181135162", "count": 10200 } ], "stars": 4680, "edited": true, "signature": "Pavel Durov", "forwardedFrom": null, "replyTo": null, "linkPreview": null, "links": [ "https://stats.ioinformatics.org/people/9089", "https://t.me/nft/algorithmcup-7", "https://t.me/durov/540" ], "mediaHidden": false } } ], "pagination": { "nextCursor": "401", "hasMore": true }}