Keys and access
Get the offer list as JSON from your own server and show it in your own design.
Endpoint
https://elitewall.io/api/v1/offersYour app must be approved. Until then every request returns INVALID_API_KEY.
Your keys
Each app has two keys. Find them on the app's page in your dashboard (Apps → your app).
API keycan be publicUsed in the offerwall link and in API requests. It is part of every wall link, so it isn't a secret.
API secretkeep privateUsed only for API requests. Keep it on your server, for example in an environment variable. Never put it in app or browser code.
Send the keys
As headers (recommended)
curl "https://elitewall.io/api/v1/offers?userId=USER_ID&ip=203.0.113.25" \
-H "X-API-Key: YOUR_API_KEY" \
-H "X-API-Secret: YOUR_API_SECRET"Or in the query string
https://elitewall.io/api/v1/offers?apiKey=YOUR_API_KEY&apiSecret=YOUR_API_SECRET&userId=USER_IDCall the API from your server, and send your user's IP in ip (or their country in country). Then the list only has offers that work where they are. See Request parameters.
Example in PHP
<?php
$query = http_build_query([
'userId' => $user->id,
'ip' => $_SERVER['REMOTE_ADDR'],
'limit' => 50,
]);
$ch = curl_init('https://elitewall.io/api/v1/offers?' . $query);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 15,
CURLOPT_HTTPHEADER => [
'X-API-Key: ' . getenv('OFFERS_API_KEY'),
'X-API-Secret: ' . getenv('OFFERS_API_SECRET'),
],
]);
$body = json_decode(curl_exec($ch), true);
foreach ($body['data'] ?? [] as $offer) {
// show $offer['name'], $offer['payout_local'] and a button to $offer['link']
}Rate limit
60 requests a minute for each API key. Every response tells you where you are:
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 59Over the limit you get HTTP 429 with RATE_LIMIT_EXCEEDED. The list changes slowly, so keep a copy for a few minutes. Don't build offer links yourself, though: each offer's link already carries your user's ID.
Errors
Errors always have this shape:
{
"success": false,
"error": {
"code": "INVALID_API_KEY",
"message": "The API key or API secret is wrong, or the app is not approved yet."
},
"meta": { "timestamp": 1705789234, "request_id": "req_65a8f1c2b3d4e" }
}| Code | HTTP | When |
|---|---|---|
INVALID_API_KEY | 401 | Wrong API key or secret, or the app is not approved |
INVALID_PARAMETERS | 422 | A parameter is missing or wrong. error.message lists each field, e.g. {"platform": ["The selected platform is invalid."]} |
RATE_LIMIT_EXCEEDED | 429 | More than 60 requests in a minute. Wait, then retry with a growing delay. |
| none | 500 | Something went wrong on our side. Try again later. |
EliteWall