Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

Instagram Search

Documentazione API
https://api.sandbase.ai/v1/api/instagram/search

Search Instagram for users, hashtags, or places by keyword and get matching results with names, counts, and links.

Prezzo
Da $0.0036USD / chiamata
Metodo
POST
Risposta
JSON
Parametri
1 obbligatori · 3 opzionali

Playground

Input
Keyword to search Instagram for; one or more words without special punctuation (e.g. coffee roastery).
What to search for: user profiles, hashtags, or places (e.g. hashtag).
120
Maximum number of results to return (1-20, default 20). Intervallo: da 1 a 20.
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 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.
OutputPronto

Il tuo output apparirà qui

Completa gli input, poi fai clic su Esegui.

README API

Instagram Search API

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.

Use cases

  • Find the official Instagram account for a brand or organization by searching its name.
  • Build a list of candidate accounts for a topic, then check which ones are verified.
  • Turn a keyword into Instagram user IDs and handles to feed into profile or post lookups.
  • Add an account search box to a tool that links to each profile page.

Request

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.

Parameters

NameTypeRequiredDescription
querystringYesKeyword to search Instagram for; one or more words without special punctuation (e.g. coffee roastery).
limitintegerNoMaximum number of results to return (1-20, default 20).
requireFieldsarrayNoOptional; 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
typestringNoWhat to search for: user profiles, hashtags, or places (e.g. hashtag).

Example response

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
}

Response fields

FieldMeaning
data.items[].handleThe account username, without the @ sign.
data.items[].nameThe display name shown on the profile.
data.items[].idThe numeric Instagram ID of the account, returned as a string.
data.items[].urlLink to the profile page on Instagram.
data.items[].verifiedtrue when the account has the verified badge.
data.items[].imageURL of the profile picture.
data.items[].followers / data.items[].followingFollower and following counts. In this sample response they are 0 for every result, so do not rely on them for ranking.
data.items[].bioProfile biography text. It is an empty string in this sample response.
data.items[].postsCountNumber of posts on the account. It is null in this sample response.
foundtrue when the search returned results.

Notes

  • Results are in data.items. A search with no match still succeeds and returns found: false.
  • Use 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.
  • For full profile details, take the handle or id and call Instagram Profile or Instagram User Profile by ID.

Pricing

Billed at the actual cost of each call, about $0.0036 for the request above. Failed calls are not charged.

Esplora altro

API correlate

Tutte le API
APIPrezzoRisposta
InstagramDa $0.0036 per chiamataJSON
InstagramDa $0.0011 per chiamataJSON
InstagramDa $0.001 per chiamataJSON
InstagramDa $0.0011 per chiamataJSON
InstagramDa $0.0012 per chiamataJSON
InstagramDa $0.0011 per chiamataJSON

Guide:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared

Domande

FAQ

Come uso l'API Instagram Search?

Invia una richiesta POST a https://api.sandbase.ai/v1/api/instagram/search con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.

Quanto costa l'API Instagram Search?

A partire da $0.0036 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.

Quali parametri accetta l'API Instagram Search?

Richiesti: query (string). Facoltativi: type (uno tra user, hashtag, place), limit (integer) e requireFields (array). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.

Cosa restituisce l'API Instagram Search?

Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.

Mi serve un account sviluppatore o una chiave API Instagram?

No. Instagram Search funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Instagram.