> 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-x-profile.md).

# Scrape X Profile

The Scrape X Profile block retrieves publicly available information from a user's profile on X (formerly Twitter). Use this to enrich workflows with social data such as bio, follower count, username, and engagement metrics.

This is useful for lead enrichment, credibility checks, or contextualizing mentions from a given profile.

***

## Configurations

### Profile URL

Provide the full URL of the X user profile you want to scrape.

**Example Format:** `https://x.com/elonmusk`

{% hint style="info" %}
Only public profiles are supported. If the profile is private, suspended, or deleted, the request will return an error.
{% endhint %}

***

### Output Variable

Enter the name of the variable where the profile data will be stored.

**Example:** `profile_info`

***

## Sample Output

```json
{
  "id": "4398626122",
  "name": "OpenAI",
  "username": "OpenAI",
  "bio": "OpenAI’s mission is to ensure that artificial general intelligence benefits all of humanity. We’re hiring: https://t.co/dJGr6Lg202",
  "profileImageUrl": "https://pbs.twimg.com/profile_images/1885410181409820672/ztsaR0JW_400x400.jpg",
  "bannerImageUrl": "https://pbs.twimg.com/profile_banners/4398626122/1738590484",
  "createdAt": "Sun Dec 06 22:51:08 +0000 2015",
  "stats": {
    "followers": 4220541,
    "following": 3,
    "tweets": 1245,
    "likes": 852,
    "listed": 23991,
    "media": 350
  },
  "isVerified": true,
  "isBusiness": false,
  "url": "https://x.com/OpenAI"
}
```


---

# 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-x-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.
