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

Instagram User Tagged Posts (V1)

API 文件
https://api.sandbase.ai/v1/api/instagram/v1/user-tagged-posts

Returns posts where a specific user is tagged by other accounts. Supports result limits and pagination through a cursor parameter.

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

Playground

輸入
Instagram user ID
150
Count per page, default 12 範圍:1 到 50。
Pagination cursor, omit for first request
輸出範例
回應outputs · 9.2 KB · 142 行
[
  {
    "data": {
      "attempts": "661",
      "data": {
        "user": {
          "edge_user_to_photos_of_you": {
            "count": 11,
            "edges": [
              {
                "node": {
                  "__typename": "GraphImage",
                  "accessibility_caption": "Photo by LUCAS RAMOS MENDES ® in Florianópolis, Santa Catarina with @instagram, @faber_castell_br, and @rosiane_v_mendes. Keterangan foto tidak tersedia..",
                  "comments_disabled": false,
                  "dimensions": {
                    "height": 1350,
                    "width": 1080
                  },
                  "display_url": "https://scontent-phl2-1.cdninstagram.com/v/t51.82787-15/621585839_18092087866989349_3372003390585135619_n.jpg?stp=dst-jpg_e35_p1080x1080_sh2.08_tt6&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_cat=101&_nc_oc=Q6cZ2gE0SQ40YuMyPe0crBi7H0wlTSofnpm-ZyWksW_7zavDISDy0SVQllG9ca0QM_wx_m4&_nc_ohc=Mok1nYIqCzUQ7kNvwFxKhMX&_nc_gid=nbLalkOFcyGZKYGhusVtiw&edm=ALdeuSgBAAAA&ccb=7-5&ig_cache_key=MjI1MTEzODY5NjI2NjEyNzE1Mg%3D%3D.3-ccb7-5&oh=00_AQMXx3kXfhC06TjejdJlcSSvnWdv8xPx_uh6PtEPZ7T0nw&oe=6ACAA87C&_nc_sid=9fa07d",
                  "edge_liked_by": {
                    "count": 149724
                  },
                  "edge_media_preview_like": {
                    "count": 149724
                  },
                  "edge_media_to_caption": {
                    "edges": [
                      {
                        "node": {
                          "text": "Uma homenagem a rede social que contribui muito para divulgação do meu trabalho.\n.\nO Instagram tem sido para mim muito mais que uma simples rede social; essa plataforma que além de criar uma conexão com pessoas que queremos por perto, tem ajudado assim como eu  milhões de pessoas a divulgar o seu negócio.\nEssa poderosa Midia social, gerou milhares de empregos, e continua dando a oportunidade para todos os que desejam divulgar o que fazem de melhor.\n.\n.\n\nA tribute to the social network that contributes a lot to spread my work. . For me, Instagram has been much more than just a social network; t…"
                        }
                      }
                    ]
                  },
                  "edge_media_to_comment": {
                    "count": 10252
                  },
                  "has_upcoming_event": false,
                  "id": "2251138696266127152",
                  "is_video": false,
                  "owner": {
                    "id": "3021079942",
                    "username": "lucasramosmendes"
                  },
                  "shortcode": "B89prebFBcw",
                  "taken_at_timestamp": 1582576666,
                  "thumbnail_src": "https://scontent-phl2-1.cdninstagram.com/v/t51.82787-15/621585839_18092087866989349_3372003390585135619_n.jpg?stp=c0.180.1440.1440a_dst-jpg_e35_s640x640_sh2.08_tt6&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_cat=101&_nc_oc=Q6cZ2gE0SQ40YuMyPe0crBi7H0wlTSofnpm-ZyWksW_7zavDISDy0SVQllG9ca0QM_wx_m4&_nc_ohc=Mok1nYIqCzUQ7kNvwFxKhMX&_nc_gid=nbLalkOFcyGZKYGhusVtiw&edm=ALdeuSgBAAAA&ccb=7-5&ig_cache_key=MjI1MTEzODY5NjI2NjEyNzE1Mg%3D%3D.3.c-ccb7-5&oh=00_AQPM5JXzB_w5PjiK8FJKtPtIRqw-5NQxgqWWvE1Yn7Hydg&oe=6ACAA87C&_nc_sid=9fa07d"
                }
              },
              {
                "node": {
                  "__typename": "GraphImage",
                  "accessibility_caption": "Photo by Marie Saba in Austin, Texas with @instagram. Keterangan foto tidak tersedia..",
                  "comments_disabled": false,
                  "dimensions": {
                    "height": 1080,
                    "width": 1080
                  },
                  "display_url": "https://scontent-phl2-1.cdninstagram.com/v/t51.82787-15/639718058_18563356933006799_7810905984243737895_n.jpg?stp=dst-jpg_e15_tt6&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_cat=111&_nc_oc=Q6cZ2gE0SQ40YuMyPe0crBi7H0wlTSofnpm-ZyWksW_7zavDISDy0SVQllG9ca0QM_wx_m4&_nc_ohc=HgXIWwzcT9wQ7kNvwGaWdV9&_nc_gid=nbLalkOFcyGZKYGhusVtiw&edm=ALdeuSgBAAAA&ccb=7-5&ig_cache_key=MTYxMzI4MzAwMDYzNjYzODE4MA%3D%3D.3-ccb7-5&oh=00_AQN4rGiT4vcG3QF7AW_8ejIRatTelhueMWvwWG_XuH_3fg&oe=6ACAA90B&_nc_sid=9fa07d",
                  "edge_liked_by": {
                    "count": 121803
                  },
                  "edge_media_preview_like": {
                    "count": 121803
                  },
                  "edge_media_to_caption": {
                    "edges": [
                      {
                        "node": {
                          "text": "Watercolor pie of the day featuring the @instagram logo 🎨 This was probably the most difficult pie to date ... getting those shapes even and colors blended was definitely a challenge ... but it was still fun! It's always fun 😊 What should I put on a pie next? Would love your suggestions! ✨ Also, if you have questions about pies, pie crusts, decorating a pie, or watercoloring decorations, please leave those in the comments. I'll include all the answers in an upcoming blog and video. Thank you for following along and sharing the pies on your own feeds! I hope lots of you make bright, beautiful…"
                        }
                      }
                    ]
                  },
                  "edge_media_to_comment": {
                    "count": 4993
                  },
                  "has_upcoming_event": false,
                  "id": "1613283000636638180",
                  "is_video": false,
                  "owner": {
                    "id": "14814182",
                    "username": "mariesaba"
                  },
                  "shortcode": "BZjiFdvH4Pk",
                  "taken_at_timestamp": 1506538342,
                  "thumbnail_src": "https://scontent-phl2-1.cdninstagram.com/v/t51.82787-15/639718058_18563356933006799_7810905984243737895_n.jpg?stp=dst-jpg_e15_s640x640_tt6&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_cat=111&_nc_oc=Q6cZ2gE0SQ40YuMyPe0crBi7H0wlTSofnpm-ZyWksW_7zavDISDy0SVQllG9ca0QM_wx_m4&_nc_ohc=HgXIWwzcT9wQ7kNvwGaWdV9&_nc_gid=nbLalkOFcyGZKYGhusVtiw&edm=ALdeuSgBAAAA&ccb=7-5&ig_cache_key=MTYxMzI4MzAwMDYzNjYzODE4MA%3D%3D.3-ccb7-5&oh=00_AQNX8cKIv1OaluTWq3Vb60qLJPYI5zwAzfBwrnsQoxXPCg&oe=6ACAA90B&_nc_sid=9fa07d"
                }
              },
              {
                "node": {
                  "__typename": "GraphImage",
                  "accessibility_caption": "Photo shared by Dimas Adila Putra on March 22, 2015 tagging @instagram. Keterangan foto tidak tersedia..",
                  "comments_disabled": false,
                  "dimensions": {
                    "height": 640,
                    "width": 640
                  },
                  "display_url": "https://scontent-phl2-1.cdninstagram.com/v/t51.82787-15/618227312_18554624863036928_2206315935492678337_n.jpg?stp=dst-jpg_e15_tt6&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_cat=108&_nc_oc=Q6cZ2gE0SQ40YuMyPe0crBi7H0wlTSofnpm-ZyWksW_7zavDISDy0SVQllG9ca0QM_wx_m4&_nc_ohc=Sh1xDAlQAdMQ7kNvwFgGClC&_nc_gid=nbLalkOFcyGZKYGhusVtiw&edm=ALdeuSgBAAAA&ccb=7-5&ig_cache_key=OTQ2ODE5OTA0ODU3NTA2NDg1.3-ccb7-5&oh=00_AQP2CictvUhPtTiLXc1aXY_ko_H1GWBkSXoYY5EYWRgZHA&oe=6ACAA9E6&_nc_sid=9fa07d",
                  "edge_liked_by": {
                    "count": 134833
                  },
                  "edge_media_preview_like": {
                    "count": 134833
                  },
                  "edge_media_to_caption": {
                    "edges": [
                      {
                        "node": {
                          "text": "Dear @instagram it was great to be able to join in your big event #wwim11 It was my first wwim to be honest. More than connecting people, travelling, or capturing moments, that was about togetherness and happiness. \nThat's an IG logo that we've create using our phone as a device to capture and share moment, mostly. -\n-\n-\n-\nTerima Kasih @instagram"
                        }
                      }
                    ]
                  },
                  "edge_media_to_comment": {
                    "count": 5210
                  },
                  "has_upcoming_event": false,
                  "id": "946819904857506485",
                  "is_video": false,
                  "owner": {
                    "id": "261284927",
                    "username": "dimazadila"
                  },
                  "shortcode": "0jx6_fTQK1",
                  "taken_at_timestamp": 1427089749,
                  "thumbnail_src": "https://scontent-phl2-1.cdninstagram.com/v/t51.82787-15/618227312_18554624863036928_2206315935492678337_n.jpg?stp=dst-jpg_e15_tt6&_nc_ht=scontent-phl2-1.cdninstagram.com&_nc_cat=108&_nc_oc=Q6cZ2gE0SQ40YuMyPe0crBi7H0wlTSofnpm-ZyWksW_7zavDISDy0SVQllG9ca0QM_wx_m4&_nc_ohc=Sh1xDAlQAdMQ7kNvwFgGClC&_nc_gid=nbLalkOFcyGZKYGhusVtiw&edm=ALdeuSgBAAAA&ccb=7-5&ig_cache_key=OTQ2ODE5OTA0ODU3NTA2NDg1.3-ccb7-5&oh=00_AQP2CictvUhPtTiLXc1aXY_ko_H1GWBkSXoYY5EYWRgZHA&oe=6ACAA9E6&_nc_sid=9fa07d"
                }
              },
              "… 8 more items in the full response"
            ],
            "page_info": {
              "end_cursor": "QVFBQUtlNlpnYnZkTnN3M1FwbjlXQUowQ0hOdTIwY0x5cmhCbFZYaVpLcWZGdjFoRDh1RXVqeFdhOVBGd24wTUpFUGFJWUtNbXNCTmloSHMzR1B1a0Zucw==",
              "has_next_page": true
            }
          }
        }
      },
      "status": "ok"
    }
  }
]

