Skip to content

Instantly share code, notes, and snippets.

@alsotang
Created November 19, 2022 17:03
Show Gist options
  • Save alsotang/e2ab594097fe2ede75364784fef46787 to your computer and use it in GitHub Desktop.
Save alsotang/e2ab594097fe2ede75364784fef46787 to your computer and use it in GitHub Desktop.
query data transfer of a domain on Cloudflare
https://developers.cloudflare.com/analytics/graphql-api/
{
viewer {
zones(filter: {zoneTag: $tag}) {
httpRequests1dGroups(limit: 7, orderBy: [date_DESC], filter: {date_in: ["2022-11-19", "2022-11-18"]}) {
dimensions {
date
}
sum {
bytes
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment