> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.smartxaas.io/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Publisher API - Documentation Guide (v1.1)

**MOVED:** Publisher API Documentation is Now Centralized at [https://dev.api.cpidroid.com/docs#publisher-api](https://dev.api.cpidroid.com/docs#publisher-api)

**Overview:**

* [Offer Get API:](#h_01GT9B9GCSCFME8JVDY8QF1DV8)
* [Offerwall Get API:](#h_01GT9BA3ESPJK1RXB4XJ02MXSB)

---

# Offer Get API:

| API Name | End Point | API Doc |
| --- | --- | --- |
| Offer Get | https://api.cpidroid.com/offer/get?apikey=[APIKEY]&placement_id=[PLACEMENT_ID] |  [https://documenter.getpostman.com/view/6925801/2s93CNPEAt#fafd80de-1e4c-4d0f-a615-1ae7fff65237](https://documenter.getpostman.com/view/6925801/2s93CNPEAt#fafd80de-1e4c-4d0f-a615-1ae7fff65237)  |

_Note: Grab your API keys from_ [https://app.cpidroid.com/account/api?dashboard=publisher](https://app.cpidroid.com/account/api?dashboard=publisher)

Sample Code [PHP]:

```
<?php 
$apikey = 'YOUR_APIKEY';
$placement_id = 'PLACEMENT_ID';

$offers = file_get_contents('https://api.cpidroid.com/offer/get?apikey='.$apikey.'&placement_id='.$placement_id);
$offers = json_decode($offers, true);

if($offers['status'] == 'success' && $offers['count'] > 0){
    $offers = $offers['data'];
    print_r($offers);
}
?>
```

---

# Offerwall Get API:

| API Name | End Point | API Doc |
| --- | --- | --- |
| Offerwall Get | https://api.cpidroid.com/offerwall/get?apikey=[APIKEY]&placement_id=[PLACEMENT_ID]&uid=[USER_IDENTIFIER]&country=[COUNTRY] |  [https://documenter.getpostman.com/view/6925801/2s93CNPEAt#1b842b32-4758-4ea1-be6b-6da8e3b103fd](https://documenter.getpostman.com/view/6925801/2s93CNPEAt#1b842b32-4758-4ea1-be6b-6da8e3b103fd)  |

_Note: Grab your API keys from_ [https://app.cpidroid.com/account/api?dashboard=publisher](https://app.cpidroid.com/account/api?dashboard=publisher)

---

# Notice:  
We have migrated to GitBook:- [Publisher API - Documentation Guide (v1.1)](https://docs.smartxaas.io/cpidroid/publisher/publisher-api/publisher-api-documentation-guide-v1.1)