Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

Instagram User Data by Username (V2)

API 文件
https://api.sandbase.ai/v1/api/instagram/v1/user-info-by-username-v2

Returns user profile details and recent timeline media for a specified Instagram account. Input the target handle to retrieve media nodes and account data.

價格
$0.001美元/次呼叫
方法
POST
回應
JSON
參數
1 個必填 · 0 個選填

Playground

輸入
Instagram username
輸出範例
回應outputs · 13.4 KB · 267 行
[
  {
    "data": {
      "ai_agent_owner_username": null,
      "attempts": "8",
      "bio_links": [
        {
          "link_type": "external",
          "lynx_url": "https://l.instagram.com/?u=http%3A%2F%2Fhelp.instagram.com%2F&e=AUA1hJjkKh3o1xjtrtGEiN1jyz_oIG_ZYDY4Se9w6nf45CJhV37CM3iEW-S8PajnSSKewjmkFBzuC0BMZE-iGCS9eZDBNApv",
          "title": "",
          "url": "http://help.instagram.com"
        },
        {
          "link_type": "external",
          "lynx_url": "https://l.instagram.com/?u=https%3A%2F%2Fopen.spotify.com%2Fepisode%2F6B8XsGCYuHMYzSLvLMitS7%3Fsi%3DkXd6_Y6AQhueoC_McepSKg&e=AUC3kFS8BZdWbyhR7zz6WmjqLKY_jVG8hhNB11LQaECCBHSDQlIT1BQPr9pkQtsUvtHC6dFQgoXUczaKzX274KoimOZHQCpg",
          "title": "Close Friends Only with @kaicenat and @kaiyacenat | Spotify",
          "url": "https://open.spotify.com/episode/6B8XsGCYuHMYzSLvLMitS7?si=kXd6_Y6AQhueoC_McepSKg"
        },
        "… 1 more items in the full response"
      ],
      "biography": "Discover what's new on Instagram 🔎✨",
      "biography_with_entities": {
        "entities": [],
        "raw_text": "Discover what's new on Instagram 🔎✨"
      },
      "blocked_by_viewer": false,
      "business_address_json": null,
      "business_category_name": null,
      "business_contact_method": "UNKNOWN",
      "business_email": null,
      "business_phone_number": null,
      "category_enum": null,
      "category_name": null,
      "country_block": false,
      "edge_follow": {
        "count": 305
      },
      "edge_followed_by": {
        "count": 686584231
      },
      "edge_owner_to_timeline_media": {
        "count": 8612,
        "edges": [
          {
            "node": {
              "__typename": "GraphVideo",
              "accessibility_caption": null,
              "clips_music_attribution_info": {
                "artist_name": "Wonder Girls",
                "audio_id": "314742886009556",
                "should_mute_audio": false,
                "should_mute_audio_reason": "",
                "song_name": "Tell Me (Rap Version)",
                "uses_original_audio": false
              },
              "coauthor_producers": [],
              "comments_disabled": false,
              "dash_info": {
                "is_dash_eligible": false,
                "number_of_qualities": 0,
                "video_dash_manifest": null
              },
              "dimensions": {
                "height": 1920,
                "width": 1080
              },
              "display_url": "https://instagram.ftrn5-2.fna.fbcdn.net/v/t51.82787-15/830594125_18798964129001321_5625309391674938800_n.jpg?stp=dst-jpg_e15_fr_p1080x1080_tt6&_nc_ht=instagram.ftrn5-2.fna.fbcdn.net&_nc_cat=1&_nc_oc=Q6cZ2gGghw-uITAenqrq_uZiJrBd1kR4pdAuy2kyrh1vAa01qSRdACbWXI5eY29K9Tc5R3c&_nc_ohc=lNt9jIeoRLsQ7kNvwECUv…",
              "edge_liked_by": {
                "count": 642789
              },
              "edge_media_preview_like": {
                "count": 642789
              },
              "edge_media_to_caption": {
                "edges": [
                  "…"
                ]
              },
              "edge_media_to_comment": {
                "count": 18380
              },
              "edge_media_to_tagged_user": {
                "edges": [
                  "…"
                ]
              },
              "fact_check_information": null,
              "fact_check_overall_rating": null,
              "felix_profile_grid_crop": null,
              "gating_info": null,
              "has_audio": true,
              "has_upcoming_event": false,
              "id": "3998430248382584993",
              "is_video": true,
              "like_and_view_counts_disabled": false,
              "location": null,
              "media_overlay_info": null,
              "media_preview": "ABgq58LngDmums2JgXPVRtP4dP0xUY0uJectke//ANarMdusYwMke5zUvUaKmd3U4YnnP8h7D+dFWZIFYZ6H2oqLF3LJqlLMwJ2chcZHrV48VGQOabQkV47gPjPGf5+lFVG+WQem4fzopoGa5FRt6CpHqM0xFKePJ96KmloqS0f/2Q==",
              "nft_asset_info": null,
              "owner": {
                "id": "25025320",
                "username": "instagram"
              },
              "pinned_for_users": [],
              "product_type": "clips",
              "profile_grid_thumbnail_fitting_style": "UNSET",
              "sharing_friction_info": {
                "bloks_app_url": null,
                "should_have_sharing_friction": false
              },
              "shortcode": "Dd9RyBWBVih",
              "taken_at_timestamp": 1790870385,
              "tall_profile_grid_crop": {
                "crop_bottom": 0.914492753623188,
                "crop_left": 0,
                "crop_right": 1,
                "crop_top": 0.165217391304347
              },
              "thumbnail_resources": [
                {
                  "config_height": 150,
                  "config_width": 150,
                  "src": "https://instagram.ftrn5-2.fna.fbcdn.net/v/t51.82787-15/830594125_18798964129001321_5625309391674938800_n.jpg?stp=c0.420.1080.1080a_dst-jpg_e15_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6ImltYWdlX3VybGdlbi4xMDgwLnNkci52aWRlb19kZWZhdWx0X2NvdmVyX2ZyYW1lLmMyIn0&_nc_ht=instagram.ftrn5-2.fna.fbcdn.net&_nc_cat=1…"
                },
                {
                  "config_height": 240,
                  "config_width": 240,
                  "src": "https://instagram.ftrn5-2.fna.fbcdn.net/v/t51.82787-15/830594125_18798964129001321_5625309391674938800_n.jpg?stp=c0.420.1080.1080a_dst-jpg_e15_s240x240_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6ImltYWdlX3VybGdlbi4xMDgwLnNkci52aWRlb19kZWZhdWx0X2NvdmVyX2ZyYW1lLmMyIn0&_nc_ht=instagram.ftrn5-2.fna.fbcdn.net&_nc_cat=1…"
                },
                "… 3 more items in the full response"
              ],
              "thumbnail_src": "https://instagram.ftrn5-2.fna.fbcdn.net/v/t51.82787-15/830594125_18798964129001321_5625309391674938800_n.jpg?stp=c0.420.1080.1080a_dst-jpg_e35_s640x640_sh2.08_tt6&_nc_ht=instagram.ftrn5-2.fna.fbcdn.net&_nc_cat=1&_nc_oc=Q6cZ2gGghw-uITAenqrq_uZiJrBd1kR4pdAuy2kyrh1vAa01qSRdACbWXI5eY29K9Tc5R3c&_nc_ohc=l…",
              "thumbnail_tall_src": "https://instagram.ftrn5-2.fna.fbcdn.net/v/t51.82787-15/830594125_18798964129001321_5625309391674938800_n.jpg?stp=dst-jpg_e35_p640x640_sh2.08_tt6&_nc_ht=instagram.ftrn5-2.fna.fbcdn.net&_nc_cat=1&_nc_oc=Q6cZ2gGghw-uITAenqrq_uZiJrBd1kR4pdAuy2kyrh1vAa01qSRdACbWXI5eY29K9Tc5R3c&_nc_ohc=lNt9jIeoRLsQ7kNvwEC…",
              "tracking_token": "eyJ2ZXJzaW9uIjo1LCJwYXlsb2FkIjp7ImlzX2FuYWx5dGljc190cmFja2VkIjp0cnVlLCJ1dWlkIjoiNWRiNTdkNGQ1M2NmNGUwY2IyY2UzZDFjMjE1NzQyYWUzOTk4NDMwMjQ4MzgyNTg0OTkzIn0sInNpZ25hdHVyZSI6IiJ9",
              "video_url": "https://instagram.ftrn5-2.fna.fbcdn.net/o1/v/t2/f2/m86/AQPSpP2QuNVX3DLKJj_iVnYb1-7O4TvN-6jnTrP6GilIPrOETMuukhTDS4u1TIP4bPclqcmkRt5xRhf_riabqCVglEj4OOOd7urAGH4.mp4?_nc_cat=1&_nc_oc=AdrtBPy9lcNDp3Rq3wFu-DPQRv-aFGrE_9dZDSJ9TnyU3YkSzTslOuZc68Zu-OxbOwA&_nc_sid=5e9851&_nc_ht=instagram.ftrn5-2.fna.fbcdn.ne…",
              "video_view_count": 40741525,
              "…": "1 more fields in the full response"
            }
          },
          {
            "node": {
              "__typename": "GraphVideo",
              "accessibility_caption": null,
              "clips_music_attribution_info": {
                "artist_name": "THE 8, Vernon",
                "audio_id": "2059878424601687",
                "should_mute_audio": false,
                "should_mute_audio_reason": "",
                "song_name": "singasong",
                "uses_original_audio": false
              },
              "coauthor_producers": [],
              "comments_disabled": false,
              "dash_info": {
                "is_dash_eligible": false,
                "number_of_qualities": 0,
                "video_dash_manifest": null
              },
              "dimensions": {
                "height": 1920,
                "width": 1080
              },
              "display_url": "https://instagram.ftrn5-2.fna.fbcdn.net/v/t51.82787-15/830434625_18798675220001321_2218595363940657891_n.jpg?stp=dst-jpg_e15_fr_p1080x1080_tt6&_nc_ht=instagram.ftrn5-2.fna.fbcdn.net&_nc_cat=1&_nc_oc=Q6cZ2gGghw-uITAenqrq_uZiJrBd1kR4pdAuy2kyrh1vAa01qSRdACbWXI5eY29K9Tc5R3c&_nc_ohc=uh7oFPO_zWsQ7kNvwEDTn…",
              "edge_liked_by": {
                "count": 785049
              },
              "edge_media_preview_like": {
                "count": 785049
              },
              "edge_media_to_caption": {
                "edges": [
                  "…"
                ]
              },
              "edge_media_to_comment": {
                "count": 10492
              },
              "edge_media_to_tagged_user": {
                "edges": [
                  "…",
                  "…",
                  "… 3 more items in the full response"
                ]
              },
              "fact_check_information": null,
              "fact_check_overall_rating": null,
              "felix_profile_grid_crop": null,
              "gating_info": null,
              "has_audio": true,
              "has_upcoming_event": false,
              "id": "3997798548002238943",
              "is_video": true,
              "like_and_view_counts_disabled": false,
              "location": null,
              "media_overlay_info": null,
              "media_preview": "ABgquW0ZU7zwDkD39z/Sr4PNRsVZdy4YcDiozLsbGMD3NPYW5U1GHLow/i+U/XtRU0t4r/IADz1P8x/jRSGhtptSAkDALA/Xkdu1R3Um8E/d7VlQzt5bbj3HbnAHH4elDyDy1RTkHn+fr3FADg2w5zzjp3oqusyldrDnPGO3+elFIByoWhZuhJP6dqikiKxryWP8geauN92on+6PpVAVPLLc98E/iOgoq2vSikB//9k=",
              "nft_asset_info": null,
              "owner": {
                "id": "25025320",
                "username": "instagram"
              },
              "pinned_for_users": [],
              "product_type": "clips",
              "profile_grid_thumbnail_fitting_style": "UNSET",
              "sharing_friction_info": {
                "bloks_app_url": null,
                "should_have_sharing_friction": false
              },
              "shortcode": "Dd7CJkhPvHf",
              "taken_at_timestamp": 1790795094,
              "tall_profile_grid_crop": {
                "crop_bottom": 1,
                "crop_left": 0,
                "crop_right": 1,
                "crop_top": 0.25072463768115943
              },
              "thumbnail_resources": [
                {
                  "config_height": 150,
                  "config_width": 150,
                  "src": "https://instagram.ftrn5-2.fna.fbcdn.net/v/t51.82787-15/830434625_18798675220001321_2218595363940657891_n.jpg?stp=c0.420.1080.1080a_dst-jpg_e15_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6ImltYWdlX3VybGdlbi4xMDgwLnNkci52aWRlb19kZWZhdWx0X2NvdmVyX2ZyYW1lLmMyIn0&_nc_ht=instagram.ftrn5-2.fna.fbcdn.net&_nc_cat=1…"
                },
                {
                  "config_height": 240,
                  "config_width": 240,
                  "src": "https://instagram.ftrn5-2.fna.fbcdn.net/v/t51.82787-15/830434625_18798675220001321_2218595363940657891_n.jpg?stp=c0.420.1080.1080a_dst-jpg_e15_s240x240_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6ImltYWdlX3VybGdlbi4xMDgwLnNkci52aWRlb19kZWZhdWx0X2NvdmVyX2ZyYW1lLmMyIn0&_nc_ht=instagram.ftrn5-2.fna.fbcdn.net&_nc_cat=1…"
                },
                "… 3 more items in the full response"
              ],
              "thumbnail_src": "https://instagram.ftrn5-2.fna.fbcdn.net/v/t51.82787-15/830434625_18798675220001321_2218595363940657891_n.jpg?stp=c0.420.1080.1080a_dst-jpg_e35_s640x640_sh2.08_tt6&_nc_ht=instagram.ftrn5-2.fna.fbcdn.net&_nc_cat=1&_nc_oc=Q6cZ2gGghw-uITAenqrq_uZiJrBd1kR4pdAuy2kyrh1vAa01qSRdACbWXI5eY29K9Tc5R3c&_nc_ohc=u…",
              "thumbnail_tall_src": "https://instagram.ftrn5-2.fna.fbcdn.net/v/t51.82787-15/830434625_18798675220001321_2218595363940657891_n.jpg?stp=dst-jpg_e35_p640x640_sh2.08_tt6&_nc_ht=instagram.ftrn5-2.fna.fbcdn.net&_nc_cat=1&_nc_oc=Q6cZ2gGghw-uITAenqrq_uZiJrBd1kR4pdAuy2kyrh1vAa01qSRdACbWXI5eY29K9Tc5R3c&_nc_ohc=uh7oFPO_zWsQ7kNvwED…",
              "tracking_token": "eyJ2ZXJzaW9uIjo1LCJwYXlsb2FkIjp7ImlzX2FuYWx5dGljc190cmFja2VkIjp0cnVlLCJ1dWlkIjoiNWRiNTdkNGQ1M2NmNGUwY2IyY2UzZDFjMjE1NzQyYWUzOTk3Nzk4NTQ4MDAyMjM4OTQzIn0sInNpZ25hdHVyZSI6IiJ9",
              "video_url": "https://instagram.ftrn5-2.fna.fbcdn.net/o1/v/t2/f2/m86/AQOXIkIK55DzAi2_DogPBk6_wrFDq3NlAAmqrvawi52g7mxe5kqFrQwSNR_rZc8vWAtbyKzIR4K9CHxAhzKfICYK_a3sydtZtRnmDE4.mp4?_nc_cat=106&_nc_oc=AdrFNsP31zGHi93LpeQomtKLubwNg9dwxjEYFy3S0cKlBbzsVNCg6vgrs3iYYD4BaHU&_nc_sid=5e9851&_nc_ht=instagram.ftrn5-2.fna.fbcdn.…",
              "video_view_count": 26320870,
              "…": "1 more fields in the full response"
            }
          },
          "… 10 more items in the full response"
        ]
      },
      "eimu_id": "117943452927407",
      "external_url": "http://help.instagram.com/",
      "external_url_linkshimmed": "https://l.instagram.com/?u=http%3A%2F%2Fhelp.instagram.com%2F&e=AUBaSRUg0YuztdTXrbHjn0XTY6O2AWrZfdrj0luOTYiFBeJ7_Z1nx8RdhI9JpIcQy7oUaZj5bW7jhRvGJ0PKHyxUMYhBjgMn",
      "fb_profile_biolink": null,
      "fbid": "17841400039600391",
      "followed_by_viewer": false,
      "follows_viewer": false,
      "full_name": "Instagram",
      "group_metadata": null,
      "guardian_id": null,
      "has_ar_effects": false,
      "has_blocked_viewer": false,
      "has_channel": false,
      "has_clips": true,
      "has_guides": false,
      "has_onboarded_to_text_post_app": false,
      "has_requested_viewer": false,
      "hide_like_and_view_counts": false,
      "highlight_reel_count": 11,
      "id": "25025320",
      "is_business_account": false,
      "is_embeds_disabled": false,
      "is_guardian_of_viewer": false,
      "…": "24 more fields in the full response"
    }
  }
]

