querystringwymagane
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.
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
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.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
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"
}'Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
querystringwymaganeKeyword 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).
Domyślnie: "user"
Możliwe wartości: 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.
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
Nie opublikowano zapisanego response. Uruchom API w Playground, aby sprawdzić jego odpowiedź.
Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
Instagram SearchTo API Instagram | Od $0.0036 za wywołanie | JSON |
Instagram | Od $0.0011 za wywołanie | JSON |
Instagram | Od $0.001 za wywołanie | JSON |
Instagram | Od $0.0011 za wywołanie | JSON |
Instagram | Od $0.0012 za wywołanie | JSON |
Instagram | Od $0.0011 za wywołanie | JSON |
Przewodniki:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/instagram/search z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.
Od $0.0036 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Wymagane: query (string). Opcjonalne: type (jedna z opcji: user, hashtag, place), limit (integer) i requireFields (array). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.
Nie. Instagram Search działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Instagram.