範例

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

API README

Instagram User Tagged Posts (V1) API

Returns posts where other accounts have tagged a given Instagram user. It needs the numeric Instagram user_id and returns one page of tagged posts with a cursor for the next page.

Use cases

  • Collect photos that fans and customers post with a brand account tagged.
  • Show community posts that feature a creator on a campaign or press page.
  • Rank tagged posts by like count to find the most visible user-generated content.
  • Read the location and co-tagged accounts in photo captions to see where and with whom people tag a profile.

Request

curl -X POST "https://api.sandbase.ai/v1/api/instagram/v1/user-tagged-posts" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"user_id": "25025320"}'

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

Parameters

NameTypeRequiredDescription
user_idstringYesInstagram user ID
countintegerNoCount per page, default 12
end_cursorstringNoPagination cursor, omit for first request

Example response

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

{
  "attempts": "71",
  "data": {
    "user": {
      "edge_user_to_photos_of_you": {
        "count": 11,
        "edges": [
          {
            "node": {
              "__typename": "GraphImage",
              "accessibility_caption": "Photo by LUCAS RAMOS MENDES ® in Florianópolis, Santa Catarina with @instagram, …",
              "comments_disabled": false,
              "dimensions": {
                "height": 1350,
                "width": 1080
              },
              "display_url": "https://instagram.fbcn2-1.fna.fbcdn.net/v/t51.82787-15/621585839_180920878669893…",
              "edge_liked_by": {
                "count": 149572
              },
              "edge_media_preview_like": {
                "count": 149572
              },
              "edge_media_to_caption": {
                "edges": [
                  {
                    "node": {}
                  }
                ]
              }
            }
          }
        ],
        "page_info": {
          "end_cursor": "QVFCekpXTUFkN1FrbV9HcnY5TkdlV0xSZlg0Q2lvOW5hQWd2djl5aG1EUWlpc0RfRUpIdmZIVjA1T2pJ…",
          "has_next_page": true
        }
      }
    }
  },
  "status": "ok"
}

