> For the complete documentation index, see [llms.txt](https://university.mindstudio.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://university.mindstudio.ai/building-ai-agents/blocks-reference/scrape-instagram-profile.md).

# Scrape Instagram Profile

{% embed url="<https://www.youtube.com/embed/w1q7vgZ6Ws4>" %}

## Configuration

### Username

Enter the username or profile. URL of the profile you want to scrape.&#x20;

This section can include variables.

### Output Variable

Specify the name of the output variable that will store the results. Example: `Profile_result`

### Sample Output

```json
{
    "inputUrl": "https://example.com/profile",
    "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "username": "example_username",
    "url": "https://example.com/profile",
    "fullName": "John Doe",
    "biography": "Sample bio text",
    "externalUrls": [
        {
            "title": "Example Link",
            "lynx_url": "https://example.com/link",
            "url": "https://example.com/link",
            "link_type": "external"
        }
    ],
    "externalUrl": "https://example.com/link",
    "externalUrlShimmed": "https://example.com/shimmed_link",
    "followersCount": 1000,
    "followsCount": 500,
    "hasChannel": false,
    "highlightReelCount": 1,
    "isBusinessAccount": false,
    "joinedRecently": false,
    "businessCategoryName": "Content Creator",
    "private": false,
    "verified": false,
    "profilePicUrl": "https://example.com/profile_pic.jpg",
    "profilePicUrlHD": "https://example.com/profile_pic_hd.jpg",
    "igtvVideoCount": 5,
    "relatedProfiles": [
        {
            "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
            "full_name": "John Doe",
            "is_private": false,
            "is_verified": false,
            "profile_pic_url": "https://example.com/profile_pic.jpg",
            "username": "example_username"
        }
    ],
    "postsCount": 100,
    "latestPosts": []
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://university.mindstudio.ai/building-ai-agents/blocks-reference/scrape-instagram-profile.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
