Skip to content
Docs

Keys and access

Get the offer list as JSON from your own server and show it in your own design.

Endpoint

GEThttps://elitewall.io/api/v1/offers

Your 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 public

Used in the offerwall link and in API requests. It is part of every wall link, so it isn't a secret.

API secretkeep private

Used 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_ID

Call 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: 59

Over 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" }
}
CodeHTTPWhen
INVALID_API_KEY401Wrong API key or secret, or the app is not approved
INVALID_PARAMETERS422A parameter is missing or wrong. error.message lists each field, e.g. {"platform": ["The selected platform is invalid."]}
RATE_LIMIT_EXCEEDED429More than 60 requests in a minute. Wait, then retry with a growing delay.
none500Something went wrong on our side. Try again later.