API: Traffic and reports

Requests, cache and visitors; the route report by country; failed visits and the page check.

GET /domains/{domain}/traffic services.read

Traffic

Requests, requests answered from the cache, bytes, unique visitors by class (people, search engines, AI, other bots), the busiest bots, the top countries and the names.

Query fieldValuesMeaning
hours 24 | 168 | 720 | 2160 Period in hours (default 24).
curl -H "Authorization: Bearer $KEY" \
  https://my.cloud9.ir/api/customer/v1/domains/example.com/traffic
GET /domains/{domain}/geo-log services.read

Route report

For names with origins per country: which visitor country the nodes sent to which origin, with counts, shares and the newest requests.

Query fieldValuesMeaning
hours 1 | 24 | 168 Period in hours (default 24).
host Text Only this proxied name.
cc Text Only this visitor country (two letters).
origin Text Only this origin.
node Text Only this node.
ip Text Visitor addresses starting with this.
limit 1-500 Most rows to return.
curl -H "Authorization: Bearer $KEY" \
  https://my.cloud9.ir/api/customer/v1/domains/example.com/geo-log
GET /domains/{domain}/failed-visits services.read

Failed visits

Visitors who did not get the page through the nodes, and why: origin down or too slow, origin error, left before the answer, firewall, block, request limit or browser check.

Query fieldValuesMeaning
hours 1 | 24 | 168 Period in hours (default 24).
host Text Only this proxied name.
kind Text Only this reason, such as origin_down.
cc Text Only this visitor country (two letters).
ip Text Visitor addresses starting with this.
limit 1-300 Most rows to return.
curl -H "Authorization: Bearer $KEY" \
  https://my.cloud9.ir/api/customer/v1/domains/example.com/failed-visits
GET / POST /domains/{domain}/page-check services.read

Page check

GET returns the last check of the files your pages load from other sites; POST runs a new one (at most every two minutes).

Body fieldValuesMeaning
run 1 | 0 With POST: 0 only reads the last result.
curl -H "Authorization: Bearer $KEY" \
  https://my.cloud9.ir/api/customer/v1/domains/example.com/page-check

No answer here? Sign in to the portal and open a ticket. Open a ticket