範例

選擇一個範例,將其輸入與結果載入 playground。

API README

Instagram User Data by Username (V2) API

Returns profile details and recent timeline media for one public Instagram account. It needs the account handle in username.

Use cases

  • Read follower and following counts for a creator before outreach.
  • Collect the links in a brand's bio and check where they point.
  • Pull recent timeline posts for an account and read their media type, size, and like counts.
  • Check whether an account is a business account and whether it has Reels or highlights.

Request

curl -X POST "https://api.sandbase.ai/v1/api/instagram/v1/user-info-by-username-v2" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"username": "instagram"}'

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

Parameters

NameTypeRequiredDescription
usernamestringYesInstagram username

Example response

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

{
  "ai_agent_owner_username": null,
  "attempts": "0",
  "bio_links": [
    {
      "link_type": "external",
      "lynx_url": "https://l.instagram.com/?u=http%3A%2F%2Fhelp.instagram.com%2F&e=AUCzbng6B4XEbKuk…",
      "title": "",
      "url": "http://help.instagram.com"
    }
  ],
  "biography": "Discover what's new on Instagram 🔎✨",
  "biography_with_entities": {
    "entities": [],
    "raw_text": "Discover what's new on Instagram 🔎✨"
  },
  "blocked_by_viewer": false,
  "business_address_json": null,
  "business_category_name": null,
  "business_contact_method": "UNKNOWN",
  "business_email": null,
  "business_phone_number": null,
  "category_enum": null
}

