querystringआवश्यक
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.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
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.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
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 key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
querystringआवश्यकKeyword 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).
डिफ़ॉल्ट: "user"
संभावित मान: 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.
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Instagram Searchयह API Instagram | $0.0036 प्रति कॉल से | JSON |
Instagram | $0.0011 प्रति कॉल से | JSON |
Instagram | $0.001 प्रति कॉल से | JSON |
Instagram | $0.0011 प्रति कॉल से | JSON |
Instagram | $0.0012 प्रति कॉल से | JSON |
Instagram | $0.0011 प्रति कॉल से | JSON |
गाइड्स:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared
प्रश्न
https://api.sandbase.ai/v1/api/instagram/search पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.0036 से प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: query (string)। वैकल्पिक: type (user, hashtag, place में से एक), limit (integer) और requireFields (array)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Instagram Search SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Instagram API access के लिए आवेदन करने की आवश्यकता नहीं है।