Response fields

FieldMeaning
data.user.edge_user_to_photos_of_you.countTotal number of tagged posts reported for the user.
data.user.edge_user_to_photos_of_you.edges[].node.__typenameMedia type of the post. The sample shows GraphImage for photo posts.
data.user.edge_user_to_photos_of_you.edges[].node.accessibility_captionAuto-written description of the post. It often names the poster, the place, and the tagged accounts.
data.user.edge_user_to_photos_of_you.edges[].node.display_urlLink to the post image.
data.user.edge_user_to_photos_of_you.edges[].node.dimensions.height / data.user.edge_user_to_photos_of_you.edges[].node.dimensions.widthHeight and width of the image.
data.user.edge_user_to_photos_of_you.edges[].node.edge_liked_by.count / data.user.edge_user_to_photos_of_you.edges[].node.edge_media_preview_like.countNumber of likes on the post. Both fields hold the same value in the sample.
data.user.edge_user_to_photos_of_you.edges[].node.comments_disabledtrue when comments are turned off for the post.
data.user.edge_user_to_photos_of_you.edges[].node.edge_media_to_caption.edges[].node.textCaption text written by the poster. It can be missing or empty when the post has no caption.
data.user.edge_user_to_photos_of_you.page_info.end_cursorCursor to pass as end_cursor to get the next page.
data.user.edge_user_to_photos_of_you.page_info.has_next_pagetrue when more tagged posts are available.

Notes

  • Omit end_cursor on the first request. For the next page, send the page_info.end_cursor value from the last response and keep has_next_page as your stop check.
  • count sets the page size from 1 to 50. The default is 12.
  • user_id is the numeric Instagram ID, not the username. Use Instagram User Info by Username to look up the ID from a username.
  • To read a single tagged post in full, use Instagram Post Details by 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 Tagged Posts (V1) API?

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

Instagram User Tagged Posts (V1) API 的費用是多少?

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

Instagram User Tagged Posts (V1) API 接受哪些參數?

必要:user_id (string)。 選填:count (integer) 和 end_cursor (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Instagram User Tagged Posts (V1) API 會回傳什麼?

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

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

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