Instagram User ID Lookup
https://api.sandbase.ai/v1/api/instagram/v3/user-id-by-usernameConvert an Instagram username into its numeric user ID, the internal identifier needed by most Instagram profile, posts and followers APIs.
- Price
- Free
- Method
- POST
- Response
- JSON
- Parameters
- 1 required · 0 optional
Try the model
Playground
[
{
"data": {
"user_id": "1821100851"
}
}
]Examples
Select an example to load its inputs and result into the playground.
Model card
Specifications
Pricing
- Base price
- Free
Request & response
- Method
- POST
- Request body
- application/json
- Response
- application/json
- Execution
- sync
Parameters
- username
- string · required
Access
- Provider
- API
- Platform API
- Base URL
- https://api.sandbase.ai
- Endpoint
- /v1/api/instagram/v3/user-id-by-username
- Authentication
- Bearer API key
API README
Instagram User ID Lookup API
Pass an Instagram username and get the account's numeric user ID. Use it with the other Instagram APIs that require user_id.
Use cases
- Resolve handles collected from links or bios into stable IDs.
- Track accounts even after they change username.
- First step before fetching posts, reels or followers.
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"}'
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
username | string | Yes | Instagram username |
Example response
Real response for the request above, trimmed to the main fields. User names and long IDs are masked.
{
"user_id": "528817151"
}
Related APIs
- Bulk translate comments: Bulk translate Instagram comments Support translating multiple comments at once for better efficiency Comment IDs can be obtained from get_post_comments API.
- Get comment replies: Get Instagram comment's child comments (replies) list Support pagination to fetch all replies Parent comment's comment_id can be obtained from get_post_comment…
- Get explore feed: V3 Explore provides a focused capability for applications, automation, and data workflows.
Start building
Send your first request
Platform API endpoint with unified authentication and usage tracking.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-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" \
--data-binary @- <<'SANDBASE_JSON'
{
"username": "nima.vahed"
}
SANDBASE_JSON
)
printf '%s\n' "$result"Explore more
Related APIs
| API | Price | Response | Released |
|---|---|---|---|
Instagram User ID LookupThis API Instagram | Free | JSON | Jul 31, 2026 |
Instagram | Free | JSON | Jul 31, 2026 |
Instagram | Free | JSON | Jul 31, 2026 |
Instagram | Free | JSON | Jul 31, 2026 |
Instagram | Free | JSON | Jul 31, 2026 |
Instagram | Free | JSON | Jul 31, 2026 |
Questions
FAQ
How do I use the Instagram User ID Lookup API?
Send a POST request to https://api.sandbase.ai/v1/api/instagram/v3/user-id-by-username with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.
How much does the Instagram User ID Lookup API cost?
Instagram User ID Lookup is free to call on SandBase. You only need a SandBase account and API key.
What parameters does the Instagram User ID Lookup API accept?
Required: username (string). The Parameters table and the Playground on this page list every field.
What does the Instagram User ID Lookup API return?
A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.
Do I need a Instagram developer account or API key?
No. Instagram User ID Lookup runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Instagram API access separately.
