Sand AISand AI MAGI-2MAGI-2 artık SandBase'de: yerel sesli 1080p videoŞimdi deneyin

Instagram User ID Lookup

API dokümanları
https://api.sandbase.ai/v1/api/instagram/v3/user-id-by-username

Convert an Instagram username into its numeric user ID, the internal identifier needed by most Instagram profile, posts and followers APIs.

Fiyat
$0.008USD / çağrı
Yöntem
POST
Yanıt
JSON
Parametreler
1 gerekli · 0 isteğe bağlı
Günde 100 ücretsiz çağrıHer gün ilk 100 çağrı ücretsizdir (kurum genelinde paylaşılır) · UTC 00:00'da sıfırlanır. Sonrasında çağrı başına ücretlendirilir.

Oynatma Alanı

Girdi
Instagram username
ÇıktıÖrnek
Yanıtoutputs · 61 B · 7 satır
[
  {
    "data": {
      "user_id": "1821100851"
    }
  }
]

Örnekler

Bir örnek seçerek girdilerini ve sonucunu playground'a yükleyin.

API README

Instagram User ID Lookup API

Look up the numeric user ID (pk) of an Instagram account from its username. The ID stays the same when the account changes its username, so it is the safer key to store.

Use cases

  • Store a stable key for each account you track, so your records survive a rename.
  • Get the ID that Similar users and User brief require.
  • Match accounts across datasets that store IDs, such as exports or third-party tools.

Username or user ID: which to use

UsernameUser ID
Examplenasa528817151
Changes when the account renamesYesNo
Where you find itProfile URL, bio, mentionsNot shown on the profile; returned by APIs
Accepted byUser profile, User posts, User reels, followers and followingSimilar users, User brief

Use the username for one-off requests, since most Instagram APIs here accept it directly. Save the user ID next to it when you track accounts over time. If a request by username starts failing, look the stored ID up with Instagram ID to Username to find the new name. The Instagram ID lookup guide covers both directions.

Request

curl -X POST "https://api.sandbase.ai/v1/api/instagram/v3/user-id-by-username" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"username": "nasa"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
usernamestringYesInstagram username

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "user_id": "528817151"
}

Response fields

FieldMeaning
user_idNumeric user ID as a string.

Notes

  • Pass the username without @. Usernames that do not exist fail and are not charged.
  • To go the other way, use Instagram ID to Username.

Pricing

$0.008 per successful call. Failed calls, including lookups whose target does not exist, are not charged. It is included in the daily free quota of each organization.

Daha fazlasını keşfedin

İlgili APIs

Tüm APIs
APIFiyatYanıt
Instagram$0.008 çağrı başınaJSON
Instagram$0.008 çağrı başınaJSON
Instagram$0.008 çağrı başınaJSON
Instagram$0.008 çağrı başınaJSON
Instagram$0.002 çağrı başınaJSON
Instagram$0.008 çağrı başınaJSON

Kılavuzlar:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared

Sorular

SSS

Instagram User ID Lookup API'sini nasıl kullanırım?

SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/instagram/v3/user-id-by-username adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.

Instagram User ID Lookup API'sinin fiyatı nedir?

çağrı başına $0.008. Her kuruluş, UTC günü başına 100 ücretsiz çağrı alır; bu hak, bu API dahil uygun SandBase API'leri arasında ortaktır. Sonrasında her çağrı, SandBase bakiyenizden bu fiyat üzerinden ücretlendirilir. Abonelik yoktur.

Instagram User ID Lookup API'si hangi parametreleri kabul eder?

Gerekli: username (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.

Instagram User ID Lookup API'si ne döndürür?

Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.

Bir Instagram geliştirici hesabına veya API anahtarına ihtiyacım var mı?

Hayır. Instagram User ID Lookup, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Instagram API erişimi için ayrıca başvuru yapmanız gerekmez.