Twitter scraper for n8n
Pull X followers, profiles and tweets into an n8n workflow with the built-in HTTP Request node. Copy the request, add your API key and run it. No custom node, no scraper to maintain.
curl https://api.xautodm.com/v1/users/naval/followers \ -H "Authorization: Bearer $XAUTODM_API_KEY"
{
"data": {
"count": 100,
"users": [
{ "id": "44196397", "handle": "elonmusk", "name": "Elon Musk",
"followers": 200000000, "verified": true, "can_dm": false },
...
],
"cursor": "HBaAgL...=="
},
"meta": { "credits_charged": 500, "credits_remaining": 49500, "request_id": "req_..." }
}Scrape Twitter in n8n with one HTTP Request node
You can pull X data into n8n with its built-in HTTP Request node. XAutoDM has no dedicated n8n node and doesn't need one, because the API is a plain REST call. The request above returns the followers of any public account as JSON, ready for a Split Out node and then a sheet, a CRM or a Slack message.
Replace $XAUTODM_API_KEY in the cURL tab with your own key before you import it. For the Zapier and Make versions of this setup, see Call the XAutoDM API from n8n, Zapier or Make. The full list of endpoints is in the API documentation, and the Twitter scraper covers the same lists with no code at all.
How it works
Add a credential
In n8n, create a Header Auth credential. Name it Authorization and set the value to Bearer followed by your key. Keep the key in the credential, not in the node.
Add the HTTP Request node
Set the method to GET and the URL to the followers endpoint, or use Import cURL and paste the request shown above. The response puts the profiles in data.users.
Turn on pagination
In the node's options, add Pagination, send the cursor from the previous response as the cursor query parameter, and stop when data.cursor is empty. Check the option names against your n8n version.
Split the list and send it on
Add a Split Out node on data.users, then append each row to Google Sheets, your CRM or a Slack message. Put a Schedule Trigger in front of it to refresh the list every night.
Frequently asked questions
Keep exploring
Book more calls from your X DMs.
Connect an account and send your first personalized campaign in minutes. Plans from $19 per account.