Felo API PlatformFelo API Platform

資料 API / Instagram / Search

Search Hashtag

Finds public posts carrying a hashtag through Google, returning hashtag, media_type, cursor and posts in the same normalised shape as get_instagram_reels_search: shortcode, url, caption, like_count, comment_count, video_play_count, video_view_count, owner, location and taken_at. The leading # is optional. Set media_type=reels to narrow to reels, or all for posts and reels together. Note that cursor here is the next Google results page number rather than an Instagram cursor. To search caption keywords rather than a hashtag, use get_instagram_reels_search.

參數

查詢

  • hashtagstring必填

    The hashtag to search for. Include or omit the #.

  • date_postedstring選填

    允許值: last-hour · last-day · last-week · last-month · last-year

    Only return Google-indexed posts found in this relative window.

  • media_typestring選填

    允許值: all · reels

    Use all to search public posts and reels, or reels to only return reels. Defaults to all.

  • cursorstring選填

    The cursor returned by the previous response. In this version, it is the next Google results page number.

請求範例

curl -G "https://openapi.felo.ai/v1/beta/instagram/search/hashtag" \
  --data-urlencode "hashtag=<string>" \
  -H "Authorization: Bearer $FELO_API_KEY"

回應

回應範例

{
  "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",

已截斷。完整範例在 API 參考裡。

回應欄位

  • successboolean選填
  • credits_remaininginteger選填
  • hashtagstring選填
  • media_typestring選填
  • postsobject[]選填
  • cursor選填