querystringobrigatório
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.
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
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.
Comece a construir
Endpoint da API da plataforma com autenticação unificada e rastreamento de uso.
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"
}'Defina sua chave da API SandBase no ambiente do seu servidor. As requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha sua chave no servidor. Não a exponha em código do navegador.
querystringobrigatórioKeyword 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).
Padrão: "user"
Valores possíveis: 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.
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
Nenhuma resposta salva foi publicada. Execute a API no Playground para inspecionar a resposta.
Explorar mais
| API | Preço | Resposta |
|---|---|---|
Instagram SearchEsta API Instagram | A partir de $0.0036 por chamada | JSON |
Instagram | A partir de $0.0011 por chamada | JSON |
Instagram | A partir de $0.001 por chamada | JSON |
Instagram | A partir de $0.0011 por chamada | JSON |
Instagram | A partir de $0.0012 por chamada | JSON |
Instagram | A partir de $0.0011 por chamada | JSON |
Guias:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared
Perguntas
Envie uma solicitação POST para https://api.sandbase.ai/v1/api/instagram/search com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.
A partir de $0.0036 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
Obrigatórios: query (string). Opcionais: type (um de user, hashtag, place), limit (integer) e requireFields (array). A tabela de Parâmetros e o Playground nesta página listam todos os campos.
Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.
Não. Instagram Search funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Instagram separadamente.