Sand AISand AI MAGI-2MAGI-2가 이제 SandBase에서 제공됩니다: 네이티브 오디오가 포함된 1080p 동영상지금 사용해 보기

Instagram General Search (V3)

API 문서
https://api.sandbase.ai/v1/api/instagram/v3/general-search

Returns search results across media grids based on a keyword query. Supports pagination tokens and optional metadata flags.

가격
$0.008USD / 호출
메서드
POST
응답
JSON
매개변수
필수 1개 · 선택 사항 3개

Playground

입력
Search keyword
Enable metadata
Pagination ID, omit for first request, get from previous response `data.next_max_id`
Rank token, omit for first request, get from previous response `data.rank_token`
출력준비됨

출력이 여기에 표시됩니다

입력을 완료한 다음 Run을 클릭하세요.

API README

Instagram General Search (V3) API

Returns a grid of Instagram content that matches a keyword. The only required input is query. The response holds paged sections of clips and a token set for loading the next page.

Use cases

  • Pull the first pages of Instagram clips that match a brand name such as openai.
  • Page through a keyword's result grid to build a sample of matching media.
  • Collect media IDs and caption timestamps from search results to feed a deeper post lookup.
  • Check whether a topic still has more results by reading has_more before the next call.

Request

curl -X POST "https://api.sandbase.ai/v1/api/instagram/v3/general-search" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "openai"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
querystringYesSearch keyword
enable_metadatabooleanNoEnable metadata
next_max_idstringNoPagination ID, omit for first request, get from previous response data.next_max_id
rank_tokenstringNoRank token, omit for first request, get from previous response data.rank_token

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "clear_client_cache": false,
  "has_more": true,
  "media_grid": {
    "auto_load_more_enabled": true,
    "autoplay_type": "single",
    "grid_post_click_experience": "contextual",
    "has_more": true,
    "has_more_reels": true,
    "next_max_id": "10692e605b574eab901683f8fa706045",
    "rank_token": "12a27009…",
    "reels_max_id": "r:d92259cd69fa4283b518166f7c93d539",
    "reels_page_index": 3,
    "refinements": {},
    "sections": [
      {
        "explore_item_info": {
          "aspect_ratio": 1.5,
          "autoplay": true,
          "num_columns": 3,
          "total_num_columns": 3
        },
        "feed_type": "clips",
        "layout_content": {
          "fill_items": [
            {
              "media": {
                "boost_unavailable_identifier": null,
                "boost_unavailable_reason": null,
                "boost_unavailable_reason_v2": null,
                "can_see_insights_as_brand": false,
                "can_viewer_reshare": true,
                "can_viewer_save": true,
                "caption": {
                  "bit_flags": 0,
                  "content_type": "comment",
                  "created_at": 1786283390,
                  "created_at_utc": 1786283390,
                  "did_report_as_spam": false,
                  "has_translation": true,
                  "is_covered": false,
                  "is_ranked_comment": false
                },
                "caption_add_on": {
                  "poll": {
                    "color": "black",
                    "expires_at": 1786542599,
                    "finished": true,
                    "id": "polling_sticker_vibrant",
                    "is_multi_option_poll": false,
                    "is_shared_result": false,
                    "poll_id": 18176712871423680,
                    "poll_type": "comment_poll"
                  }
                }
              }
            }
          ],
          "one_by_two_item": {
            "clips": {
              "badge_label": null,
              "chaining_info": null,
              "content_source": null,
              "design": "bottom_with_icon_horizontal",
              "id": "clips-e314f03e-350e-424d-b59b-095c2a34f505",
              "items": [
                {
                  "media": {
                    "are_remixes_crosspostable": true,
                    "boost_unavailable_identifier": null,
                    "boost_unavailable_reason": null,
                    "boost_unavailable_reason_v2": null,
                    "can_see_insights_as_brand": false,
                    "can_viewer_reshare": true,
                    "can_viewer_save": true,
                    "caption": {
                      "bit_flags": 0,
                      "content_type": "comment",
                      "created_at": 1791726819,
                      "created_at_utc": 1791726819,
                      "did_report_as_spam": false,
                      "is_covered": false,
                      "is_ranked_comment": false,
                      "media_id": 4005616888212600576
                    }
                  }
                }
              ],
              "label": "",
              "max_id": "r:d92259cd69fa4283b518166f7c93d539"
            }
          }
        },
        "layout_type": "one_by_two_right"
      }
    ],
    "topic_status": -1
  },
  "next_max_id": "10692e605b574eab901683f8fa706045",
  "rank_token": "12a27009…",
  "reels_max_id": "r:d92259cd69fa4283b518166f7c93d539",
  "status": "ok"
}

Response fields

FieldMeaning
has_more / media_grid.has_moreWhether more results exist after this page. media_grid.has_more_reels does the same for the reels part of the grid.
next_max_idPagination ID for the next page. Pass it as next_max_id in the next request. The same value also appears at media_grid.next_max_id.
rank_tokenToken that keeps the ranking consistent across pages. Pass it as rank_token in the next request.
reels_max_idCursor for the reels part of the grid. It starts with r:. The media_grid.reels_page_index field shows the current reels page number.
media_grid.sections[].feed_typeContent type of the section. Here the value is clips.
media_grid.sections[].layout_typeHow the section is laid out in the grid, for example one_by_two_right or one_by_two_left.
media_grid.sections[].layout_content.fill_items[].mediaA media item in the section. It holds flags such as can_viewer_save and can_viewer_reshare, and often a caption object.
media_grid.sections[].layout_content.fill_items[].media.caption.created_at / created_at_utcUnix timestamp in seconds for when the caption was created.
media_grid.sections[].layout_content.fill_items[].media.caption.media_idID of the media the caption belongs to. Some items omit it.
media_grid.sections[].layout_content.one_by_two_item.clips.items[].mediaThe featured clip shown in the large tile of the section. It has the same structure as items in fill_items.

Notes

  • For the first request, send only query. Omit rank_token and next_max_id.
  • For the next page, send next_max_id and rank_token from the previous response, together with the same query.
  • The pagination values appear at the top level of the response and inside media_grid. Both copies match.
  • Use Instagram Post Details (V3) to look up a post, or Instagram Hashtag Posts (V3) to browse a hashtag.

Pricing

$0.008 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

더 살펴보기

관련 API

모든 API
API가격응답
Instagram$0.008 / 호출JSON
Instagram$0.008 / 호출JSON
Instagram$0.008 / 호출JSON
Instagram$0.008 / 호출JSON
Instagram$0.002 / 호출JSON
Instagram$0.008 / 호출JSON

가이드:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared

질문

FAQ

Instagram General Search (V3) API를 어떻게 사용하나요?

Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/instagram/v3/general-search에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.

Instagram General Search (V3) API 비용은 얼마인가요?

호출당 $0.008, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.

Instagram General Search (V3) API는 어떤 매개변수를 받나요?

필수: query (string). 선택: enable_metadata (boolean), next_max_id (string) 및 rank_token (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.

Instagram General Search (V3) API는 무엇을 반환하나요?

같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.

Instagram 개발자 계정이나 API 키가 필요한가요?

아니요. Instagram General Search (V3)은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Instagram API 액세스를 별도로 신청할 필요는 없습니다.