# API: List campaigns

# getAffiliateCampaigns

List affiliate campaigns

TIP

This API call uses pagination for results.

# Request

GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=getAffiliateCampaigns

# PHP Samples

# Response

{
    "success": true,
    "campaigns": {
        "3": {
            "id": "3",
            "campid": "test",
            "name": "test",
            "description": "Test campaign",
            "redirect_url": "https:\/\/hostbillapp.com\/",
            "date_start": "2023-02-01",
            "date_end": "",
            "status": "Draft",
            "notes": "",
            "banners": "[]",
            "aff_ids": ""
        }
    },
    "call": "getAffiliateCampaigns",
    "sorter": {
        "perpage": 25,
        "totalpages": 1,
        "sorterrecords": 1,
        "sorterpage": 1
    },
    "server_time": 1684238632
}
Last Updated: 9/30/2024, 2:47:06 PM