Skip to developer documentation
Browse developer documentation
API documentation / Websites

Websites

List websites

Find real website IDs and currencies in the authorized workspace.

GET/api/v1/sites

Access: Workspace key or OAuth analytics:read · Permission details

Request examples

Examples run from your server or terminal. Configure ATTRIBOO_TOKEN privately for authenticated requests. Replace example website IDs and values with your own. The examples make real requests when you run them.

cURL request
curl "https://www.attriboo.com/api/v1/sites" \
  -H "Authorization: Bearer $ATTRIBOO_TOKEN"

Response

Illustrative response. Fields below are inside the data object. Optional coverage, notes and continuation fields vary by report.

Response fields
FieldTypeDescription
workspacestringWorkspace name.
sitesarrayWebsites available to this connection.

sites[] fields

sites nested fields
FieldTypeDescription
idstringWebsite ID.
domainstringDomain.
namestringWebsite name.
currencystringWebsite currency.
timezonestringSaved IANA timezone.
JSON response
{
  "status": "success",
  "data": {
    "workspace": "Example workspace",
    "sites": [
      {
        "id": "site_example",
        "domain": "shop.example.com",
        "currency": "USD",
        "name": "Example shop",
        "timezone": "UTC"
      }
    ]
  }
}

Behavior and limits

Use a returned website ID or domain in report requests. A workspace with multiple websites requires an explicit site selection.