querystringzorunlu
Keyword to search Instagram for; one or more words without special punctuation (e.g. coffee roastery).
https://api.sandbase.ai/v1/api/instagram/searchSearch Instagram for users, hashtags, or places by keyword and get matching results with names, counts, and links.
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
This API searches Instagram by keyword and returns a list of matching results. Each result has a name, handle, ID, profile image, and link. It needs a query, and you can set type to user, hashtag, or place.
curl -X POST "https://api.sandbase.ai/v1/api/instagram/search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "nasa"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Keyword to search Instagram for; one or more words without special punctuation (e.g. coffee roastery). |
limit | integer | No | Maximum number of results to return (1-20, default 20). |
requireFields | array | No | Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example postsCount, and it is served only by a source that returns every one |
type | string | No | What to search for: user profiles, hashtags, or places (e.g. hashtag). |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"items": [
{
"bio": "",
"followers": 0,
"following": 0,
"handle": "nasa",
"id": "528817151",
"image": "https://instagram.fsjc1-4.fna.fbcdn.net/v/t51.2885-19/29090066_159271188110124_1…",
"name": "NASA",
"postsCount": null,
"url": "https://www.instagram.com/nasa/",
"verified": true
}
]
},
"found": true
}
| Field | Meaning |
|---|---|
data.items[].handle | The account username, without the @ sign. |
data.items[].name | The display name shown on the profile. |
data.items[].id | The numeric Instagram ID of the account, returned as a string. |
data.items[].url | Link to the profile page on Instagram. |
data.items[].verified | true when the account has the verified badge. |
data.items[].image | URL of the profile picture. |
data.items[].followers / data.items[].following | Follower and following counts. In this sample response they are 0 for every result, so do not rely on them for ranking. |
data.items[].bio | Profile biography text. It is an empty string in this sample response. |
data.items[].postsCount | Number of posts on the account. It is null in this sample response. |
found | true when the search returned results. |
data.items. A search with no match still succeeds and returns found: false.limit (1 to 20) to cap the number of results. There is no page parameter.postsCount came back as null in this sample. Pass requireFields: ["postsCount"] to route to a source that returns it. This can raise the price of the call.handle or id and call Instagram Profile or Instagram User Profile by ID.Billed at the actual cost of each call, about $0.0036 for the request above. Failed calls are not charged.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
curl -X POST "https://api.sandbase.ai/v1/api/instagram/search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "user",
"query": "nasa"
}'SandBase API anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
querystringzorunluKeyword to search Instagram for; one or more words without special punctuation (e.g. coffee roastery).
typestringWhat to search for: user profiles, hashtags, or places (e.g. hashtag).
Varsayılan: "user"
Olası değerler: user, hashtag, place
limitintegerMaximum number of results to return (1-20, default 20).
requireFieldsarrayOptional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `postsCount`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
Yayınlanmış bir kaydedilmiş yanıt yok. Yanıtını incelemek için API'yi Playground'da çalıştırın.
Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
Instagram SearchBu API Instagram | Kullanım başına $0.0036'den itibaren | JSON |
Instagram | Kullanım başına $0.0011'den itibaren | JSON |
Instagram | Kullanım başına $0.001'den itibaren | JSON |
Instagram | Kullanım başına $0.0011'den itibaren | JSON |
Instagram | Kullanım başına $0.0012'den itibaren | JSON |
Instagram | Kullanım başına $0.0011'den itibaren | JSON |
Kılavuzlar:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared
Sorular
SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/instagram/search adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.0036'dan başlayan, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
Gerekli: query (string). İsteğe bağlı: type (user, hashtag, place arasından biri), limit (integer) ve requireFields (array). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.
Hayır. Instagram Search, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Instagram API erişimi için ayrıca başvuru yapmanız gerekmez.