Skip to main content
GET
/
user-sites
Get User Sites
curl --request GET \
  --url https://api.example.com/user-sites \
  --header 'X-API-Key: <api-key>'
{
  "page": 123,
  "sites": 123,
  "page_size": 123,
  "page_count": 123,
  "response": [
    {
      "website": "<string>",
      "website_id": 123,
      "api_websites": [
        {
          "adnetwork": "<string>",
          "site_id": "<string>",
          "website_name": "<string>"
        }
      ]
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.adgreg.com/llms.txt

Use this file to discover all available pages before exploring further.

Returns the websites you have configured in the website connector in your Adgreg dashboard. Each item in the response contains one Adgreg website with the list of adnetwork site IDs linked to it.
The website_id values returned here are Adgreg-issued IDs. Use them when querying statistics — Adgreg will automatically resolve which adnetwork sites belong to that website.

Authorizations

X-API-Key
string
header
required

Query Parameters

ad_network
enum<string> | null
Available options:
exoclick,
trafficstars,
kadam,
clickadilla,
onclicka,
twinred,
trafficshop,
hilltop
site_id
integer | null
page
integer
default:1
Required range: x >= 1
page_size
integer
default:100
Required range: 10 <= x <= 100

Response

Successful Response

page
integer
required
sites
integer
required
page_size
integer
required
page_count
integer
required
response
UserSiteItem · object[]
required