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 Posts (V1)

Tài liệu API
https://api.sandbase.ai/v1/api/instagram/v1/user-posts

Returns a paginated list of posts for a specified Instagram account. Results include captions, like counts, comment counts, and media details.

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
100 lượt gọi miễn phí / ngày100 lượt gọi đầu tiên mỗi ngày miễn phí (chia sẻ theo tổ chức) · Đặt lại lúc 00:00 UTC. Sau đó tính phí theo mỗi lượt gọi.

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 raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

Instagram User Posts (V1) API

Returns a paginated list of posts for one Instagram account. You send the numeric user_id of the account. Each item includes the post code, caption data, comment_count, and media details such as carousel items and clip metadata.

Use cases

  • Build a media feed for an Instagram account inside another app.
  • Track comment_count across an account's recent posts to compare engagement.
  • Collect accessibility captions and carousel media IDs to catalog an account's images.
  • Page back through an account's history with next_max_id to archive its posts.

Request

curl -X POST "https://api.sandbase.ai/v1/api/instagram/v1/user-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
max_idstringNoPagination 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": "79",
  "items": [
    {
      "are_remixes_crosspostable": true,
      "boost_unavailable_identifier": null,
      "boost_unavailable_reason": null,
      "boost_unavailable_reason_v2": null,
      "can_see_insights_as_brand": false,
      "can_viewer_reshare": true,
      "can_viewer_save": true,
      "caption": {
        "bit_flags": 0,
        "content_type": "comment",
        "created_at": 1793647551,
        "created_at_utc": 1793647551,
        "did_report_as_spam": false,
        "is_covered": false,
        "is_ranked_comment": false,
        "media_id": 4021726163100932870
      },
      "caption_is_edited": false,
      "client_cache_key": "NDAyMTcyNjE2MzEwMDkzMjg3MA==.3",
      "clips_metadata": {
        "achievements_info": {
          "num_earned_achievements": null,
          "show_achievements": false
        },
        "additional_audio_info": {
          "additional_audio_username": null,
          "audio_reattribution_info": {
            "should_allow_restore": false
          }
        },
        "asset_recommendation_info": null,
        "audio_ranking_info": {
          "best_audio_cluster_id": "1079281138448348"
        },
        "audio_type": "original_sounds",
        "basel_template_info_for_ig_app": {
          "is_basel_template": null,
          "original_template_media_id": null,
          "should_show_reuse_setting_for_owner": false,
          "use_template_deeplink": null
        },
        "branded_content_tag_info": {
          "can_add_tag": false
        },
        "breaking_content_info": null
      },
      "clips_tab_pinned_user_ids": []
    }
  ],
  "more_available": true,
  "next_max_id": "4007127383642387898_25025320"
}

Response fields

FieldMeaning
items[]List of posts for the account. Each entry is one post, which can be a single video, a clip, or a carousel.
items[].codeShort post code, for example DfQCqMnhpsG. It is the shortcode used in Instagram post links.
items[].comment_countNumber of comments on the post.
items[].caption.created_at / items[].caption.created_at_utcUnix timestamp in seconds for when the caption was created. In the sample both values are equal.
items[].caption.media_idNumeric ID of the media that the caption belongs to.
items[].accessibility_captionText description of the image. It appears on image posts and carousel items, not on every post.
items[].carousel_media[]Child items of a carousel post. Each one has its own caption, carousel_parent_id, and commerciality_status.
items[].carousel_media_countNumber of items in the carousel post.
items[].coauthor_producers[]Accounts that co-author the post. Each entry has full_name, pk, is_verified, and is_private.
items[].clips_metadata.audio_typeType of audio on a clip, for example original_sounds.
more_availabletrue when more posts can be fetched after this page.
next_max_idCursor for the next page. Pass it as max_id in the next request.

Notes

  • Pass next_max_id from the response as max_id to get the next page. Stop when more_available is false.
  • count sets the page size from 1 to 50. The default is 12.
  • user_id is the numeric Instagram account ID. Get it from Instagram User Info by Username if you only have a username.
  • Post fields vary by type. Clips include clips_metadata, and carousels include carousel_media. To read one 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 Posts (V1)?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/instagram/v1/user-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 Posts (V1) có giá bao nhiêu?

$0.001 mỗi lần gọi. Mỗi tổ chức được 100 lần gọi miễn phí mỗi ngày UTC, dùng chung cho các API SandBase đủ điều kiện, bao gồm API này; sau đó mỗi lần gọi sẽ được tính theo mức giá này từ số dư SandBase của bạn. Không có gói đăng ký.

API Instagram User 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à max_id (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Instagram User 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 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.