X data API
5 endpoints for X: profile, profile posts, post, post comments, followers. One API key, one JSON schema, as MCP tools or REST.
Endpoints
Call any of them over MCP with call_endpoint and its path, or over REST.
| Endpoint | Returns | Credits | Cache |
|---|---|---|---|
| profileGET /v1/twitter/profile | Public profile for a X account. | 1 | 15 min |
| profile/postsGET /v1/twitter/profile/posts | Recent X posts by an account, newest first. | 1 | 10 min |
| postGET /v1/twitter/post | One X post by URL, with its engagement counts. | 1 | 10 min |
| post/commentsGET /v1/twitter/post/comments | Comments on one X post, replies included. | 1 | 5 min |
| followersGET /v1/twitter/followers | Follower and following counts for an X account. | 5 | 30 min |
Connect your agent over MCP
Remote MCP server: https://data.openkrill.app/mcp with your key in the x-api-key header.
claude mcp add --transport http krilldata \
https://data.openkrill.app/mcp \
--header "x-api-key: YOUR_API_KEY"{
"mcpServers": {
"krilldata": {
"url": "https://data.openkrill.app/mcp",
"headers": {
"x-api-key": "YOUR_API_KEY"
}
}
}
}{
"mcpServers": {
"krilldata": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://data.openkrill.app/mcp",
"--header",
"x-api-key:${API_KEY}"
],
"env": {
"API_KEY": "YOUR_API_KEY"
}
}
}
}