keywordstringจำเป็น
Search keyword
https://api.sandbase.ai/v1/api/instagram/v2/search-hashtagsSearch for Instagram hashtags matching a given keyword query. Returns an array of matching hashtag objects containing each hashtag identifier, name, and total media count.
[
{
"data": {
"data": {
"count": 55,
"items": [
{
"allow_following": false,
"id": "17841562906103814",
"media_count": 314343003,
"name": "cat",
"profile_pic_url": null
},
{
"allow_following": false,
"id": "17841562480105581",
"media_count": 53081664,
"name": "catlife",
"profile_pic_url": null
},
{
"allow_following": false,
"id": "17843755933044787",
"media_count": 51548882,
"name": "catlovers",
"profile_pic_url": null
},
"… 52 more items in the full response"
]
}
}
}
]เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground
Returns Instagram hashtags that match a search keyword. Each result has the hashtag ID, its name, and its total media count. The only input is keyword.
catlife and catlovers for the keyword cat.media_count to pick tags with larger or smaller audiences.curl -X POST "https://api.sandbase.ai/v1/api/instagram/v2/search-hashtags" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": "cat"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | Yes | Search keyword |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"count": 55,
"items": [
{
"allow_following": false,
"id": "17841562906103814",
"media_count": 314739058,
"name": "cat",
"profile_pic_url": null
}
]
}
}
| Field | Meaning |
|---|---|
data.count | Number of hashtags matched for the keyword. |
data.items[].id | Hashtag identifier as a string. |
data.items[].name | Hashtag text, without the # sign. |
data.items[].media_count | Total number of media items tagged with this hashtag. |
data.items[].allow_following | Boolean flag. It is false for every item in this sample. |
data.items[].profile_pic_url | Image URL for the hashtag. It is null in this sample. |
keyword is the only parameter. The response shows no pagination parameters.id values are long numeric strings. Keep them as strings.$0.002 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/instagram/v2/search-hashtags" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"keyword": "cat"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
keywordstringจำเป็นSearch keyword
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
[
{
"data": {
"data": {
"count": 55,
"items": [
{
"allow_following": false,
"id": "17841562906103814",
"media_count": 314343003,
"name": "cat",
"profile_pic_url": null
},
{
"allow_following": false,
"id": "17841562480105581",
"media_count": 53081664,
"name": "catlife",
"profile_pic_url": null
},
{
"allow_following": false,
"id": "17843755933044787",
"media_count": 51548882,
"name": "catlovers",
"profile_pic_url": null
},
"… 52 more items in the full response"
]
}
}
}
]สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Instagram | $0.002 ต่อการเรียก | JSON |
Instagram | $0.002 ต่อการเรียก | JSON |
Instagram | $0.002 ต่อการเรียก | JSON |
Instagram | $0.002 ต่อการเรียก | JSON |
Instagram | $0.002 ต่อการเรียก | JSON |
Instagram | $0.002 ต่อการเรียก | JSON |
คู่มือ:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/instagram/v2/search-hashtags โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.002 ต่อครั้ง ทุกองค์กรจะได้รับคำขอฟรี 100 ครั้งต่อวัน UTC โดยใช้ร่วมกันใน SandBase APIs ที่เข้าเงื่อนไขรวมถึงรายการนี้ หลังจากนั้นแต่ละคำขอจะคิดค่าบริการตามราคานี้จากยอดคงเหลือ SandBase ของคุณ ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: keyword (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Instagram Hashtag Search (V2) ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Instagram API แยกต่างหาก