Skip to main content
POST
/
x
/
tweets
/
{id}
/
like
Like tweet
curl --request POST \
  --url https://api.example.com/x/tweets/{id}/like \
  --header 'Content-Type: <content-type>' \
  --header 'x-api-key: <x-api-key>' \
  --data '
{
  "account": "<string>"
}
'
10 credits per call · All plans from $0.00012/credit
curl -X POST https://xquik.com/api/v1/x/tweets/1895432178065391234/like \
  -H "x-api-key: xq_YOUR_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{
    "account": "elonmusk"
  }' | jq

Headers

x-api-key
string
required
Your API key. Session cookie authentication is also supported. Generate a key from the dashboard.
Content-Type
string
required
Must be application/json.

Path parameters

id
string
required
The ID of the tweet to like.

Body

account
string
required
X username or account ID identifying which connected X account will like the tweet. The @ prefix is automatically stripped if included.

Response

success
boolean
Always true on success.
{
  "success": true
}
Related: Unlike Tweet to remove a like, Retweet to retweet, or Create Tweet to post a new tweet.