Like a tweet by ID from a connected X account to engage with content programmatically
cURL
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>" } '
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
application/json
@
true
{ "success": true }
{ "error": "invalid_input", "message": "Invalid tweet ID or account" }
account
{ "error": "unauthenticated", "message": "Missing or invalid API key" }
{ "error": "no_subscription", "message": "No active subscription" }
{ "error": "usage_limit_reached", "message": "Monthly usage limit reached" }
{ "error": "x_write_failed", "message": "Failed to like tweet" }
Was this page helpful?