Qualified Name
Qualified Name
Eligibility gate for giveaways: checks whether an account's display name contains the required text. Match anywhere, on the left (starts with), or on the right (ends with). Case-insensitive.
GET
/v2/users/:username/check-qualified-nameCheck if an account display name contains the required text.| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| username | string | required | — | Username, with or without @ (path parameter) |
| contains | string | required | — | Text the display name must contain |
| position | string | optional | — | Where to match: anywhere (default), left, right |
BASH
curl "https://xcrop.io/api/v2/users/elonmusk/check-qualified-name?contains=Musk&position=right" \ -H "Authorization: Bearer $XCROP_API_KEY"
ResponseJSON
{ "data": { "username": "elonmusk", "qualified": true, "name": "Elon Musk", "contains": "Musk", "position": "right" }, "meta": { "latency_ms": 198 } }