handlestringwymagane
Instagram username without the leading @.
https://api.sandbase.ai/v1/api/instagram/embedFetch the public embed HTML for an Instagram profile by handle.
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
Returns the public embed page for an Instagram profile as a single HTML string. It needs one input, the handle of the account without the leading @.
curl -X POST "https://api.sandbase.ai/v1/api/instagram/embed" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"handle": "nasa"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | Yes | Instagram username without the leading @. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"html": "<!DOCTYPE html><html class=\"_9dls _ar44\" lang=\"en\" dir=\"ltr\"><head><link data-de…"
},
"found": true
}
| Field | Meaning |
|---|---|
data.html | The full HTML document of the profile's embed page, returned as one string. Parse it or render it in an iframe. |
found | true when the embed page was returned for the handle. A handle with no result returns found: false. |
handle without the leading @, for example nasa.Billed at the actual cost of each call, about $0.0012 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/embed" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"handle": "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.
handlestringwymaganeInstagram username without the leading @.
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 Profile EmbedTo API Instagram | Od $0.0012 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.0011 za wywołanie | JSON |
Instagram | Od $0.0012 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/embed 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.0012 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Wymagane: handle (string). 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 Profile Embed 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.