> ## Documentation Index
> Fetch the complete documentation index at: https://docs.brightdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 按 URL 抓取 Instagram 个人资料

## 查询参数

<ParamField query="dataset_id" type="string" default="gd_l1vikfch901nx3by4" required>
  用于此请求的数据集 ID。

  <Warning>
    必须设置为 `gd_l1vikfch901nx3by4` 以收集**按 URL 的个人资料**数据。
  </Warning>
</ParamField>

<ParamField query="notify" type="boolean" default={false}>
  请求完成时是否发送通知。
</ParamField>

<ParamField query="include_errors" type="boolean" default={true}>
  是否在响应中包含错误。
</ParamField>

## 请求体

<ParamField body="input" type="object[]" required>
  输入对象的数组。

  <Expandable title="properties">
    <ParamField body="url" type="string" required>
      要收集的 Instagram 个人资料的 URL。
    </ParamField>
  </Expandable>

  #### 示例

  ```json wrap theme={null}
  {
    "input": [
      {"url": "https://www.instagram.com/cats_of_world_"},
      {"url": "https://www.instagram.com/dogsofinstagram"},
      {"url": "https://www.instagram.com/zoobarcelona"},
      {"url": "https://www.instagram.com/australiazoo"}
    ]
  }
  ```
</ParamField>

