Kodulehed

Märkmed
Expert level
The API key should be sent as a Bearer token in the Authorization header of the request. Get your API key.
Nimekiri

API lõpp-punkt:

GET
https://stat.pulss.eu/api/v1/websites

Request example:

curl --location --request GET 'https://stat.pulss.eu/api/v1/websites' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parameter
Tüüp
Description
search
valikuline string
The search query.
search_by
valikuline string
Otsi. Possible values are: domain for Domeen. Defaults to: domain.
sort_by
valikuline string
Sort by. Possible values are: id for Date created, domain for Domeen. Defaults to: id.
sort
valikuline string
Sort. Possible values are: desc for Z-A, asc for A-Z. Defaults to: desc.
per_page
valikuline int
Results per page. Possible values are: 10, 25, 50, 100. Defaults to: 10.
Näita

API lõpp-punkt:

GET
https://stat.pulss.eu/api/v1/websites/{id}

Request example:

curl --location --request GET 'https://stat.pulss.eu/api/v1/websites/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Store

API lõpp-punkt:

POST
https://stat.pulss.eu/api/v1/websites

Request example:

curl --location --request POST 'https://stat.pulss.eu/api/v1/websites' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'domain={domain}'
Parameter
Tüüp
Description
domain
nõutud string
Domeeni nimi.
privacy
valikuline integer
Stats page privacy. Possible values are: 0 for Avalik, 1 for Privaatne, 2 for Salasõna. Defaults to: 1.
password
valikuline string
The password for the statistics page. Only works with privacy set to 2.
email
valikuline integer
Periodic email reports. Possible values are: 0 for Väljas, 1 for Sees. Defaults to: 0.
exclude_bots
valikuline integer
Exclude common bots from being tracked. Possible values are: 0 for Väljas, 1 for Sees. Defaults to: 1.
exclude_params
valikuline string
Exclude URL query parameters from being tracked. One per line..
exclude_ips
valikuline string
Exclude IPs from being tracked. One per line..
Uuenda

API lõpp-punkt:

PUT PATCH
https://stat.pulss.eu/api/v1/websites/{id}

Request example:

curl --location --request PUT 'https://stat.pulss.eu/api/v1/websites/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'
Parameter
Tüüp
Description
privacy
valikuline integer
Stats page privacy. Possible values are: 0 for Avalik, 1 for Privaatne, 2 for Salasõna.
password
valikuline string
The password for the statistics page. Only works with privacy set to 2.
email
valikuline integer
Periodic email reports. Possible values are: 0 for Väljas, 1 for Sees.
exclude_bots
valikuline integer
Exclude common bots from being tracked. Possible values are: 0 for Väljas, 1 for Sees.
exclude_params
valikuline string
Exclude URL query parameters from being tracked. One per line..
exclude_ips
valikuline string
Exclude IPs from being tracked. One per line..
Kustuta

API lõpp-punkt:

DELETE
https://stat.pulss.eu/api/v1/websites/{id}

Request example:

curl --location --request DELETE 'https://stat.pulss.eu/api/v1/websites/{id}' \
--header 'Authorization: Bearer {api_key}'