Response fields

FieldMeaning
id / fbidNumeric IDs for the account. Use id with APIs that take a user ID.
full_name / biographyThe display name and the bio text of the account.
bio_links[].url / bio_links[].titleEach link listed in the bio, with its label. lynx_url holds the Instagram redirect version of the same link.
external_urlThe main website link shown on the profile.
edge_followed_by.count / edge_follow.countNumber of followers and number of accounts the user follows.
edge_owner_to_timeline_media.countTotal number of posts on the timeline.
edge_owner_to_timeline_media.edges[].node.__typenamePost type, such as GraphVideo or GraphSidecar (a multi-item post).
edge_owner_to_timeline_media.edges[].node.display_urlLink to the main image or video cover for the post.
edge_owner_to_timeline_media.edges[].node.edge_liked_by.countLike count for the post. Some nodes do not include it.
edge_owner_to_timeline_media.edges[].node.coauthor_producers[].usernameAccounts credited as co-authors of the post.

Notes

  • Pass the handle without the @ sign, for example instagram.
  • edge_owner_to_timeline_media.edges holds only a few recent posts. This API has no pagination parameter.
  • Call Instagram User Posts (V1) to list more posts for the account.
  • Call Instagram User Profile by ID if you already have the numeric id.

Pricing

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

探索更多

相關 APIs

所有 APIs
API價格回應
Instagram每次呼叫 $0.001JSON
Instagram每次呼叫 $0.001JSON
Instagram每次呼叫 $0.001JSON
Instagram每次呼叫 $0.001JSON
Instagram每次呼叫 $0.001JSON
Instagram每次呼叫 $0.001JSON

指南:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared

問題

常見問題

我要如何使用 Instagram User Data by Username (V2) API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/instagram/v1/user-info-by-username-v2。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

Instagram User Data by Username (V2) API 的費用是多少?

每次 $0.001,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

Instagram User Data by Username (V2) API 接受哪些參數?

必要:username (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Instagram User Data by Username (V2) API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 Instagram 開發者帳號或 API 金鑰嗎?

不需要。Instagram User Data by Username (V2) 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Instagram API 存取權。