Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Instagram User Tagged Posts (V1)

Tài liệu 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.

Giá
$0.001USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 2 tùy chọn

Phòng thử nghiệm

Đầu vào
Instagram user ID
150
Count per page, default 12 Phạm vi: 1 đến 50.
Pagination cursor, omit for first request
Đầu raVí dụ
Phản hồioutputs · 9.2 KB · 142 dòng
[
  {
    "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"
    }
  }
]

Ví dụ

Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.

README API

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.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Instagram$0.001 mỗi lần gọiJSON
Instagram$0.001 mỗi lần gọiJSON
Instagram$0.001 mỗi lần gọiJSON
Instagram$0.001 mỗi lần gọiJSON
Instagram$0.001 mỗi lần gọiJSON
Instagram$0.001 mỗi lần gọiJSON

Hướng dẫn:Instagram API cost: official limits and per-call pricesBest Instagram API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API Instagram User Tagged Posts (V1)?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/instagram/v1/user-tagged-posts với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Instagram User Tagged Posts (V1) có giá bao nhiêu?

$0.001 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Instagram User Tagged Posts (V1) chấp nhận những tham số nào?

Bắt buộc: user_id (string). Tùy chọn: count (integer) và end_cursor (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Instagram User Tagged Posts (V1) trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của Instagram không?

Không. Instagram User Tagged Posts (V1) chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Instagram.