querystringbắt buộc
Search keyword
https://api.sandbase.ai/v1/api/instagram/v3/search-hashtagsSearches Instagram hashtags by keyword and returns matching hashtag names, IDs, and media counts. Supports pagination via rank tokens.
[
{
"data": {
"_rid": "3a5106a482aa8",
"count": 20,
"hashtags": [
{
"id": "17841553213093056",
"media_count": 2319697,
"name": "openai",
"profile_pic_url": null
},
{
"id": "17841563491091320",
"media_count": 2530825,
"name": "openair",
"profile_pic_url": null
},
{
"id": "17987906725321754",
"media_count": 35506,
"name": "openaidalle",
"profile_pic_url": null
},
"… 17 more items in the full response"
],
"items": [
{
"id": "17841553213093056",
"media_count": 2319697,
"name": "openai",
"profile_pic_url": null
},
{
"id": "17841563491091320",
"media_count": 2530825,
"name": "openair",
"profile_pic_url": null
},
{
"id": "17987906725321754",
"media_count": 35506,
"name": "openaidalle",
"profile_pic_url": null
},
"… 17 more items in the full response"
],
"rank_token": null
}
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
Searches Instagram hashtags by keyword and returns matching hashtag names, IDs, and media counts. It needs one input: a search keyword in query.
media_count values as one descriptive input; they do not measure campaign performance or recent demand.openair next to openai.curl -X POST "https://api.sandbase.ai/v1/api/instagram/v3/search-hashtags" \
-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 |
rank_token | string | No | Rank token from previous search response for pagination |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"_rid": "3f439430dc5ce",
"count": 20,
"hashtags": [
{
"id": "17841553213093056",
"media_count": 2360486,
"name": "openai",
"profile_pic_url": null
}
],
"items": [
{
"id": "17841553213093056",
"media_count": 2360486,
"name": "openai",
"profile_pic_url": null
}
],
"rank_token": null
}
| Field | Meaning |
|---|---|
hashtags[].name | Hashtag text without the # sign. |
hashtags[].id | Instagram ID of the hashtag, returned as a string. |
hashtags[].media_count | Number of posts that use the hashtag. |
hashtags[].profile_pic_url | Image URL for the hashtag. It is null in the sample response. |
items[].name / items[].id / items[].media_count | The same hashtag entries as in hashtags, repeated under items. |
count | Number of hashtags returned in this response. |
rank_token | Token for requesting the next page of results. It is null in the sample response. |
rank_token from a response into the next request along with the same query to get more results. When rank_token is null, the response gave no token for another page.hashtags and items hold the same entries, so you can read either one.$0.008 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Send query, such as openai. This route finds hashtag candidates; it does not retrieve posts and does not take the other route's tag or max_id fields. Omit rank_token on the first request. Review the exact returned name and string hashtag id before selecting a candidate; similar spellings are not proof of the same topic or brand.
The full saved reference dated October 7, 2026 contains 20 entries, duplicated under hashtags and items, with rank_token null. Read one array, not both concatenated. The selected search payload has no documented status or code success field: require the expected array and record shape, reject explicit errors, and do not borrow status ok from Hashtag Posts. Distinguish a valid empty list from an absent or malformed field. A returned count is a response field, not a promised page size.
Keep media_count under its source name and keep missing counts unknown. It is a reported volume measure, not recent growth, audience demand, unique authors or campaign performance. profile_pic_url is null in the saved reference; do not substitute an unrelated image. A search result's presence or absence is not a trademark, ownership or availability check.
The contract accepts a returned rank_token with the same query, but the selected saved response provides none. Do not manufacture a token, use a hashtag ID as a cursor, or claim a tested continuation. Each separately chosen continuation needs its own budget; this first request does not automatically collect all pages or call post details.
After reviewing a candidate, Hashtag Posts can be chosen as a separate request using its exact tag name without #. Keep discovery evidence separate from any later post sample.
Choose keyword-to-tag discovery or a first page for a tag you already selected. Share the setup Skill, Markdown quickstart, selected endpoint and desired result. Keep SANDBASE_API_KEY locally; use POST /v1/api/ with Bearer authentication. Validate completed SandBase status and an object at outputs[0].data before applying the selected route's business checks.
Pricing checked on November 8, 2026 lists $0.008 per call for each selected route, with 100 daily calls shared across eligible data APIs in the organization, resetting at 00:00 UTC. Eligibility does not reveal remaining allowance. Start with one request and inspect it before choosing another. No new business request, next-page roundtrip or paid media retrieval was made for this revision. The Instagram hashtag Python guide separates historical examples, current references and offline validation.
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/search-hashtags" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "openai"
}'Đặ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
rank_tokenstringRank token from previous search response for pagination
Đâ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": "3a5106a482aa8",
"count": 20,
"hashtags": [
{
"id": "17841553213093056",
"media_count": 2319697,
"name": "openai",
"profile_pic_url": null
},
{
"id": "17841563491091320",
"media_count": 2530825,
"name": "openair",
"profile_pic_url": null
},
{
"id": "17987906725321754",
"media_count": 35506,
"name": "openaidalle",
"profile_pic_url": null
},
"… 17 more items in the full response"
],
"items": [
{
"id": "17841553213093056",
"media_count": 2319697,
"name": "openai",
"profile_pic_url": null
},
{
"id": "17841563491091320",
"media_count": 2530825,
"name": "openair",
"profile_pic_url": null
},
{
"id": "17987906725321754",
"media_count": 35506,
"name": "openaidalle",
"profile_pic_url": null
},
"… 17 more items in the full response"
],
"rank_token": null
}
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
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/search-hashtags 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: query (string). Tùy chọn: rank_token (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 Hashtag Search (V3) 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.
Không. Hashtag Search nhận query và rank_token tùy chọn. Hashtag Posts nhận tag không có # và max_id tùy chọn. Search trả về các ứng viên chứ không phải bài đăng; chọn một ứng viên cho route khác là một yêu cầu riêng.
Không. Tham chiếu search được chọn lặp lại cùng các mục trong hashtags và items và không cung cấp cờ status. Hãy đọc một mảng, xác thực các bản ghi của nó và phân biệt dữ liệu thiếu với một danh sách rỗng hợp lệ. Đừng vay mượn kiểm tra status ok của route bài đăng hoặc đếm đôi mảng bị lặp.
Không. media_count là khối lượng được báo cáo, không phải tăng trưởng, tác giả duy nhất hay kết quả chiến dịch. Lượt tìm kiếm đã lưu ngày 7 tháng 10 có rank_token là null. Chưa kiểm tra tiếp tục; đừng bịa token hoặc suy ra toàn bộ kết quả có sẵn từ chỉ một phản hồi này.