An X (Twitter) API alternative for reading public data
The official X API now bills read access per request, on top of a developer account, an app and keys. If you only need to read public data — tweets, profiles, followers, replies and trends — Sourcelane gives your AI agent the same data with nothing to set up, priced per result. Start with the Twitter scraper API for tweet search, or the Twitter stats API for account metrics.
From $0.001 per tweet · no API key · failed calls refunded
What you get
- Tweet search with advanced operators (from:, since:, min_faves:)
- Profiles, followers and following lists
- Replies, quote tweets and retweeters
- Historical tweets between any two dates
- Trends by location
- Engagement reports and audience overlap
Just ask your AI
“Search tweets mentioning 'cursor ide' from the last week with more than 50 likes.”
“Get the followers of @vercel with more than 10k followers themselves.”
What people use the X API alternative for
Research and monitoring
Track mentions of your brand, competitors or a topic with advanced search, without budgeting API credits for exploratory queries.
Lead lists
Pull the followers of an account in your niche, filter by follower count and bio, and export the shortlist.
Sourcelane vs the Official X API
| Official X API | Sourcelane | |
|---|---|---|
| Access | Developer account, project, app and keys | Connect once, no X account needed |
| Pricing | Pay-per-use credits per post read; enterprise contracts for high volume | Pay per result, failed calls refunded |
| Posting and DMs | Supported | Not supported — read-only public data |
| Private data | Your own account's data with user auth | Public data only |
| Use from AI tools | Build your own integration | Ready for Claude, ChatGPT, Cursor and REST |
Connectors behind it
Your AI picks the right one for the question. Each is priced per result and refunded if it fails.
tweetIdurltextcreatedAtlangsourceX (Twitter) Profile Scraper$0.0015 per resultExtract public profile data from X (Twitter) — name, bio, follower/following counts, verification, profile/banner images, location, links, join date.usernameuserIdnamedescriptionlocationwebsiteX (Twitter) Followers & Following Scraper$0.001 per userExtract the full followers and following lists of any public X (Twitter) profile in one run. No cookies, no login — bio, location, verification, and follower counts.profilePictureusernamenameprofileUrlrelationshipisBlueVerifiedX (Twitter) Tweet Replies Scraper$0.001 per replyExtract every reply under any X (Twitter) post — full text, author, and engagement metrics. Perfect for sentiment analysis, brand monitoring, and community research.parentTweetIdtweetIdurltextcreatedAtlangX (Twitter) Trends Scraper$0.002 per trendExtract real-time trending topics and hashtags on X (Twitter) for any location worldwide, with rank and direct search links.woeidranknamesearchQuerymetaDescriptiontweetSearchUrlX (Twitter) Historical Tweets Scraper$0.002 per tweetScrape every tweet an X (Twitter) account posted between any two dates - full text, engagement metrics, media and links - going back years, with keyword, language and reply filters.usernametweetIdurltextcreatedAtlangUse the X API alternative from Claude, ChatGPT or Cursor
Pick your tool and connect in under a minute. Then just ask — for example: “Search tweets mentioning 'cursor ide' from the last week with more than 50 likes.”
Connect Claude
Web, desktop and mobile. One click, then confirm.
- 1Click Add to Claude — claude.ai opens with Sourcelane filled in
- 2Click Continue to confirm — it then works in Claude desktop and mobile too
Manual setup (config files, REST, Python) +
Claude Code
Adds the Sourcelane MCP server with your key as a header.
claude mcp add --transport http sourcelane https://api.usesourcelane.com/mcp \
--header "Authorization: Bearer sl_live_your_agent_key"Claude Desktop (config file)
Alternative to the connector URL: add to claude_desktop_config.json, then restart Claude.
{
"mcpServers": {
"sourcelane": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://api.usesourcelane.com/mcp",
"--header",
"Authorization:${AUTH_HEADER}"
],
"env": {
"AUTH_HEADER": "Bearer sl_live_your_agent_key"
}
}
}
}Cursor & Windsurf
Add to ~/.cursor/mcp.json (or Windsurf's mcp_config.json).
{
"mcpServers": {
"sourcelane": {
"url": "https://api.usesourcelane.com/mcp",
"headers": {
"Authorization": "Bearer sl_live_your_agent_key"
}
}
}
}VS Code
Save as .vscode/mcp.json. VS Code prompts for your key once.
{
"servers": {
"sourcelane": {
"type": "http",
"url": "https://api.usesourcelane.com/mcp",
"headers": {
"Authorization": "Bearer ${input:sourcelane-key}"
}
}
},
"inputs": [
{
"type": "promptString",
"id": "sourcelane-key",
"description": "Sourcelane agent key",
"password": true
}
]
}ChatGPT Custom GPT (Actions)
Create a GPT → Actions → Import from URL, then Authentication: API Key, Bearer.
https://usesourcelane.com/openapi.jsonREST
One POST. Pass maxResults to cap cost.
curl -X POST https://api.usesourcelane.com/v1/call \
-H "Authorization: Bearer sl_live_your_agent_key" \
-H "Content-Type: application/json" \
-d '{"listing":"x-tweet-scraper","params":{"query":"from:elonmusk min_faves:1000","maxItems":5},"maxResults":10}'Python, LangChain, CrewAI, OpenAI Agents SDK…
Wrap the REST call as a tool, or point an MCP client at the endpoint.
import requests
res = requests.post(
"https://api.usesourcelane.com/v1/call",
headers={"Authorization": "Bearer sl_live_your_agent_key"},
json={
"listing": "x-tweet-scraper",
"params": {"query":"from:elonmusk min_faves:1000","maxItems":5},
"maxResults": 10,
},
timeout=300,
)
body = res.json()
print(body["receipt"]["chargedMicros"], "micro-USD for", body["receipt"]["results"], "results")
print(body["data"])X API alternative — FAQ
When should I use the official X API instead?+
When you need to post, send DMs, or act on behalf of a logged-in user. Sourcelane only reads public data.
Is it cheaper than the X API?+
It depends on volume and what you fetch. For occasional research and agent use, paying per result with no setup is usually simpler; check each connector's price on its directory page.
Do I need a X (Twitter) API key or developer account?+
No. Sourcelane runs the connectors for you. You top up a balance with a card, create an agent key, and your agent calls the connector — there is no X (Twitter) app review, OAuth setup or rate-limit juggling on your side.
Which AI tools can use it?+
Anything that speaks MCP (Claude Desktop, Claude Code, Cursor, VS Code, Windsurf) can connect to the Sourcelane MCP server with one config block. ChatGPT can use it through a Custom GPT Action, and any agent framework can call the REST endpoint directly.
Can I stop an agent from overspending?+
Yes. Every agent key has its own per-call cap, daily and monthly limits, an optional lifetime budget, an allowlist of connectors, and a kill switch.

