> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 搜索话题标签

> 搜索话题标签

获取某个话题标签的近期和热门帖子。

## 示例

```bash theme={null}
curl "https://api.aisa.one/apis/v1/instagram/search/hashtag?hashtag=VALUE" \
  -H "Authorization: Bearer YOUR_API_KEY"
```


## OpenAPI

````yaml openapi/zh/instagram.json GET /instagram/search/hashtag
openapi: 3.0.0
info:
  title: Instagram API
  description: 读取 Instagram 公开数据——个人资料、帖子、Reels、评论、文字稿和搜索结果。
  version: 1.0.0
servers:
  - url: https://api.aisa.one/apis/v1
security:
  - bearerAuth: []
paths:
  /instagram/search/hashtag:
    get:
      tags:
        - Instagram API
      summary: 搜索话题标签
      description: >-
        使用 Google Search 查找某个话题标签的公开 Instagram
        帖子，然后返回帖子详细信息，例如文案、可用时的播放次数、点赞数、评论数、所有者和发布时间。结果取决于 Google
        已编入索引的内容，因此这是一种尽力而为的方式，并非完整的 Instagram 原生话题标签搜索。如果只需要 reels，请传递
        media_type=reels。使用 date_posted 获取近期帖子，并传递返回的 cursor 以获取下一页。
      operationId: get_instagram-search-hashtag
      parameters:
        - name: hashtag
          in: query
          required: true
          description: '要搜索的话题标签。可包含或省略 #。'
          schema:
            type: string
          example: makeup
        - name: date_posted
          in: query
          required: false
          description: 仅返回此相对时间范围内 Google 已编入索引的帖子。
          schema:
            type: string
            enum:
              - last-hour
              - last-day
              - last-week
              - last-month
              - last-year
          example: last-week
        - name: media_type
          in: query
          required: false
          description: 使用 all 搜索公开帖子和短视频，或使用 reels 仅返回短视频。默认为 all。
          schema:
            type: string
            enum:
              - all
              - reels
          example: all
        - name: cursor
          in: query
          required: false
          description: 上一个响应返回的游标。在此版本中，它是下一页 Google 结果的页码。
          schema:
            type: string
          example: '2'
      responses:
        '200':
          description: 成功响应
          content:
            application/json:
              example:
                success: true
                credits_remaining: 49997308058
                hashtag: funnydogs
                media_type: all
                posts:
                  - id: '3714950709444987377'
                    __typename: XDTGraphVideo
                    shortcode: DOOJ_zSjcnx
                    url: https://www.instagram.com/reel/DOOJ_zSjcnx/
                    caption: >-
                      Well we tried to be subtle…  #funnydogs #funny #whiteboxer
                      #australianshepherd
                    thumbnail_src: >-
                      https://scontent-ord5-2.cdninstagram.com/v/t51.82787-15/542212527_18130644664455761_8262846918103190683_n.jpg?stp=c0.509.1312.1312a_dst-jpg_e35_s640x640_sh2.08_tt6&_nc_ht=scontent-ord5-2.cdninstagram.com&_nc_cat=105&_nc_oc=Q6cZ2gGAVcFN0K6MoOopK41K4dWjOeZZaT9xgOadaLiAbdnmQSVNlQgD_lz8yQLaXrtvYeY&_nc_ohc=eV6SPEh2O88Q7kNvwHcNeFx&_nc_gid=tAUZdiRnIdGjcNvGfTjMvg&edm=ANTKIIoBAAAA&ccb=7-5&oh=00_Af6BLCF7O_laTkSuoqn5Ebg8ZWg57JkaXtBAb6nH0KapPg&oe=6A1D1BB2&_nc_sid=d885a2
                    display_url: >-
                      https://scontent-ord5-2.cdninstagram.com/v/t51.82787-15/542212527_18130644664455761_8262846918103190683_n.jpg?stp=dst-jpg_e35_p1080x1080_sh2.08_tt6&_nc_ht=scontent-ord5-2.cdninstagram.com&_nc_cat=105&_nc_oc=Q6cZ2gGAVcFN0K6MoOopK41K4dWjOeZZaT9xgOadaLiAbdnmQSVNlQgD_lz8yQLaXrtvYeY&_nc_ohc=eV6SPEh2O88Q7kNvwHcNeFx&_nc_gid=tAUZdiRnIdGjcNvGfTjMvg&edm=ANTKIIoBAAAA&ccb=7-5&oh=00_Af6TdnB6cfe_BkRBRYP65isRGJfDrp2evUQY9O_ReUHv2g&oe=6A1D1BB2&_nc_sid=d885a2
                    video_url: >-
                      https://scontent-ord5-2.cdninstagram.com/o1/v/t2/f2/m86/AQNG_gCzevxl8xiNB2lVRlcV8c3o3r2ZyeLeWfaY4eaHdyRX3_Z1mty2jrHuH5Z66vTC5SXrhmpdG5re9MNyf1jCtWVyPKAWQFQ037o.mp4?_nc_cat=104&_nc_sid=5e9851&_nc_ht=scontent-ord5-2.cdninstagram.com&_nc_ohc=ByTiQjuOr9wQ7kNvwGpBh0x&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5JTlNUQUdSQU0uQ0xJUFMuQzMuNzIwLmRhc2hfYmFzZWxpbmVfMV92MSIsInhwdl9hc3NldF9pZCI6MTEyMDQ3OTIyMDA0MTUwMSwiYXNzZXRfYWdlX2RheXMiOjI2NCwidmlfdXNlY2FzZV9pZCI6MTAwOTksImR1cmF0aW9uX3MiOjY1LCJ1cmxnZW5fc291cmNlIjoid3d3In0%3D&ccb=17-1&vs=638842146c84456b&_nc_vs=HBksFQIYUmlnX3hwdl9yZWVsc19wZXJtYW5lbnRfc3JfcHJvZC80QTQ2OURBNUJBQTE1RjdFODZFRjQxRThCOUU1RTNBOV92aWRlb19kYXNoaW5pdC5tcDQVAALIARIAFQIYRmlnX3hwdl9yZWVsc19wZXJtYW5lbnRfc3JfcHJvZC83NDQ4NjQwMTg0MjI1MjdfODI5Mjc2OTQ2ODc2ODI3MDk4OC5tcDQVAgLIARIAKAAYABsCiAd1c2Vfb2lsATEScHJvZ3Jlc3NpdmVfcmVjaXBlATEVAAAmupyc3rzE_QMVAigCQzMsF0BQbul41P30GBJkYXNoX2Jhc2VsaW5lXzFfdjERAHX-B2XmnQEA&_nc_gid=tAUZdiRnIdGjcNvGfTjMvg&_nc_ss=7a22e&_nc_zt=28&oh=00_Af6Z6PbM9b2RWG7EdCufc8MOp-pcmhJu3EMKtd_pzJaopw&oe=6A193955
                    has_audio: false
                    accessibility_caption: null
                    video_view_count: 148581
                    video_play_count: 593055
                    product_type: clips
                    video_duration: 65.733
                    clips_music_attribution_info:
                      artist_name: _layla_the_boxer
                      song_name: Original audio
                      uses_original_audio: true
                      should_mute_audio: false
                      should_mute_audio_reason: ''
                      audio_id: '1303301604923923'
                    is_video: true
                    owner:
                      id: '13582495760'
                      username: _layla_the_boxer
                      is_verified: true
                      profile_pic_url: >-
                        https://scontent-ord5-3.cdninstagram.com/v/t51.2885-19/420493539_1460561894498614_4791883467164866946_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-ord5-3.cdninstagram.com&_nc_cat=110&_nc_oc=Q6cZ2gGAVcFN0K6MoOopK41K4dWjOeZZaT9xgOadaLiAbdnmQSVNlQgD_lz8yQLaXrtvYeY&_nc_ohc=aeHo4Q_mApIQ7kNvwERao4Z&_nc_gid=tAUZdiRnIdGjcNvGfTjMvg&edm=ANTKIIoBAAAA&ccb=7-5&oh=00_Af4Fxb_M04AcFcB7JVo3PYiMVir3WS0vIloaPKB0igyV_g&oe=6A1D1119&_nc_sid=d885a2
                      full_name: Layla the Boxer
                      is_private: false
                      is_unpublished: false
                      follower_count: 1369176
                      post_count: 1184
                    taken_at: '2025-09-05T12:51:42.000Z'
                    is_ad: false
                    like_count: 35854
                    is_affiliate: false
                    is_paid_partnership: false
                    location: null
                    comment_count: 1263
                    comments:
                      - id: '18099897668494530'
                        text: 😂😅🤣😍❤️🥰
                        owner:
                          id: '70821489119'
                          is_verified: false
                          profile_pic_url: >-
                            https://scontent-ord5-3.cdninstagram.com/v/t51.2885-19/466368394_545365701466258_2087161965910224562_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_ht=scontent-ord5-3.cdninstagram.com&_nc_cat=110&_nc_oc=Q6cZ2gGAVcFN0K6MoOopK41K4dWjOeZZaT9xgOadaLiAbdnmQSVNlQgD_lz8yQLaXrtvYeY&_nc_ohc=JxQ38FoXdhsQ7kNvwH3PKC0&_nc_gid=tAUZdiRnIdGjcNvGfTjMvg&edm=ANTKIIoBAAAA&ccb=7-5&oh=00_Af5bZb_HVbD8jFTK8i271c6IoeUyGR3iiKL-YVd-tFY_Yw&oe=6A1D05C8&_nc_sid=d885a2
                          username: jesshman66
                        like_count: 0
                        created_at: '2026-01-25T13:33:43.000Z'
                cursor: '2'
              schema:
                $ref: '#/components/schemas/InstagramHashtagSearchResponse'
components:
  schemas:
    InstagramHashtagSearchResponse:
      type: object
      properties:
        success:
          type: boolean
        credits_remaining:
          type: integer
        hashtag:
          type: string
        media_type:
          type: string
        posts:
          type: array
          items:
            type: object
            additionalProperties: true
        cursor:
          type: string
          nullable: true
      additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: AIsa API 密钥。前往 https://aisa.one 获取

````