API documentation
Public and protected site endpoints
Most requests work with your normal site session cookie. For external access, pass an API key (generate one in your profile) as a header
X-API-Key: <your key>
or
?api_key=<your key>
curl -H "X-API-Key: YOUR_KEY" https://arzdata.com/api/items/search?q=47
| Method | Endpoint | Auth | Params | Description |
|---|---|---|---|---|
| GET | /api/search | no auth required | q | Global search across items, vehicles and scripts. |
| GET | /api/items/search | session or API key | q | Item name/id autocomplete search. |
| GET | /api/vehicles/search | session or API key | q | Vehicle name autocomplete search. |
| GET | /api/scripts/search | session or API key | q | Script name autocomplete search. |
| GET | /api/data | session or API key | — | Server list plus 24h online history plot points. |
| GET | /api/online | session or API key | — | Current online/queue count per server. |
| POST | /api/favorites/toggle | session (login required) | server_id | Toggle a server as favorite. |
| POST | /api/donate_favorites/toggle | session (login required) | item_key | Toggle a donate-shop item as favorite (notifies on discount). |
| POST | /api/entity_favorites/toggle | session (login required) | kind, entity_id | Toggle an item/house/business as favorite. |
| GET | /items.rss | no auth required | — | RSS feed of recently added/updated items. |
| GET | /discounts.rss | no auth required | — | RSS feed of active donate-shop discounts. |
| GET | /sitemap.xml | no auth required | — | XML sitemap for search engines. |