API Documentation

Using our API

Get Offers


If you would like us to notify you whenever an offer is completed, set up a server postback.

Our offers API consists of a single API call which retrieves in JSON format a list of all of our available offers. By adding additional URL parameters to the API call URL you may filter the offers returned in a variety of manners. A documentation for all of these options is provided in the text below.
NOTE: Your API key is allowed to make up to 10 calls a minute

https://api.danasmr.com/getOffers/{api_key}/?sub_id={sub_id}&s2={sub_id_2}&ip_address={ip_address}&country={country}


Parameter Required Description Type
api_key Required Your App API Key - Can be found in the Apps section String
sub_id Optional Your user's primary unique identifier. String
s2 Optional Your user's secondary unique identifier. String
ip_address Optional Returns offers related to the country associated with a certain IP Address. If non entered we will use the IP address of the API caller. String
country Optional Returns offers filtered by country. Please use "ALL" for all countries. If non entered we will use the ip_address parameter and the default fallback will be the IP address of the API caller. (Please use ISO-3166-1 standard countries) String



status 1

Content-Type: application/json

{
    "status":1,
    "msg":"success",
    "currency":"Coins",
    "offers":
    [{
        "id":"37031",
        "name":"Thumbr Pac Man WAP & Web BE",
        "logo":"https://api.danasmr.com/img/offers/p887abw6ox.png",
        "instructions":"Download the Pac Man Game",
        "amount":1250,
        "category":"Mobile",
        "os":"android",
        "link":"https://api.danasmr.com/click/1431525557895458/37031?sub_id={sub_id}&s2={s2}",
        "country":"US"
    }]
}



Get Reports


Our Reports API consists of a single API call which retrieves in JSON format a full report of your working ap. By adding a Start Date and an End Date you may filter the report by the dates you enter. If no date was entered then we will show you a report of today.

https://api.danasmr.com/getReports/{api_key}/?start_date={YYYY-MM-DD}&end_date={YYYY-MM-DD}


Parameter Required Description Type
api_key Required Your App API Key - Can be found in the Apps section String
start_date Optional The start date for your report Date
end_date Optional The end date for your report Date



Response 200

Content-Type: application/json

{
    "status":1,
    "msg":"success",
    "reports":{
        "clicks":"500",
        "leads":"250",
        "revenue":"$1000"
    }
}