Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

Instagram Search

Documentación de la 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.

Precio
Desde $0.0036USD / llamada
Método
POST
Respuesta
JSON
Parámetros
1 obligatorios · 3 opcionales

Entorno de pruebas

Entrada
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). Rango: de 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.
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la 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.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
InstagramDesde $0.0036 por llamadaJSON
InstagramDesde $0.0011 por llamadaJSON
InstagramDesde $0.001 por llamadaJSON
InstagramDesde $0.0011 por llamadaJSON
InstagramDesde $0.0012 por llamadaJSON
InstagramDesde $0.0011 por llamadaJSON

Guías:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared

Preguntas

FAQ

¿Cómo uso la API de Instagram Search?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/instagram/search con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de Instagram Search?

Desde $0.0036 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de Instagram Search?

Requeridos: query (string). Opcionales: type (una de user, hashtag, place), limit (integer) y requireFields (array). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de Instagram Search?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de Instagram?

No. Instagram Search funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Instagram por separado.