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"
]
}
}
}
]例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
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.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォーム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キーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_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
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/instagram/v2/search-hashtags に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.002。各組織には UTC 日ごとに 100 回の無料呼び出しが付与され、この API を含む対象の SandBase API 全体で共有されます。それ以降は、各呼び出しが SandBase 残高からこの料金で課金されます。サブスクリプションはありません。
必須: keyword (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Instagram Hashtag Search (V2) は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Instagram の API アクセスを別途申請する必要はありません。