<ResponseExample>
  ```json 200 theme={null}
  [
    {
      "account": "jen***ell***72",
      "fbid": "17841405188025881",
      "id": "5087052934",
      "followers": 7938,
      "posts_count": 835,
      "is_business_account": false,
      "is_professional_account": false,
      "is_verified": false,
      "avg_engagement": 0.0582,
      "external_url": null,
      "biography": "Pod: @raydarcydaily \nemail: jenny@darcydaily.com",
      "business_category_name": null,
      "category_name": null,
      "post_hashtags": null,
      "following": 2520,
      "posts": [
        {
          "caption": "BEING HUMAN - A six part series where Ray chats to 6 well known Irish people about what it means to be human. \n\nFirst episode Wednesday 18th March, and every Wednesday after.\n\nA What Next Production\nPresented by Ray D'Arcy\nProduced by Jenny Kelly\n\n#beinghuman \n#podcast \n#irishpodcast",
          "comments": 2,
          "content_type": "Video",
          "datetime": "2026-03-12T11:52:08.000Z",
          "id": "3851176228498036124",
          "image_url": "https://scontent-dfw5-2.cdninstagram.com/v/t51.82787-15/651142041_18334056292172935_8112879477358850984_n.jpg?stp=dst-jpg_e15_tt6&_nc_ht=scontent-dfw5-2.cdninstagram.com&_nc_cat=107&_nc_oc=Q6cZ2QH-MUSe6C4PkyFc8saG_6IRC_V3hZ9c7StCViUw-zl5K7a2Qh7u0q29i7etbbV1SI4&_nc_ohc=W4Jy7OhEd8MQ7kNvwFBSQNv&_nc_gid=f8NLMHfSvJHjKW7CNjdR5w&edm=AOQ1c0wBAAAA&ccb=7-5&oh=00_Afwe_S8Bh8FtoL_RtvxoQ6RF2c20beQzWeLfJfizNBlciQ&oe=69BCEC94&_nc_sid=8b3546",
          "is_pinned": false,
          "likes": 36,
          "location": {
            "has_public_page": null,
            "id": null,
            "name": null,
            "slug": null
          },
          "post_hashtags": [
            "beinghuman",
            "podcast",
            "irishpodcast"
          ],
          "url": "https://www.instagram.com/p/DVyIGAbDdWc",
          "video_url": "https://scontent-dfw6-1.cdninstagram.com/o1/v/t16/f2/m69/AQMSgH9bCDeY_VmVFTYEzrv9RMglEw0prtVd_QFRgC21aFXJ10hPg07pPxQ6VZdxe1vFeVnYABQlz2zcpXVrQqfV.mp4?strext=1&_nc_cat=103&_nc_sid=5e9851&_nc_ht=scontent-dfw6-1.cdninstagram.com&_nc_ohc=F9Tybdk82ZQQ7kNvwGJ2sbT&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5JTlNUQUdSQU0uQ0xJUFMuQzMuNDgwLmRhc2hfYmFzZWxpbmVfMV92MSIsInhwdl9hc3NldF9pZCI6MTgzMzQwNTU2MDgxNzI5MzUsImFzc2V0X2FnZV9kYXlzIjozLCJ2aV91c2VjYXNlX2lkIjoxMDA5OSwiZHVyYXRpb25fcyI6MTE3LCJ1cmxnZW5fc291cmNlIjoid3d3In0%3D&ccb=17-1&_nc_gid=f8NLMHfSvJHjKW7CNjdR5w&_nc_ss=8&_nc_zt=28&vs=672fccf82fe0dcbe&_nc_vs=HBksFQIYOnBhc3N0aHJvdWdoX2V2ZXJzdG9yZS9HUGlMdHlhY29GUzFoRFFEQU9udTlRZ1ByVDFKYnNwVEFRQUYVAALIARIAFQIYUWlnX3hwdl9wbGFjZW1lbnRfcGVybWFuZW50X3YyL0E5NEZGMjZCMjU0OTFERkZBNzYzQjU2NDhBOUM5QThGX2F1ZGlvX2Rhc2hpbml0Lm1wNBUCAsgBEgAoABgAGwKIB3VzZV9vaWwBMRJwcm9ncmVzc2l2ZV9yZWNpcGUBMRUAACaOhor9vq6RQRUCKAJDMywXQF1AAAAAAAAYEmRhc2hfYmFzZWxpbmVfMV92MREAdf4HZeadAQA&oh=00_AfyDY32lp2KMgYLDKEK7Wx7ocPFPwwhGkiuWvBKwB_joLg&oe=69BCCEE9"
        },
        {
          "caption": "Our brand new daily podcast is starting tomorrow \n\nRay D'Arcy Daily \n\nWherever you get your podcasts.\n\nEmail us ray@darcydaily.com\n#podcast #irishpodcast",
          "comments": 86,
          "content_type": "Video",
          "datetime": "2026-03-08T16:21:04.000Z",
          "id": "3848412628930911784",
          "image_url": "https://scontent-dfw5-1.cdninstagram.com/v/t51.71878-15/649327000_1860456074651243_3014167701283875235_n.jpg?stp=dst-jpg_e15_tt6&_nc_ht=scontent-dfw5-1.cdninstagram.com&_nc_cat=111&_nc_oc=Q6cZ2QH-MUSe6C4PkyFc8saG_6IRC_V3hZ9c7StCViUw-zl5K7a2Qh7u0q29i7etbbV1SI4&_nc_ohc=b0EoQkmauKkQ7kNvwGZzfjq&_nc_gid=f8NLMHfSvJHjKW7CNjdR5w&edm=AOQ1c0wBAAAA&ccb=7-5&oh=00_AfxQfU7Ocg9M26vOgYlA3m4oy4cpmvDY9859u4P35lUqng&oe=69BCEFC3&_nc_sid=8b3546",
          "is_pinned": false,
          "likes": 992,
          "location": {
            "has_public_page": null,
            "id": null,
            "name": null,
            "slug": null
          },
          "post_hashtags": [
            "podcast",
            "irishpodcast"
          ],
          "url": "https://www.instagram.com/p/DVoTuVwjd4o",
          "video_url": "https://scontent-dfw5-2.cdninstagram.com/o1/v/t16/f2/m69/AQNqwbuRAKLUvBo_BRm3bnGbIV2EPYfXffZLw2f3swiqVgfVNN31xLUjJYzBUmk31ks69X_8_c7EKmCelHv_buYH.mp4?strext=1&_nc_cat=104&_nc_sid=5e9851&_nc_ht=scontent-dfw5-2.cdninstagram.com&_nc_ohc=iuf2XH_4eaAQ7kNvwGQqv3J&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5JTlNUQUdSQU0uQ0xJUFMuQzMuNzIwLmRhc2hfYmFzZWxpbmVfMV92MSIsInhwdl9hc3NldF9pZCI6MTgzMzM2MzkxNzIxNzI5MzUsImFzc2V0X2FnZV9kYXlzIjo3LCJ2aV91c2VjYXNlX2lkIjoxMDA5OSwiZHVyYXRpb25fcyI6NjAsInVybGdlbl9zb3VyY2UiOiJ3d3cifQ%3D%3D&ccb=17-1&_nc_gid=f8NLMHfSvJHjKW7CNjdR5w&_nc_ss=8&_nc_zt=28&vs=ce88cc19b1c12270&_nc_vs=HBksFQIYOnBhc3N0aHJvdWdoX2V2ZXJzdG9yZS9HSVhrcWlhdEZTUTBGLTBFQUNGU2oydVRFWlZ4YnNwVEFRQUYVAALIARIAFQIYUWlnX3hwdl9wbGFjZW1lbnRfcGVybWFuZW50X3YyLzIwNEVCQTgxMTJEMkM2ODRBNzFEREU0RTQwNTBFQThDX2F1ZGlvX2Rhc2hpbml0Lm1wNBUCAsgBEgAoABgAGwKIB3VzZV9vaWwBMRJwcm9ncmVzc2l2ZV9yZWNpcGUBMRUAACaOsuGkoJaRQRUCKAJDMywXQE464UeuFHsYEmRhc2hfYmFzZWxpbmVfMV92MREAdf4HZeadAQA&oh=00_AfzE-98jZ3zhfaRZuLxlWwz5GmrjBpxgERbFaOjPj7UIrw&oe=69BCCCA4"
        },
        {
          "caption": "We have some news! \n\nRAY D'ARCY DAILY - your daily podcast. \n\nThis five day a week show is nothing new, and yet ALL NEW. It's Monday to Friday with Ray giving his own world view while surrounded by friends of the show, Jenny Kelly (that's me 🤪), Mairead Ronan and Bernard O'Shea to name a few. \n\nWe hope you'll join us. \nStarting Monday 9th. \n\nFollow the show now to make sure you never miss an episode. \n\nListen wherever you get your Podcasts #irishpodcast #podcast \n@cocomairead @bernardo.oshea @acast",
          "comments": 166,
          "content_type": "Video",
          "datetime": "2026-03-02T13:25:41.000Z",
          "id": "3843977898726623596",
          "image_url": "https://scontent-dfw5-1.cdninstagram.com/v/t51.71878-15/641425914_1446430403853586_8943556578413069821_n.jpg?stp=dst-jpg_e15_tt6&_nc_ht=scontent-dfw5-1.cdninstagram.com&_nc_cat=110&_nc_oc=Q6cZ2QH-MUSe6C4PkyFc8saG_6IRC_V3hZ9c7StCViUw-zl5K7a2Qh7u0q29i7etbbV1SI4&_nc_ohc=j-4QNAsV4yEQ7kNvwEWKOeO&_nc_gid=f8NLMHfSvJHjKW7CNjdR5w&edm=AOQ1c0wBAAAA&ccb=7-5&oh=00_Afy2MQCg7ccEpt8gZNJowsCxi2k7fkX141C5dFU-dvfEfg&oe=69BCC84E&_nc_sid=8b3546",
          "is_pinned": false,
          "likes": 1158,
          "location": {
            "has_public_page": null,
            "id": null,
            "name": null,
            "slug": null
          },
          "post_hashtags": [
            "irishpodcast",
            "podcast"
          ],
          "url": "https://www.instagram.com/p/DVYjYhaDYls",
          "video_url": "https://

  ```
