Browse developer documentation
Websites
List websites
Find real website IDs and currencies in the authorized workspace.
GET
/api/v1/sitesAccess: 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.
| Field | Type | Description |
|---|---|---|
workspace | string | Workspace name. |
sites | array | Websites available to this connection. |
sites[] fields
| Field | Type | Description |
|---|---|---|
id | string | Website ID. |
domain | string | Domain. |
name | string | Website name. |
currency | string | Website currency. |
timezone | string | Saved 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.