user_idstringbắt buộc
Instagram user ID (numeric string)
https://api.sandbase.ai/v1/api/instagram/v3/user-id-to-usernameReturns an Instagram profile's details, including username, full name, follower count, and media metrics using an account ID.
[
{
"data": {
"_rid": "3f5f16e51aa92",
"biography": "Máma @spock_jack",
"category": null,
"edge_follow": {
"count": 1597
},
"edge_followed_by": {
"count": 236
},
"edge_owner_to_timeline_media": {
"count": 138
},
"external_url": null,
"follower_count": 236,
"following_count": 1597,
"full_name": "Daniela Danielková",
"id": "1935268808",
"is_private": true,
"is_verified": false,
"media_count": 138,
"pk": "1935268808",
"profile_pic_url": "https://scontent-hou1-1.cdninstagram.com/v/t51.2885-19/297880959_359329313073216_1310225548824266977_n.jpg?stp=dst-jpg_e0_s150x150_tt6&_nc_cat=108&ig_cache_key=GH9NwRFAKBDgzkYBAOHIT90x2y4SbkULAAAB1501500j-ccb7-5&ccb=7-5&_nc_sid=669407&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy42ODAuQzMifQ%3D%3D&_nc_ohc=gNrIUn9puqMQ7kNvwG3jnOd&_nc_oc=AdqsEsM9Bi2zvZth5I_wpFHr04YFEG5RTwAwxWklwW_syzhw0269ZJfJZXk5XlMbAbo&_nc_ad=z-m&_nc_cid=0&_nc_zt=24&_nc_ht=scontent-hou1-1.cdninstagram.com&_nc_ss=7f3ba&oh=00_AQN-6L2frf9BHgiviZP9PtC38RG3PrFM5knt1EsgQQ5grw&oe=6ACBDCA7",
"profile_pic_url_hd": "https://scontent-hou1-1.cdninstagram.com/v/t51.2885-19/297880959_359329313073216_1310225548824266977_n.jpg?stp=dst-jpg_s640x640_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby42ODAuYzIifQ&_nc_ht=scontent-hou1-1.cdninstagram.com&_nc_cat=100&_nc_oc=Q6cZ2gGy87zr7VyJob-tT6b1Dr_PGrDZQXc1VAzzwwOPZYOe4BdyMJrpR4q__TZv5a-PP1Q&_nc_ohc=12OVHT4oehoQ7kNvwEfgbMW&_nc_gid=u_9cz9ycH3M5e3HCAWz55g&edm=APs17CUBAAAA&ccb=7-5&ig_cache_key=GH9NwRFAKBDgzkYBAOHIT90x2y4SbkULAAAB6406400j-ccb7-5&oh=00_AQNx1-hulYu_JR9ITYUKp0qCrJ2wUtAzoyGhSc9UjIBq9Q&oe=6ACBDCA7&_nc_sid=10d13b",
"username": "dadygramik"
}
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
Find the current username of an Instagram account from its numeric user ID, together with the profile: full name, bio, follower, following and post counts, verification and privacy flags.
curl -X POST "https://api.sandbase.ai/v1/api/instagram/v3/user-id-to-username" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user_id": "25025320"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
user_id | string | Yes | Instagram user ID (numeric string) |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"_rid": "351695735c9af",
"biography": "Discover what's new on Instagram 🔎✨",
"category": "",
"edge_follow": {
"count": 165
},
"edge_followed_by": {
"count": 686358280
},
"edge_owner_to_timeline_media": {
"count": 8634
},
"external_url": "http://help.instagram.com",
"follower_count": 686358280,
"following_count": 165,
"full_name": "Instagram",
"id": "25025320",
"is_private": false
}
| Field | Meaning |
|---|---|
username | Current handle, without @. |
full_name | Display name. |
biography | Profile bio. |
follower_count / following_count / media_count | Followers, accounts followed and number of posts. |
is_verified / is_private | Verification badge and private-account flag. |
profile_pic_url | Avatar URL; signed and expires after some days. |
external_url | Link in bio. |
pk, not a shortcode. Get it with Instagram User ID Lookup.$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.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/instagram/v3/user-id-to-username" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"user_id": "1935268808"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
user_idstringbắt buộcInstagram user ID (numeric string)
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
[
{
"data": {
"_rid": "3f5f16e51aa92",
"biography": "Máma @spock_jack",
"category": null,
"edge_follow": {
"count": 1597
},
"edge_followed_by": {
"count": 236
},
"edge_owner_to_timeline_media": {
"count": 138
},
"external_url": null,
"follower_count": 236,
"following_count": 1597,
"full_name": "Daniela Danielková",
"id": "1935268808",
"is_private": true,
"is_verified": false,
"media_count": 138,
"pk": "1935268808",
"profile_pic_url": "https://scontent-hou1-1.cdninstagram.com/v/t51.2885-19/297880959_359329313073216_1310225548824266977_n.jpg?stp=dst-jpg_e0_s150x150_tt6&_nc_cat=108&ig_cache_key=GH9NwRFAKBDgzkYBAOHIT90x2y4SbkULAAAB1501500j-ccb7-5&ccb=7-5&_nc_sid=669407&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy42ODAuQzMifQ%3D%3D&_nc_ohc=gNrIUn9puqMQ7kNvwG3jnOd&_nc_oc=AdqsEsM9Bi2zvZth5I_wpFHr04YFEG5RTwAwxWklwW_syzhw0269ZJfJZXk5XlMbAbo&_nc_ad=z-m&_nc_cid=0&_nc_zt=24&_nc_ht=scontent-hou1-1.cdninstagram.com&_nc_ss=7f3ba&oh=00_AQN-6L2frf9BHgiviZP9PtC38RG3PrFM5knt1EsgQQ5grw&oe=6ACBDCA7",
"profile_pic_url_hd": "https://scontent-hou1-1.cdninstagram.com/v/t51.2885-19/297880959_359329313073216_1310225548824266977_n.jpg?stp=dst-jpg_s640x640_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby42ODAuYzIifQ&_nc_ht=scontent-hou1-1.cdninstagram.com&_nc_cat=100&_nc_oc=Q6cZ2gGy87zr7VyJob-tT6b1Dr_PGrDZQXc1VAzzwwOPZYOe4BdyMJrpR4q__TZv5a-PP1Q&_nc_ohc=12OVHT4oehoQ7kNvwEfgbMW&_nc_gid=u_9cz9ycH3M5e3HCAWz55g&edm=APs17CUBAAAA&ccb=7-5&ig_cache_key=GH9NwRFAKBDgzkYBAOHIT90x2y4SbkULAAAB6406400j-ccb7-5&oh=00_AQNx1-hulYu_JR9ITYUKp0qCrJ2wUtAzoyGhSc9UjIBq9Q&oe=6ACBDCA7&_nc_sid=10d13b",
"username": "dadygramik"
}
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Instagram User Info by IDAPI này Instagram | $0.008 mỗi lần gọi | JSON |
Instagram | $0.008 mỗi lần gọi | JSON |
Instagram | $0.008 mỗi lần gọi | JSON |
Instagram | $0.008 mỗi lần gọi | JSON |
Instagram | $0.002 mỗi lần gọi | JSON |
Instagram | $0.008 mỗi lần gọi | JSON |
Hướng dẫn:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/instagram/v3/user-id-to-username với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.008 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: user_id (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. Instagram User Info by ID chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Instagram.