x402 Twitter API

Pay-per-use access to Twitter API endpoints with x402 micropayments

Available Endpoints

All endpoints require payment via x402 protocol before access is granted.

Get User Last Tweets

Retrieve the latest tweets from a specific user.

GET /api/twitter/user-tweets?username=elonmusk
Price: $0.01
Query Parameters:
• username (required): Twitter username

Get Tweets by IDs

Retrieve specific tweets using their IDs.

GET /api/twitter/tweets-by-ids?tweet_ids=123,456,789
Price: $0.005
Query Parameters:
• tweet_ids (required): Comma-separated tweet IDs

Get Tweet Replies

Retrieve replies for a specific tweet.

GET /api/twitter/tweet-replies?tweet_id=1234567890
Price: $0.01
Query Parameters:
• tweet_id (required): ID of the tweet to get replies for

How to Use

  1. Make a request to any endpoint above
  2. You'll receive an x402 payment challenge
  3. Complete the payment using your wallet
  4. Access will be granted automatically
  5. Receive the Twitter data response

Payment Network

Payments are processed on the Base network

Powered by x402