querystringbắt buộc
Search keyword
https://api.sandbase.ai/v1/api/instagram/v1/searchReturns Instagram users, hashtags, or places matching a search keyword. Filter results by specific target types using an optional filter parameter.
[
{
"data": {
"attempts": "22",
"hashtags": [
{
"hashtag": {
"id": 17841553213093056,
"media_count": 2319696,
"name": "openai"
},
"position": 4
},
{
"hashtag": {
"id": 17841563491091320,
"media_count": 2530825,
"name": "openair"
},
"position": 27
},
{
"hashtag": {
"id": 17841509815126634,
"media_count": 66953,
"name": "openairkino"
},
"position": 41
},
"… 8 more items in the full response"
],
"places": [],
"status": "ok",
"users": [
{
"position": 0,
"user": {
"full_name": "OpenAI",
"id": "45374573700",
"is_unpublished": null,
"is_verified": true,
"latest_reel_media": null,
"live_broadcast_id": null,
"live_broadcast_visibility": null,
"pk": "45374573700",
"profile_pic_url": "https://scontent-cdg4-1.cdninstagram.com/v/t51.82787-19/788716177_18115256264517701_8401817653356104064_n.jpg?stp=dst-jpg_e0_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4zMjAuYzIifQ&_nc_ht=scontent-cdg4-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2gESMEP5unU8wjqqQo_wMGUwFPSpNPZD6sCjiVqFSp9Sk-oUSa6sU4FbgBiXRk1dWU4&_nc_ohc=qjrncDNF5UEQ7kNvwEXB_FD&_nc_gid=D_VfyqSmLkvLlw-VcjtLVA&edm=APs17CUBAAAA&ccb=7-5&oh=00_AQNbUlx4UrkE4z3qh0YMElYHusXhJyB_t6f6AXPcAn6Wkw&oe=6ACABFE6&_nc_sid=10d13b",
"search_social_context": null,
"seen": null,
"unseen_count": null,
"username": "openai"
}
},
{
"position": 1,
"user": {
"full_name": "",
"id": "1827883862",
"is_unpublished": null,
"is_verified": false,
"latest_reel_media": null,
"live_broadcast_id": null,
"live_broadcast_visibility": null,
"pk": "1827883862",
"profile_pic_url": "https://scontent-cdg4-2.cdninstagram.com/v/t51.2885-19/366443580_1384654825729633_7746885651325906213_n.jpg?stp=dst-jpg_e0_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-cdg4-2.cdninstagram.com&_nc_cat=101&_nc_oc=Q6cZ2gESMEP5unU8wjqqQo_wMGUwFPSpNPZD6sCjiVqFSp9Sk-oUSa6sU4FbgBiXRk1dWU4&_nc_ohc=XLhws1YWGCMQ7kNvwE6nHmK&_nc_gid=D_VfyqSmLkvLlw-VcjtLVA&edm=APs17CUBAAAA&ccb=7-5&oh=00_AQOpCSqUWIFYgNAxa1ZlwH7W3CAbRZi-dC6AttD6ym3EGw&oe=6ACAA961&_nc_sid=10d13b",
"search_social_context": null,
"seen": null,
"unseen_count": null,
"username": "openairtirana"
}
},
{
"position": 2,
"user": {
"full_name": "OpenAI Developers",
"id": "35456104534",
"is_unpublished": null,
"is_verified": false,
"latest_reel_media": null,
"live_broadcast_id": null,
"live_broadcast_visibility": null,
"pk": "35456104534",
"profile_pic_url": "https://scontent-cdg4-3.cdninstagram.com/v/t51.82787-19/670815237_18080716229176535_1278459534956580752_n.jpg?stp=dst-jpg_e0_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby40MDAuYzIifQ&_nc_ht=scontent-cdg4-3.cdninstagram.com&_nc_cat=111&_nc_oc=Q6cZ2gESMEP5unU8wjqqQo_wMGUwFPSpNPZD6sCjiVqFSp9Sk-oUSa6sU4FbgBiXRk1dWU4&_nc_ohc=hqDtkc-fDuEQ7kNvwGgMqbl&_nc_gid=D_VfyqSmLkvLlw-VcjtLVA&edm=APs17CUBAAAA&ccb=7-5&oh=00_AQNgy4h-72DqAJU770t2vcIncnCymaacStQG4jvyTa68EQ&oe=6ACAA624&_nc_sid=10d13b",
"search_social_context": null,
"seen": null,
"unseen_count": null,
"username": "openaidevs"
}
},
"… 40 more items in the full response"
]
}
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
Returns Instagram accounts that match a search keyword, with a position for each result and basic account details. It needs one input, query. An optional select value limits the result type, for example to hashtags.
full_name and id.curl -X POST "https://api.sandbase.ai/v1/api/instagram/v1/search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "openai"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search keyword |
select | string | No | Filter type (optional) |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"attempts": "133",
"clear_client_cache": false,
"has_more": true,
"num_results": 20,
"page_token": "a53f91e3…",
"status": "ok",
"users": [
{
"position": 0,
"user": {
"account_badges": [],
"aigm_account_label_info": {
"is_auto_detected": false,
"is_enabled": false,
"is_manually_enabled": false
},
"fbid_v2": 17841445531001821,
"friendship_status": {
"following": false,
"incoming_request": false,
"is_bestie": false,
"is_feed_favorite": false,
"is_private": false,
"is_restricted": false,
"outgoing_request": false
},
"full_name": "OpenAI",
"has_anonymous_profile_picture": false,
"id": "45374573700",
"is_private": false
}
}
]
}
| Field | Meaning |
|---|---|
users[].position | Zero-based rank of the result in the list. |
users[].user.id | Instagram user ID as a string. Use it in APIs that look up a user by ID. |
users[].user.full_name | Display name of the account. |
users[].user.is_private | Whether the account is private. |
users[].user.fbid_v2 | Numeric Facebook-side ID attached to the account. |
users[].user.friendship_status.following / users[].user.friendship_status.is_restricted | Relationship flags between the searching account and the result. Each is a boolean. |
num_results | Number of results in this response. |
has_more | Whether more results are available after this page. |
page_token | Token for the next page of results. |
status | Status of the call. ok means it succeeded. |
query is any search keyword, such as a brand or topic name. Set select to a value like hashtags to limit the result type.has_more is true, use the page_token value to continue. The response does not show the name of the request parameter that accepts it.id values are strings. Pass one to Instagram User Profile by ID to get the full profile.$0.001 per successful call. Failed calls 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/v1/search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "openai",
"select": "hashtags"
}'Đặ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.
querystringbắt buộcSearch keyword
selectstringFilter type (optional)
Đâ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": {
"attempts": "22",
"hashtags": [
{
"hashtag": {
"id": 17841553213093056,
"media_count": 2319696,
"name": "openai"
},
"position": 4
},
{
"hashtag": {
"id": 17841563491091320,
"media_count": 2530825,
"name": "openair"
},
"position": 27
},
{
"hashtag": {
"id": 17841509815126634,
"media_count": 66953,
"name": "openairkino"
},
"position": 41
},
"… 8 more items in the full response"
],
"places": [],
"status": "ok",
"users": [
{
"position": 0,
"user": {
"full_name": "OpenAI",
"id": "45374573700",
"is_unpublished": null,
"is_verified": true,
"latest_reel_media": null,
"live_broadcast_id": null,
"live_broadcast_visibility": null,
"pk": "45374573700",
"profile_pic_url": "https://scontent-cdg4-1.cdninstagram.com/v/t51.82787-19/788716177_18115256264517701_8401817653356104064_n.jpg?stp=dst-jpg_e0_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4zMjAuYzIifQ&_nc_ht=scontent-cdg4-1.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2gESMEP5unU8wjqqQo_wMGUwFPSpNPZD6sCjiVqFSp9Sk-oUSa6sU4FbgBiXRk1dWU4&_nc_ohc=qjrncDNF5UEQ7kNvwEXB_FD&_nc_gid=D_VfyqSmLkvLlw-VcjtLVA&edm=APs17CUBAAAA&ccb=7-5&oh=00_AQNbUlx4UrkE4z3qh0YMElYHusXhJyB_t6f6AXPcAn6Wkw&oe=6ACABFE6&_nc_sid=10d13b",
"search_social_context": null,
"seen": null,
"unseen_count": null,
"username": "openai"
}
},
{
"position": 1,
"user": {
"full_name": "",
"id": "1827883862",
"is_unpublished": null,
"is_verified": false,
"latest_reel_media": null,
"live_broadcast_id": null,
"live_broadcast_visibility": null,
"pk": "1827883862",
"profile_pic_url": "https://scontent-cdg4-2.cdninstagram.com/v/t51.2885-19/366443580_1384654825729633_7746885651325906213_n.jpg?stp=dst-jpg_e0_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-cdg4-2.cdninstagram.com&_nc_cat=101&_nc_oc=Q6cZ2gESMEP5unU8wjqqQo_wMGUwFPSpNPZD6sCjiVqFSp9Sk-oUSa6sU4FbgBiXRk1dWU4&_nc_ohc=XLhws1YWGCMQ7kNvwE6nHmK&_nc_gid=D_VfyqSmLkvLlw-VcjtLVA&edm=APs17CUBAAAA&ccb=7-5&oh=00_AQOpCSqUWIFYgNAxa1ZlwH7W3CAbRZi-dC6AttD6ym3EGw&oe=6ACAA961&_nc_sid=10d13b",
"search_social_context": null,
"seen": null,
"unseen_count": null,
"username": "openairtirana"
}
},
{
"position": 2,
"user": {
"full_name": "OpenAI Developers",
"id": "35456104534",
"is_unpublished": null,
"is_verified": false,
"latest_reel_media": null,
"live_broadcast_id": null,
"live_broadcast_visibility": null,
"pk": "35456104534",
"profile_pic_url": "https://scontent-cdg4-3.cdninstagram.com/v/t51.82787-19/670815237_18080716229176535_1278459534956580752_n.jpg?stp=dst-jpg_e0_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby40MDAuYzIifQ&_nc_ht=scontent-cdg4-3.cdninstagram.com&_nc_cat=111&_nc_oc=Q6cZ2gESMEP5unU8wjqqQo_wMGUwFPSpNPZD6sCjiVqFSp9Sk-oUSa6sU4FbgBiXRk1dWU4&_nc_ohc=hqDtkc-fDuEQ7kNvwGgMqbl&_nc_gid=D_VfyqSmLkvLlw-VcjtLVA&edm=APs17CUBAAAA&ccb=7-5&oh=00_AQNgy4h-72DqAJU770t2vcIncnCymaacStQG4jvyTa68EQ&oe=6ACAA624&_nc_sid=10d13b",
"search_social_context": null,
"seen": null,
"unseen_count": null,
"username": "openaidevs"
}
},
"… 40 more items in the full response"
]
}
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Instagram Keyword SearchAPI này Instagram | $0.001 mỗi lần gọi | JSON |
Instagram | $0.001 mỗi lần gọi | JSON |
Instagram | $0.001 mỗi lần gọi | JSON |
Instagram | $0.001 mỗi lần gọi | JSON |
Instagram | $0.001 mỗi lần gọi | JSON |
Instagram | $0.001 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/v1/search 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.001 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: query (string). Tùy chọn: select (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 Keyword Search 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.