Skip to main content
POST
https://xquik.com/api/v1
/
styles
Analyze & Cache Style
curl --request POST \
  --url https://xquik.com/api/v1/styles \
  --header 'Content-Type: <content-type>' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "username": "<string>"
}
'
This endpoint consumes usage credits.
curl -X POST https://xquik.com/api/v1/styles \
  -H "x-api-key: xq_YOUR_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{
    "username": "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.

Body

username
string
required
X username to analyze. 1-15 characters, alphanumeric and underscores only. The @ prefix is automatically stripped if included.

Response

xUsername
string
Normalized X username (lowercase, no @ prefix).
tweetCount
number
Number of tweets fetched and cached.
isOwnAccount
boolean
true if the user has set their X identity to this account.
fetchedAt
string
ISO 8601 timestamp when tweets were fetched from X.
tweets
object[]
Array of cached tweets.
{
  "xUsername": "elonmusk",
  "tweetCount": 20,
  "isOwnAccount": false,
  "fetchedAt": "2026-02-24T10:30:00.000Z",
  "tweets": [
    {
      "id": "1893456789012345678",
      "text": "The future is now.",
      "authorUsername": "elonmusk",
      "createdAt": "2026-02-24T14:22:00.000Z"
    }
  ]
}
If a cached style already exists for this username, it will be replaced with fresh data.
Next steps: List Styles to see all cached styles, Get Style to retrieve a specific style, or Analyze Performance to fetch engagement metrics for cached tweets.