List projects
Get a list of projects.
Request
GET or POST https://api.wattspeed.com/v1/projects
Headers
Your API token.
Parameters
Use this to filter by domain - should be URL encoded.
Use this to filter by device.
Allowed values: mobile
, desktop
.
Use this to filter by location. When passing multiple locations, include each location in a different parameter using the same name. Example: location=s_carolina&location=tokyo
.
Allowed values: s_carolina
, los_angeles
, frankfurt
, london
, tokyo
, sao_paulo
.
Use this to filter by frequency.
Allowed values: manual
, daily
, weekly
, monthly
.
Example request
GET
https://api.wattspeed.com/v1/projects?domain=wattspeed.com&device=desktop&location=s_carolina&location=london&frequency=manual
POST
{
"domain": "wattspeed.com",
"device": "desktop",
"location": ["s_carolina", "london"],
"frequency": "manual"
}
Responses
- 200
- 400
- 401
- 405
- 406
- 415
- 500
[
{
"url": "https://wattspeed.com",
"device": "desktop",
"locations": [
"s_carolina",
"london"
],
"lastUpdate": "2022-07-01T00:46:41",
"frequency": "manual",
"impressions": 237,
"clicks": 83
}
]
The message
and errors
are subject to change and may include more info than listed here.
{
"status": "BAD_REQUEST",
"message": "Required request header 'Authorization' is not present",
"errors": [
"Required request header 'Authorization' is not present"
]
}
The message
and errors
are subject to change and may include more info than listed here.
{
"status": "UNAUTHORIZED",
"message": "API token not valid. Please enter a valid API token",
"errors": [
"API token not valid. Please enter a valid API token"
]
}
The message
and errors
are subject to change and may include more info than listed here.
{
"status": "METHOD_NOT_ALLOWED",
"message": "Request method 'PUT' not supported",
"errors": [
"PUT method is not supported for this request. Supported methods are GET, POST"
]
}
The message
and errors
are subject to change and may include more info than listed here.
{
"status" : "NOT_ACCEPTABLE",
"message" : "No acceptable representation",
"errors" : [
"Media type is not supported. Supported media type is application/json"
]
}
The message
and errors
are subject to change and may include more info than listed here.
{
"status" : "UNSUPPORTED_MEDIA_TYPE",
"message" : "Content-Type 'application/x-www-form-urlencoded' is not supported",
"errors" : [
"application/x-www-form-urlencoded media type is not supported. Supported media type is application/json"
]
}
The message
and errors
are subject to change and may include more info than listed here.
{
"status": "INTERNAL_SERVER_ERROR",
"message": "Something went wrong, please try again",
"errors": [
"Something went wrong, please try again"
]
}