Accessing the API Offers

API URL :

https://offerwall.taskwall.io/api/?app_id=&country=&os=android&userid={user_id}

An application is required to use the API. Once you have created an app you will have an API KEY, that you will need in the following steps"

1 - Navigate to the Apps Page and select the view icon


2- Your API can be located here

Parameter Required Type Description
app_id Required String The Api key for the app
userid Required String Your userid (Unique ID) E.g.: &userid=user1234
country Optional String Country code of the user. This will help show the offers available to the user in his country. Value: TR, US, GB, etc.
os Optional String Filters the list of offers to show the offers available to that device. Android = android, IOS = ios, Web = desktop

Response Example:


            {
              "status": "success",
              "count": 2,
              "offers": [
                {
                  "offer_id": "47489",
                  "title": "Bright Objects Hidden object",
                  "description": "Play and Reach Level 120 (New Users Only)",
                  "icon": "https:\/\/taskwall.cdns-works.com\/files\/uploads\/Off_A_70677.jpg",
                  "conversion": "Play and Reach Level 120 (New Users Only)",
                  "payout": "0.28",
                  "link": "http:\/\/trck.app.taskwall.io\/?offer_url=64ded38a57199==&uid=64ded38a5719b4600==&from=api&appid=232",
                  "user_amount": 28.000000000000004,
                  "devices": ["android"],
                  "available_in": "TR",
                  "countries": ["TR"]
                },
                {
                  "offer_id": "45052",
                  "title": "Kariyer.net",
                  "description": "Register (new users only)",
                  "icon": "https:\/\/taskwall.cdns-works.com\/files\/uploads\/Off_A_68235.png",
                  "conversion": "Register (new users only)",
                  "payout": "0.03",
                  "link": "http:\/\/trck.app.taskwall.io\/?offer_url=64ded38a5eb00==&uid=64ded38a5eb024389==&from=api&appid=232",
                  "user_amount": 3.0,
                  "devices": ["ios"],
                  "available_in": "TR",
                  "countries": ["TR"]
                }
              ]
            }
              

PHP Example:

            
            <?php
            $curl = curl_init();

            $url = "https://offerwall.taskwall.io/api/?app_id={your_api_key}&country={country_code}&os={os}&userid={user_id}";

            curl_setopt_array($curl, array(
              CURLOPT_URL => $url,
              CURLOPT_RETURNTRANSFER => true,
              CURLOPT_ENCODING => '',
              CURLOPT_MAXREDIRS => 10,
              CURLOPT_TIMEOUT => 0,
              CURLOPT_FOLLOWLOCATION => true,
              CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
              CURLOPT_CUSTOMREQUEST => 'GET',
            ));

            $response = curl_exec($curl);
            curl_close($curl);
            $offers = json_decode($response,true);

            if ($offers['status'] == "success"){
            foreach($offers['offers'] as $var => $value){
            echo $value['offer_id']."\n";
            echo $value['title']."\n";
            //and more
            }
            }
            ?>