</ResponseExample>


## OpenAPI

````yaml api-reference/sdk-specs/instagram-profiles-collect-by-url POST /datasets/v3/scrape
openapi: 3.0.0
info:
  title: Collect Instagram profiles by URL
  version: 1.0.0
servers:
  - url: https://api.brightdata.com
security: []
paths:
  /datasets/v3/scrape:
    post:
      summary: Collect Instagram profiles by URL
      description: >-
        Use the Bright Data Web Scraper API to collect Instagram profiles by
        URL. Submit one request and retrieve structured JSON records when the
        snapshot completes.
      parameters:
        - in: query
          name: dataset_id
          required: true
          schema:
            type: string
            default: gd_l1vikfch901nx3by4
          description: Must be `gd_l1vikfch901nx3by4` for this dataset.
        - in: query
          name: notify
          required: false
          schema:
            type: boolean
            default: false
          description: Send notifications when the request is completed.
        - in: query
          name: include_errors
          required: false
          schema:
            type: boolean
            default: true
          description: Include errors in the response.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - input
              properties:
                input:
                  type: array
                  description: >-
                    Array of input objects. See `Request Body` below for the
                    supported fields.
                  items:
                    type: object
                    required:
                      - url
                    properties:
                      url:
                        type: string
                        example: https://www.instagram.com/natgeo/
      responses:
        '200':
          description: OK. See response example below the parameters.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
      x-codeSamples:
        - lang: shell
          label: cURL
          source: |-
            curl --request POST \
              --url 'https://api.brightdata.com/datasets/v3/scrape?dataset_id=gd_l1vikfch901nx3by4&include_errors=true' \
              --header "Authorization: Bearer YOUR_API_KEY" \
              --header "Content-Type: application/json" \
              --data '{"input": [{"url": "https://www.instagram.com/cats_of_world_"}, {"url": "https://www.instagram.com/dogsofinstagram"}, {"url": "https://www.instagram.com/zoobarcelona"}, {"url": "https://www.instagram.com/australiazoo"}]}'
        - lang: python
          label: Python
          source: >-
            import requests


            url =
            "https://api.brightdata.com/datasets/v3/scrape?dataset_id=gd_l1vikfch901nx3by4&include_errors=true"

            headers = {
                "Authorization": "Bearer YOUR_API_KEY",
                "Content-Type": "application/json",
            }

            payload = {
                "input": [
                    {
                        "url": "https://www.instagram.com/cats_of_world_"
                    },
                    {
                        "url": "https://www.instagram.com/dogsofinstagram"
                    },
                    {
                        "url": "https://www.instagram.com/zoobarcelona"
                    },
                    {
                        "url": "https://www.instagram.com/australiazoo"
                    }
                ]
            }


            response = requests.post(url, headers=headers, json=payload)

            print(response.text)
        - lang: py
          label: Python SDK
          source: |-
            # Install: pip install brightdata-sdk
            import asyncio
            from brightdata import BrightDataClient


            async def main():
                async with BrightDataClient(token="YOUR_API_KEY", auto_create_zones=False) as client:
                    result = await client.scrape.instagram.profiles(url="https://www.instagram.com/natgeo/")
                    print(result.data)


            asyncio.run(main())
        - lang: javascript
          label: JavaScript
          source: >-
            const response = await
            fetch("https://api.brightdata.com/datasets/v3/scrape?dataset_id=gd_l1vikfch901nx3by4&include_errors=true",
            {
              method: "POST",
              headers: {
                "Authorization": "Bearer YOUR_API_KEY",
                "Content-Type": "application/json",
              },
              body: JSON.stringify({
                "input": [
                    {
                        "url": "https://www.instagram.com/cats_of_world_"
                    },
                    {
                        "url": "https://www.instagram.com/dogsofinstagram"
                    },
                    {
                        "url": "https://www.instagram.com/zoobarcelona"
                    },
                    {
                        "url": "https://www.instagram.com/australiazoo"
                    }
                ]
            }),

            });


            const data = await response.text();

            console.log(data);
        - lang: js
          label: JavaScript SDK
          source: >-
            // Install: npm install @brightdata/sdk

            import { bdclient } from '@brightdata/sdk';


            const client = new bdclient({ apiKey: 'YOUR_API_KEY' });


            const result = await
            client.scrape.instagram.collectProfiles(['https://www.instagram.com/natgeo/']);

            console.log(result);


            await client.close();
        - lang: php
          label: PHP
          source: >-
            <?php

            $ch =
            curl_init("https://api.brightdata.com/datasets/v3/scrape?dataset_id=gd_l1vikfch901nx3by4&include_errors=true");

            curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");

            curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

            curl_setopt($ch, CURLOPT_HTTPHEADER, [
                "Authorization: Bearer YOUR_API_KEY",
                "Content-Type: application/json",
            ]);

            curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
                "input" => [
                    [
                        "url" => "https://www.instagram.com/cats_of_world_"
                    ],
                    [
                        "url" => "https://www.instagram.com/dogsofinstagram"
                    ],
                    [
                        "url" => "https://www.instagram.com/zoobarcelona"
                    ],
                    [
                        "url" => "https://www.instagram.com/australiazoo"
                    ]
                ]
            ]));


            $response = curl_exec($ch);

            curl_close($ch);

            echo $response;
        - lang: go
          label: Go
          source: "package main\n\nimport (\n\t\"bytes\"\n\t\"fmt\"\n\t\"io\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tpayload := []byte(\"{\\\"input\\\": [{\\\"url\\\": \\\"https://www.instagram.com/cats_of_world_\\\"}, {\\\"url\\\": \\\"https://www.instagram.com/dogsofinstagram\\\"}, {\\\"url\\\": \\\"https://www.instagram.com/zoobarcelona\\\"}, {\\\"url\\\": \\\"https://www.instagram.com/australiazoo\\\"}]}\")\n\treq, _ := http.NewRequest(\"POST\", \"https://api.brightdata.com/datasets/v3/scrape?dataset_id=gd_l1vikfch901nx3by4&include_errors=true\", bytes.NewBuffer(payload))\n\treq.Header.Set(\"Authorization\", \"Bearer YOUR_API_KEY\")\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\n\tres, err := http.DefaultClient.Do(req)\n\tif err != nil { panic(err) }\n\tdefer res.Body.Close()\n\n\tbody, _ := io.ReadAll(res.Body)\n\tfmt.Println(string(body))\n}"
        - lang: java
          label: Java
          source: |-
            import java.net.URI;
            import java.net.http.HttpClient;
            import java.net.http.HttpRequest;
            import java.net.http.HttpResponse;

            public class Main {
                public static void main(String[] args) throws Exception {
                    String body = "{\"input\": [{\"url\": \"https://www.instagram.com/cats_of_world_\"}, {\"url\": \"https://www.instagram.com/dogsofinstagram\"}, {\"url\": \"https://www.instagram.com/zoobarcelona\"}, {\"url\": \"https://www.instagram.com/australiazoo\"}]}";
                    HttpRequest request = HttpRequest.newBuilder()
                        .uri(URI.create("https://api.brightdata.com/datasets/v3/scrape?dataset_id=gd_l1vikfch901nx3by4&include_errors=true"))
                        .header("Authorization", "Bearer YOUR_API_KEY")
                        .header("Content-Type", "application/json")
                        .method("POST", HttpRequest.BodyPublishers.ofString(body))
                        .build();

                    HttpResponse<String> response = HttpClient.newHttpClient()
                        .send(request, HttpResponse.BodyHandlers.ofString());
                    System.out.println(response.body());
                }
            }
        - lang: ruby
          label: Ruby
          source: >-
            require 'net/http'

            require 'json'

            require 'uri'


            uri =
            URI.parse("https://api.brightdata.com/datasets/v3/scrape?dataset_id=gd_l1vikfch901nx3by4&include_errors=true")

            request = Net::HTTP::Post.new(uri)

            request["Authorization"] = "Bearer YOUR_API_KEY"

            request["Content-Type"] = "application/json"

            request.body = {"input": [{"url":
            "https://www.instagram.com/cats_of_world_"}, {"url":
            "https://www.instagram.com/dogsofinstagram"}, {"url":
            "https://www.instagram.com/zoobarcelona"}, {"url":
            "https://www.instagram.com/australiazoo"}]}.to_json


            response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) {
            |http| http.request(request) }

            puts response.body

````