# X (Twitter) API

> Tweets, profiles and recent posts from any public X account.

- **Platform:** [X (Twitter)](https://lurkapi.com/docs/twitter.md) (x.com)
- **Web page:** https://lurkapi.com/docs/twitter

## Overview

Read public X (Twitter) the way a logged-out visitor sees x.com: one tweet with its full engagement counts and media, an account's profile with exact follower numbers, and an account's recent tweets. Useful for social listening, creator and competitor research, and tracking how posts perform. Protected accounts' tweets and age-restricted tweets need a login, so they return 404 `not_found`.

Source: x.com.

## Try it live

Pick an endpoint and run it: real data, no signup, 5 free requests a day.

Live playground: https://lurkapi.com/docs/twitter#try

## Endpoints

- [Tweet](https://lurkapi.com/docs/twitter/tweet.md): One tweet: text, author, likes, replies, reposts, quotes, bookmarks, views, media and the tweet it quotes. (GET /v1/twitter/tweet · 1 credit)
- [Profile](https://lurkapi.com/docs/twitter/profile.md): An account's bio, avatar, verification and exact follower, following, tweet and like counts. (GET /v1/twitter/profile · 1 credit)
- [User tweets](https://lurkapi.com/docs/twitter/user-tweets.md): An account's tweets and retweets, about 20 per page, with text, media and engagement counts. (GET /v1/twitter/user-tweets · 1 credit)

## Call it

Every endpoint is a `GET` with your key in the `x-api-key` header. For example, [Tweet](https://lurkapi.com/docs/twitter/tweet.md):

curl:

```bash
curl "https://api.lurkapi.com/v1/twitter/tweet?url=https%3A%2F%2Fx.com%2FNASA%2Fstatus%2F2104593672624886205" \
  -H "x-api-key: YOUR_API_KEY"
```

[Get a free API key](https://lurkapi.com/login?next=/dashboard)

## Use it in Claude

Once LurkAPI is [connected to Claude](https://lurkapi.com/docs.md#claude), each endpoint is a tool Claude can call:

| Tool | What it does |
| --- | --- |
| `twitter_tweet` | [Tweet](https://lurkapi.com/docs/twitter/tweet.md): One tweet: text, author, likes, replies, reposts, quotes, bookmarks, views, media and the tweet it quotes. |
| `twitter_profile` | [Profile](https://lurkapi.com/docs/twitter/profile.md): An account's bio, avatar, verification and exact follower, following, tweet and like counts. |
| `twitter_user_tweets` | [User tweets](https://lurkapi.com/docs/twitter/user-tweets.md): An account's tweets and retweets, about 20 per page, with text, media and engagement counts. |
