Using cURL

How to Scrape Instagram Profile Posts with cURL

Get posts from an Instagram profile using cURL. This comprehensive guide will walk you through the entire process, from setup to implementation.

Overview

What You'll Learn

  • Setting up your cURL environment
  • Installing the required HTTP client
  • Authenticating with SociaVault API
  • Making requests to Instagram
  • Handling responses and errors

What You'll Get

  • Access to posts data
  • JSON formatted responses
  • Real-time data access
  • Scalable solution
  • Error handling patterns

Prerequisites

1. API Key

First, you'll need a SociaVault API key to authenticate your requests.

2. Development Environment

Make sure you have the following installed:

  • cURL installed
  • A code editor (VS Code, Sublime, etc.)
  • Command line interface access

Implementation

Step 1: Install HTTP Client

We'll use curl to make HTTP requests.

bash
# No installation required on most systems

Step 2: API Implementation

Now let's make a request to the Instagram API using cURL. Replace YOUR_API_KEY with your actual API key.

curl
curl -X GET "https://api.sociavault.com/instagram/posts?handle=instagram" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json"

Testing Your Code

API Parameters

ParameterTypeRequiredDescription
handlestringYesExample: instagram

Expected Response

You should receive a structured JSON response containing the posts data.

json
{
  "num_results": 12,
  "more_available": true,
  "items": [
    {
      "pk": "3600545900919030401",
      "id": "3600545900919030401_260462810",
      "fbid": "18362930887133514",
      "device_timestamp": 1743438518281933,
      "caption_is_edited": false,
      "strong_id__": "3600545900919030401_260462810",
      "deleted_reason": 0,
      "has_shared_to_fb": 0,
      "has_delayed_metadata": false,
      "mezql_token": "",
      "share_count_disabled": false,
      "should_request_ads": false,
      "is_reshare_of_text_post_app_media_in_ig": false,
      "integrity_review_decision": "pending",
      "client_cache_key": "MzYwMDU0NTkwMDkxOTAzMDQwMQ==.3",
      "is_visual_reply_commenter_notice_enabled": true,
      "like_and_view_counts_disabled": false,
      "is_post_live_clips_media": false,
      "is_quiet_post": false,
      "profile_grid_thumbnail_fitting_style": "UNSET",
      "comment_threading_enabled": true,
      "is_unified_video": false,
      "commerciality_status": "not_commercial",
      "has_privately_liked": false,
      "filter_type": 0,
      "taken_at": 1743438570,
      "usertags": {
        "in": [
          {
            "position": [
              0
            ],
            "user": {
              "pk": "212690485",
              "pk_id": "212690485",
              "id": "212690485",
              "username": "danabeers",
              "full_name": "Dana Beers",
              "is_private": false,
              "strong_id__": "212690485",
              "is_verified": false,
              "profile_pic_id": "2989988489592932804_212690485",
              "profile_pic_url": "https://instagram.fcps3-1.fna.fbcdn.net/v/t51.2885-19/318474429_599920705227150_928609980618355333_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_ht=instagram.fcps3-1.fna.fbcdn.net&_nc_cat=106&_nc_oc=Q6cZ2QGkkhOhhuhe2gKjdC25XpoTh0oLgbcvOdFzsOI8KUKAOUyCVoZjtPOQERMK43ysUldXL4DA2XAqd_owFW2XI2pL&_nc_ohc=H0lCS7PRNvAQ7kNvgFXA75S&_nc_gid=SN-QnazVX0vPrGxNhTJbpA&edm=ACWDqb8BAAAA&ccb=7-5&oh=00_AYGujB22ITyWFJ2IJJj0RbJZ4eci7daC1XAPF9PjYiekJg&oe=67F08F1A&_nc_sid=ee9879"
            }
          }
        ]
      },
      "photo_of_you": false,
      "can_see_insights_as_brand": false,
      "media_type": 2,
      "code": "DH3tWudxIKB",
      "caption": {
        "bit_flags": 0,
        "created_at": 1743438572,
        "created_at_utc": 1743438572,
        "did_report_as_spam": false,
        "is_ranked_comment": false,
        "pk": "18362930947133514",
        "share_enabled": false,
        "content_type": "comment",
        "media_id": "3600545900919030401",
        "status": "Active",
        "type": 1,
        "user_id": "260462810",
        "strong_id__": "18362930947133514",
        "text": "Dana is neglecting a pretty important level of the food pyramid @danabeers @francisccellis",
        "user": {
          "pk": "260462810",
          "pk_id": "260462810",
          "id": "260462810",
          "username": "barstoolsports",
          "full_name": "Barstool Sports",
          "is_private": false,
          "is_unpublished": false,
          "strong_id__": "260462810",
          "fbid_v2": "17841401404304069",
          "is_verified": true,
          "profile_pic_id": "2231147078699318026_260462810",
          "profile_pic_url": "https://instagram.fcps3-1.fna.fbcdn.net/v/t51.2885-19/84158194_513031692653050_7931868730928136192_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_ht=instagram.fcps3-1.fna.fbcdn.net&_nc_cat=1&_nc_oc=Q6cZ2QGkkhOhhuhe2gKjdC25XpoTh0oLgbcvOdFzsOI8KUKAOUyCVoZjtPOQERMK43ysUldXL4DA2XAqd_owFW2XI2pL&_nc_ohc=cHJtbr8nvvMQ7kNvgG8KI0z&_nc_gid=SN-QnazVX0vPrGxNhTJbpA&edm=ACWDqb8BAAAA&ccb=7-5&oh=00_AYE-thied1POUY7OjMrTCxZ_xUJKYVQlZqNm52hKfkoL0w&oe=67F09134&_nc_sid=ee9879"
        },
        "is_covered": false,
        "private_reply_status": 0
      },
      "sharing_friction_info": {
        "should_have_sharing_friction": false
      },
      "play_count": 35499,
      "has_views_fetching": true,
      "ig_play_count": 35499,
      "display_uri": "https://instagram.fcps3-1.fna.fbcdn.net/v/t51.2885-15/487087476_18512111989046811_4084507776030554642_n.jpg?stp=c0.280.720.720a_dst-jpg_e15_tt6&_nc_ht=instagram.fcps3-1.fna.fbcdn.net&_nc_cat=103&_nc_oc=Q6cZ2QGkkhOhhuhe2gKjdC25XpoTh0oLgbcvOdFzsOI8KUKAOUyCVoZjtPOQERMK43ysUldXL4DA2XAqd_owFW2XI2pL&_nc_ohc=8g-Cax0RtvwQ7kNvgHeH6jX&_nc_gid=SN-QnazVX0vPrGxNhTJbpA&edm=ACWDqb8BAAAA&ccb=7-5&oh=00_AYGqFcLq5SSunfntHrnsPFkav_Suj3uhHLvrGRLxITVeQw&oe=67F08F96&_nc_sid=ee9879",
      "coauthor_producer_can_see_organic_insights": false,
      "is_in_profile_grid": false,
      "profile_grid_control_enabled": false,
      "media_cropping_info": {
        "four_by_three_crop": {
          "crop_left": 0,
          "crop_right": 1,
          "crop_top": 0.03597122302158274,
          "crop_bottom": 0.7856115107913669
        }
      },
      "user": {
        "fbid_v2": "17841401404304069",
        "feed_post_reshare_disabled": false,
        "full_name": "Barstool Sports",
        "id": "260462810",
        "is_private": false,
        "is_unpublished": false,
        "pk": "260462810",
        "pk_id": "260462810",
        "show_account_transparency_details": true,
        "strong_id__": "260462810",
        "third_party_downloads_enabled": 1,
        "username": "barstoolsports",
        "account_type": 2,
        "has_anonymous_profile_picture": false,
        "hd_profile_pic_url_info": {
          "height": 347,
          "url": "https://instagram.fcps3-1.fna.fbcdn.net/v/t51.2885-19/84158194_513031692653050_7931868730928136192_n.jpg?_nc_ht=instagram.fcps3-1.fna.fbcdn.net&_nc_cat=1&_nc_oc=Q6cZ2QGkkhOhhuhe2gKjdC25XpoTh0oLgbcvOdFzsOI8KUKAOUyCVoZjtPOQERMK43ysUldXL4DA2XAqd_owFW2XI2pL&_nc_ohc=cHJtbr8nvvMQ7kNvgG8KI0z&_nc_gid=SN-QnazVX0vPrGxNhTJbpA&edm=ACWDqb8BAAAA&ccb=7-5&oh=00_AYGbXeXAZwtXsl3IoEw72PyzVd7YkzEId35UPKfNdoAiOA&oe=67F09134&_nc_sid=ee9879",
          "width": 347
        },
        "hd_profile_pic_versions": [
          {
            "height": 320,
            "url": "https://instagram.fcps3-1.fna.fbcdn.net/v/t51.2885-19/84158194_513031692653050_7931868730928136192_n.jpg?stp=dst-jpg_s320x320_tt6&_nc_ht=instagram.fcps3-1.fna.fbcdn.net&_nc_cat=1&_nc_oc=Q6cZ2QGkkhOhhuhe2gKjdC25XpoTh0oLgbcvOdFzsOI8KUKAOUyCVoZjtPOQERMK43ysUldXL4DA2XAqd_owFW2XI2pL&_nc_ohc=cHJtbr8nvvMQ7kNvgG8KI0z&_nc_gid=SN-QnazVX0vPrGxNhTJbpA&edm=ACWDqb8BAAAA&ccb=7-5&oh=00_AYFEU7S9qsMwzziLrqnusGme7KSs-ji4YcuDMUhqTp-pdQ&oe=67F09134&_nc_sid=ee9879",
            "width": 320
          }
        ],
        "is_verified": true,
        "profile_pic_id": "2231147078699318026_260462810",
        "profile_pic_url": "https://instagram.fcps3-1.fna.fbcdn.net/v/t51.2885-19/84158194_513031692653050_7931868730928136192_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_ht=instagram.fcps3-1.fna.fbcdn.net&_nc_cat=1&_nc_oc=Q6cZ2QGkkhOhhuhe2gKjdC25XpoTh0oLgbcvOdFzsOI8KUKAOUyCVoZjtPOQERMK43ysUldXL4DA2XAqd_owFW2XI2pL&_nc_ohc=cHJtbr8nvvMQ7kNvgG8KI0z&_nc_gid=SN-QnazVX0vPrGxNhTJbpA&edm=ACWDqb8BAAAA&ccb=7-5&oh=00_AYE-thied1POUY7OjMrTCxZ_xUJKYVQlZqNm52hKfkoL0w&oe=67F09134&_nc_sid=ee9879",
        "transparency_product_enabled": false,
        "is_embeds_disabled": false
      },
      "owner": {
        "fbid_v2": "17841401404304069",
        "feed_post_reshare_disabled": false,
        "full_name": "Barstool Sports",
        "id": "260462810",
        "is_private": false,
        "is_unpublished": false,
        "pk": "260462810",
        "pk_id": "260462810",
        "show_account_transparency_details": true,
        "strong_id__": "260462810",
        "third_party_downloads_enabled": 1,
        "username": "barstoolsports",
        "account_type": 2,
        "can_see_quiet_post_attribution": true,
        "has_anonymous_profile_picture": false,
        "hd_profile_pic_url_info": {
          "height": 347,
          "url": "https://instagram.fcps3-1.fna.fbcdn.net/v/t51.2885-19/84158194_513031692653050_7931868730928136192_n.jpg?_nc_ht=instagram.fcps3-1.fna.fbcdn.net&_nc_cat=1&_nc_oc=Q6cZ2QGkkhOhhuhe2gKjdC25XpoTh0oLgbcvOdFzsOI8KUKAOUyCVoZjtPOQERMK43ysUldXL4DA2XAqd_owFW2XI2pL&_nc_ohc=cHJtbr8nvvMQ7kNvgG8KI0z&_nc_gid=SN-QnazVX0vPrGxNhTJbpA&edm=ACWDqb8BAAAA&ccb=7-5&oh=00_AYGbXeXAZwtXsl3IoEw72PyzVd7YkzEId35UPKfNdoAiOA&oe=67F09134&_nc_sid=ee9879",
          "width": 347
        },
        "hd_profile_pic_versions": [
          {
            "height": 320,
            "url": "https://instagram.fcps3-1.fna.fbcdn.net/v/t51.2885-19/84158194_513031692653050_7931868730928136192_n.jpg?stp=dst-jpg_s320x320_tt6&_nc_ht=instagram.fcps3-1.fna.fbcdn.net&_nc_cat=1&_nc_oc=Q6cZ2QGkkhOhhuhe2gKjdC25XpoTh0oLgbcvOdFzsOI8KUKAOUyCVoZjtPOQERMK43ysUldXL4DA2XAqd_owFW2XI2pL&_nc_ohc=cHJtbr8nvvMQ7kNvgG8KI0z&_nc_gid=SN-QnazVX0vPrGxNhTJbpA&edm=ACWDqb8BAAAA&ccb=7-5&oh=00_AYFEU7S9qsMwzziLrqnusGme7KSs-ji4YcuDMUhqTp-pdQ&oe=67F09134&_nc_sid=ee9879",
            "width": 320
          }
        ],
        "is_verified": true,
        "profile_pic_id": "2231147078699318026_260462810",
        "profile_pic_url": "https://instagram.fcps3-1.fna.fbcdn.net/v/t51.2885-19/84158194_513031692653050_7931868730928136192_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_ht=instagram.fcps3-1.fna.fbcdn.net&_nc_cat=1&_nc_oc=Q6cZ2QGkkhOhhuhe2gKjdC25XpoTh0oLgbcvOdFzsOI8KUKAOUyCVoZjtPOQERMK43ysUldXL4DA2XAqd_owFW2XI2pL&_nc_ohc=cHJtbr8nvvMQ7kNvgG8KI0z&_nc_gid=SN-QnazVX0vPrGxNhTJbpA&edm=ACWDqb8BAAAA&ccb=7-5&oh=00_AYE-thied1POUY7OjMrTCxZ_xUJKYVQlZqNm52hKfkoL0w&oe=67F09134&_nc_sid=ee9879",
        "transparency_product_enabled": false,
        "is_embeds_disabled": false
      },
      "image_versions2": {
        "candidates": [
          {
            "width": 720,
            "height": 1280,
            "url": "https://instagram.fcps3-1.fna.fbcdn.net/v/t51.2885-15/487087476_18512111989046811_4084507776030554642_n.jpg?stp=dst-jpg_e15_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6IkNMSVBTLmltYWdlX3VybGdlbi43MjB4MTI4MC5zZHIuZjc1NzYxLmRlZmF1bHRfY292ZXJfZnJhbWUifQ&_nc_ht=instagram.fcps3-1.fna.fbcdn.net&_nc_cat=103&_nc_oc=Q6cZ2QGkkhOhhuhe2gKjdC25XpoTh0oLgbcvOdFzsOI8KUKAOUyCVoZjtPOQERMK43ysUldXL4DA2XAqd_owFW2XI2pL&_nc_ohc=8g-Cax0RtvwQ7kNvgHeH6jX&_nc_gid=SN-QnazVX0vPrGxNhTJbpA&edm=ACWDqb8BAAAA&ccb=7-5&ig_cache_key=MzYwMDU0NTkwMDkxOTAzMDQwMQ%3D%3D.3-ccb7-5&oh=00_AYGBhv1Sb2MbaplLmQqWLMweKKZIHLCNithU6vuu7eTVBw&oe=67F08F96&_nc_sid=ee9879"
          }
        ],
        "additional_candidates": {
          "igtv_first_frame": {
            "width": 640,
            "height": 1136,
            "url": "https://instagram.fcps3-1.fna.fbcdn.net/v/t51.2885-15/487676201_1301004624302532_8271586767467241136_n.jpg?stp=dst-jpg_e15_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6IkNMSVBTLmltYWdlX3VybGdlbi42NDB4MTEzNi5zZHIuZjcxODc4LmFkZGl0aW9uYWxfY292ZXJfZnJhbWUifQ&_nc_ht=instagram.fcps3-1.fna.fbcdn.net&_nc_cat=100&_nc_oc=Q6cZ2QGkkhOhhuhe2gKjdC25XpoTh0oLgbcvOdFzsOI8KUKAOUyCVoZjtPOQERMK43ysUldXL4DA2XAqd_owFW2XI2pL&_nc_ohc=dSvD25R_BfUQ7kNvgFJ6Gju&_nc_gid=SN-QnazVX0vPrGxNhTJbpA&edm=ACWDqb8BAAAA&ccb=7-5&oh=00_AYEs34hm0EA8d6l1it-2L6U5fm9PglrAgGdaDi1ogz81mQ&oe=67F0B285&_nc_sid=ee9879"
          },
          "first_frame": {
            "width": 640,
            "height": 1136,
            "url": "https://instagram.fcps3-1.fna.fbcdn.net/v/t51.2885-15/487676201_1301004624302532_8271586767467241136_n.jpg?stp=dst-jpg_e15_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6IkNMSVBTLmltYWdlX3VybGdlbi42NDB4MTEzNi5zZHIuZjcxODc4LmFkZGl0aW9uYWxfY292ZXJfZnJhbWUifQ&_nc_ht=instagram.fcps3-1.fna.fbcdn.net&_nc_cat=100&_nc_oc=Q6cZ2QGkkhOhhuhe2gKjdC25XpoTh0oLgbcvOdFzsOI8KUKAOUyCVoZjtPOQERMK43ysUldXL4DA2XAqd_owFW2XI2pL&_nc_ohc=dSvD25R_BfUQ7kNvgFJ6Gju&_nc_gid=SN-QnazVX0vPrGxNhTJbpA&edm=ACWDqb8BAAAA&ccb=7-5&oh=00_AYEs34hm0EA8d6l1it-2L6U5fm9PglrAgGdaDi1ogz81mQ&oe=67F0B285&_nc_sid=ee9879"
          }
        },
        "scrubber_spritesheet_info_candidates": {
          "default": {
            "video_length": 76.717,
            "thumbnail_width": 100,
            "thumbnail_height": 178,
            "thumbnail_duration": 0.7306380952380952,
            "sprite_urls": [
              "https://instagram.fcps3-1.fna.fbcdn.net/v/t51.2885-15/487793384_587822330938532_7049470176872645937_n.jpg?_nc_ht=instagram.fcps3-1.fna.fbcdn.net&_nc_cat=108&_nc_oc=Q6cZ2QGkkhOhhuhe2gKjdC25XpoTh0oLgbcvOdFzsOI8KUKAOUyCVoZjtPOQERMK43ysUldXL4DA2XAqd_owFW2XI2pL&_nc_ohc=KnRdrsGznxAQ7kNvgHJi-5x&_nc_gid=SN-QnazVX0vPrGxNhTJbpA&edm=ACWDqb8BAAAA&ccb=7-5&oh=00_AYHAIbpqbAmXxvJLmrKjQyqNQAAgZPYgHq8rZBqaTWZmTg&oe=67F0A810&_nc_sid=ee9879"
            ],
            "thumbnails_per_row": 15,
            "total_thumbnail_num_per_sprite": 105,
            "max_thumbnails_per_sprite": 105,
            "sprite_width": 1500,
            "sprite_height": 1246,
            "rendered_width": 96,
            "file_size_kb": 303
          }
        }
      },
      "original_width": 720,
      "original_height": 1280,
      "is_artist_pick": false,
      "media_reposter_bottomsheet_enabled": false,
      "enable_media_notes_production": false,
      "product_type": "clips",
      "is_paid_partnership": false,
      "organic_tracking_token": "eyJ2ZXJzaW9uIjo1LCJwYXlsb2FkIjp7ImlzX2FuYWx5dGljc190cmFja2VkIjp0cnVlLCJ1dWlkIjoiOWI2MWIzN2JjYmViNDU2YzlkYjY5NDQzZTJhNTE3MWQzNjAwNTQ1OTAwOTE5MDMwNDAxIn0sInNpZ25hdHVyZSI6IiJ9",
      "is_third_party_downloads_eligible": true,
      "ig_media_sharing_disabled": false,
      "are_remixes_crosspostable": true,
      "subscribe_cta_visible": false,
      "is_cutout_sticker_allowed": false,
      "gen_ai_detection_method": {
        "detection_method": "NONE"
      },
      "fb_aggregated_like_count": 0,
      "fb_aggregated_comment_count": 0,
      "has_high_risk_gen_ai_inform_treatment": false,
      "open_carousel_show_follow_button": false,
      "is_tagged_media_shared_to_viewer_profile_grid": false,
      "should_show_author_pog_for_tagged_media_shared_to_profile_grid": false,
      "is_eligible_for_media_note_recs_nux": false,
      "is_social_ufi_disabled": false,
      "is_eligible_for_meta_ai_share": true,
      "can_reply": false,
      "is_eligible_content_for_post_roll_ad": false,
      "is_open_to_public_submission": false,
      "can_view_more_preview_comments": false,
      "comment_count": 12,
      "hide_view_all_comment_entrypoint": false,
      "inline_composer_display_condition": "impression_trigger",
      "is_comments_gif_composer_enabled": true,
      "comment_inform_treatment": {
        "should_have_inform_treatment": false,
        "text": ""
      },
      "has_liked": false,
      "like_count": 387,
      "video_sticker_locales": [
        "en"
      ],
      "is_dash_eligible": 1,
      "number_of_qualities": 3,
      "video_versions": [
        {
          "height": 853,
          "type": 101,
          "url": "https://instagram.fcps3-1.fna.fbcdn.net/o1/v/t16/f2/m86/AQOuysx_TlOyB645kaTBD2015jKy3wl-Ib7HAikfIUB9KF1UD-8levUEpgQYBbWly2Z1XAzM1KTExlC77o9kTz12TJgDfklLEWRzCXI.mp4?stp=dst-mp4&efg=eyJxZV9ncm91cHMiOiJbXCJpZ193ZWJfZGVsaXZlcnlfdnRzX290ZlwiXSIsInZlbmNvZGVfdGFnIjoidnRzX3ZvZF91cmxnZW4uY2xpcHMuYzIuNzIwLmJhc2VsaW5lIn0&_nc_cat=111&vs=1177739773351722_966259887&_nc_vs=HBksFQIYUmlnX3hwdl9yZWVsc19wZXJtYW5lbnRfc3JfcHJvZC9FNDRCOTJGMEY1OUQzMkNCREE1RTEwNDIzMTBBN0I4RV92aWRlb19kYXNoaW5pdC5tcDQVAALIAQAVAhg6cGFzc3Rocm91Z2hfZXZlcnN0b3JlL0dPWGM5Undqd1BXc3dpVUhBRXNvczdrZkpzTm1icV9FQUFBRhUCAsgBACgAGAAbABUAACbE6eXr6qDMPxUCKAJDMywXQFMnjU%2FfO2QYEmRhc2hfYmFzZWxpbmVfMV92MREAdf4HAA%3D%3D&ccb=9-4&oh=00_AYEvV59EXWzejKnARyETMbkJLSpqYLvyYtjSXydlW1hWvQ&oe=67ECBBBF&_nc_sid=ee9879",
          "width": 480
        }
      ],
      "video_duration": 76.717,
      "has_audio": true,
      "clips_metadata": {
        "clips_creation_entry_point": "feed",
        "is_public_chat_welcome_video": false,
        "is_shared_to_fb": false,
        "professional_clips_upsell_type": 0,
        "achievements_info": {
          "show_achievements": false
        },
        "additional_audio_info": {
          "audio_reattribution_info": {
            "should_allow_restore": false
          }
        },
        "audio_ranking_info": {
          "best_audio_cluster_id": "1023190293029530"
        },
        "audio_type": "original_sounds",
        "branded_content_tag_info": {
          "can_add_tag": false
        },
        "content_appreciation_info": {
          "enabled": false
        },
        "disable_use_in_clips_client_cache": false,
        "music_canonical_id": "18517680835008140",
        "original_sound_info": {
          "allow_creator_to_rename": true,
          "audio_asset_id": "637972945749202",
          "can_remix_be_shared_to_fb": false,
          "can_remix_be_shared_to_fb_expansion": false,
          "duration_in_ms": 76717,
          "hide_remixing": true,
          "ig_artist": {
            "pk": "260462810",
            "pk_id": "260462810",
            "id": "260462810",
            "username": "barstoolsports",
            "full_name": "Barstool Sports",
            "is_private": false,
            "strong_id__": "260462810",
            "is_verified": true,
            "profile_pic_id": "2231147078699318026_260462810",
            "profile_pic_url": "https://instagram.fcps3-1.fna.fbcdn.net/v/t51.2885-19/84158194_513031692653050_7931868730928136192_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_ht=instagram.fcps3-1.fna.fbcdn.net&_nc_cat=1&_nc_oc=Q6cZ2QGkkhOhhuhe2gKjdC25XpoTh0oLgbcvOdFzsOI8KUKAOUyCVoZjtPOQERMK43ysUldXL4DA2XAqd_owFW2XI2pL&_nc_ohc=cHJtbr8nvvMQ7kNvgG8KI0z&_nc_gid=SN-QnazVX0vPrGxNhTJbpA&edm=ACWDqb8BAAAA&ccb=7-5&oh=00_AYE-thied1POUY7OjMrTCxZ_xUJKYVQlZqNm52hKfkoL0w&oe=67F09134&_nc_sid=ee9879"
          },
          "is_audio_automatically_attributed": false,
          "is_eligible_for_audio_effects": true,
          "is_eligible_for_vinyl_sticker": true,
          "is_explicit": false,
          "is_original_audio_download_eligible": true,
          "is_reuse_disabled": false,
          "is_xpost_from_fb": false,
          "oa_owner_is_music_artist": false,
          "original_audio_subtype": "default",
          "original_audio_title": "Original audio",
          "original_media_id": "3600545900919030401",
          "progressive_download_url": "https://video.fcps3-1.fna.fbcdn.net/o1/v/t2/f2/m69/AQOck_jtLI2Ol372qpWxWqY8yn-oUZR1axbswFvc-_cstMG9yp8tDp5pJyoNW1ia8i-fAMQyqi6OdaVzrA7x3p86.mp4?strext=1&_nc_cat=101&_nc_oc=Adm50XCeN7eEPjYmkE2IDnJfgFl2YaCcqzcJ19JQU7wLN28NWL01e0X1epZxVK2R2_aUpb3SkPWVmq0EEQU1Mk0L&_nc_sid=8bf8fe&_nc_ht=video.fcps3-1.fna.fbcdn.net&_nc_ohc=A-9CG2QWVUYQ7kNvgEalDST&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5BVURJT19PTkxZLi5DMy4wLnByb2dyZXNzaXZlX2F1ZGlvIiwieHB2X2Fzc2V0X2lkIjo1MTY2NTEyNTEyNjc4NzUsInZpX3VzZWNhc2VfaWQiOjEwMDk5LCJkdXJhdGlvbl9zIjo3NiwidXJsZ2VuX3NvdXJjZSI6Ind3dyJ9&ccb=17-1&_nc_zt=28&oh=00_AYE0CpOUt_o20QYLS7IY6FoAnU4dfvQ7BIeL9Hz_M_GLjg&oe=67F0AC09",
          "should_mute_audio": false,
          "time_created": 1743438574,
          "consumption_info": {
            "is_bookmarked": false,
            "is_trending_in_clips": false,
            "should_mute_audio_reason": ""
          },
          "fb_downstream_use_xpost_metadata": {
            "downstream_use_xpost_deny_reason": "NONE"
          }
        },
        "reusable_text_attribute_string": "Dana hasn’t had a vegetable in days",
        "reusable_text_info": [
          {
            "id": "18362930941133514",
            "text": "Dana hasn’t had a vegetable in days",
            "start_time_ms": 0,
            "end_time_ms": 15900,
            "width": 0.9957591178965224,
            "height": 0.13979007633587787,
            "offset_x": 0.49999999999999994,
            "offset_y": 0.5894561214301423,
            "z_index": 0,
            "rotation_degree": 0,
            "scale": 1,
            "alignment": "center",
            "colors": [
              {
                "count": 35,
                "hex_rgba_color": "#ffffffff"
              }
            ],
            "text_format_type": "ig_squeeze",
            "font_size": 37.02390280187842,
            "text_emphasis_mode": "default",
            "is_animated": 0
          }
        ],
        "show_achievements": false
      },
      "can_viewer_save": true,
      "can_viewer_reshare": true,
      "is_organic_product_tagging_eligible": false,
      "commerce_integrity_review_decision": "",
      "is_reuse_allowed": false,
      "has_more_comments": true,
      "max_num_visible_preview_comments": 2,
      "explore_hide_comments": false,
      "url": "https://www.instagram.com/barstoolsports/p/DH3tWudxIKB/"
    }
  ],
  "next_max_id": "3599731065704772932_260462810",
  "user": {
    "pk": "260462810",
    "pk_id": "260462810",
    "username": "barstoolsports",
    "full_name": "Barstool Sports",
    "is_private": false,
    "is_active_on_text_post_app": true,
    "strong_id__": "260462810",
    "profile_grid_display_type": "default",
    "id": "260462810",
    "is_verified": true,
    "profile_pic_id": "2231147078699318026_260462810",
    "profile_pic_url": "https://instagram.fcps3-1.fna.fbcdn.net/v/t51.2885-19/84158194_513031692653050_7931868730928136192_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_ht=instagram.fcps3-1.fna.fbcdn.net&_nc_cat=1&_nc_oc=Q6cZ2QGkkhOhhuhe2gKjdC25XpoTh0oLgbcvOdFzsOI8KUKAOUyCVoZjtPOQERMK43ysUldXL4DA2XAqd_owFW2XI2pL&_nc_ohc=cHJtbr8nvvMQ7kNvgG8KI0z&_nc_gid=SN-QnazVX0vPrGxNhTJbpA&edm=ACWDqb8BAAAA&ccb=7-5&oh=00_AYE-thied1POUY7OjMrTCxZ_xUJKYVQlZqNm52hKfkoL0w&oe=67F09134&_nc_sid=ee9879"
  },
  "auto_load_more_enabled": false,
  "status": "ok"
}

Best Practices

Error Handling

Implement comprehensive error handling and retry logic for failed requests. Log errors properly for debugging.

Caching

Cache responses when possible to reduce API calls and improve performance. Consider data freshness requirements.

Security

Never expose your API key in client-side code. Use environment variables and secure key management practices.

Troubleshooting

401

Unauthorized

Check your API key is correct and properly formatted in the x-api-key header.

402

Payment Required

You ran out of credits and need to buy more.

404

Not Found

The resource (user, video, etc.) might not exist or be private.

429

Too Many Requests

You have exceeded your rate limit. Slow down your requests.

Frequently Asked Questions

How much does it cost to scrape Instagram?

SociaVault offers 50 free API calls to get started. After that, pricing starts at $10 for 5k requests with volume discounts available.

Is it legal to scrape Instagram data?

Scraping publicly available data is generally considered legal. We only collect public data that is accessible without logging in.

How fast can I scrape Instagram?

Our API handles the rate limiting for you. You can make requests as fast as your plan allows.

What data format does the API return?

All API responses are returned in JSON format, making it easy to integrate with any programming language or application.

Related Tutorials

Ready to Start Scraping?

Get started with 50 free API calls. No credit card required. Stop worrying about proxies and captchas.