Turn X (Twitter) into a REST + MCP endpoint
Writ turns the X (Twitter) actions you already do in a browser into a callable REST endpoint your software (and your AI agents) can call.
curl -X POST https://api.usewrit.app/v1/x/run \
-H "Authorization: Bearer wt_8f2c...a91" \
-H "Content-Type: application/json" \
-d '{ "input": { "query": "your search term" } }' No X (Twitter) API yet? Build one in minutes
Record the X (Twitter) task once (search a query, then open a profile) and call it as a REST endpoint and an MCP tool. No backend project, no waiting on X (Twitter) to ship an API.
- 1Record the X (Twitter) task once
Open the recorder and search a query on X (Twitter) in a real browser. Writ captures each step, including login and 2FA, into a reusable workflow.
- 2Publish it as an endpoint
One click turns the workflow into a callable REST endpoint at /v1/x/run and a matching MCP tool. Inputs become a typed schema.
- 3Call it from anything
Call X (Twitter) from your code, a no-code tool, or an AI agent. Run it on your own machine for free, or on metered cloud.
Read the REST API docs, see what's possible on workflows, or search for another site. Free to start. See pricing.
X (Twitter) doesn't give you the endpoint you need
X (Twitter) has an API, but X's API tiers are paid and rate-limited; many read and monitoring workflows are simpler and cheaper in an authenticated browser.
Writ closes that gap. Record the X (Twitter) task once (or describe it to an AI session) and publish it as a REST endpoint at /v1/x/run and a matching MCP tool. Writ runs on your own accounts, with your own credentials and data, on sites you are authorized to use.
What you can call on X (Twitter)
Each operation below is a real X (Twitter) action recorded into a workflow and exposed as a typed endpoint.
Returns structured fields such as post text, likes, reposts, follower count: typed JSON, not raw page text.
A real X (Twitter) endpoint, authorized with a wt_ key
POST your inputs, get structured output. Authenticate every call with a scoped wt_ key.
curl -X POST https://api.usewrit.app/v1/x/run \
-H "Authorization: Bearer wt_8f2c...a91" \
-H "Content-Type: application/json" \
-d '{ "input": { "query": "your search term" } }' import requests
r = requests.post(
"https://api.usewrit.app/v1/x/run",
headers={"Authorization": "Bearer wt_8f2c...a91"},
json={"input": {"query": "your search term"}},
)
print(r.json()["output"]) {
"run_id": "run_x_7b21",
"status": "succeeded",
"output": {
"post_text": "...",
"likes": "...",
"reposts": "..."
}
} Also an MCP tool. The same workflow is exposed as an MCP tool your AI agent can call. See X (Twitter) MCP tools, or browse all MCP clients.
Login, 2FA, and dynamic pages on X (Twitter)
The reason X (Twitter) has no usable API is the same reason it's hard to automate. Writ handles it.
Writ signs into your own X account through a Persona with 2FA and operates inside that authenticated session.
Three ways to build your X (Twitter) endpoint
Pick whichever fits the task. All three produce the same callable workflow.
Built on the same engine as the recorder and workflows.
Trigger your X (Twitter) endpoint on a change
Monitor X (Twitter) for new post from an account, follower-count change, engagement threshold and fire this endpoint the instant something changes.
Monitors check as fast as every 10s (10s on Enterprise). A detected change becomes an automation trigger that runs your workflow in seconds. Monitor X (Twitter) ▸
Free on your own machine, or on cloud
Local / BYO agent
No compute charge. The agent runs on your hardware, so it can reach X (Twitter) even from an intranet or VPN-only network, and your AI keys never leave your machine.
Writ cloud
Metered by running time at $0.12 per browser-hour, drawn from your plan’s included usage. No infrastructure to manage.
Other ways to work with X (Twitter)
X (Twitter) API questions
Does X (Twitter) have an API?
Is there a ready-made X (Twitter) API I can use?
Is it allowed to automate X (Twitter) this way?
Does this work with X (Twitter) login and 2FA?
Can I run it on my own machine?
Build a X (Twitter) API
Record it once, then call it from your software and your AI agents. Get started free.