Cloudflare Pages API: Get information for a static site without requiring auth?
Basically I am wondering if there is an endpoint that lets me query basic information for a static site hosted on pages. An equivalent to neocities'
GET /api/info?sitename=SITENAME
!2 Replies
I mean Cloudflare itself has APIs to get all a project/sites info: https://developers.cloudflare.com/api/resources/pages/subresources/projects/methods/get/ but of course locked behind auth/api. That'd get you created at / last updated/ domain info
Cloudflare API | Pages › Projects › Get Project
Interact with Cloudflare's products and services via the Cloudflare API
If you wanted views/hits, could enable Web Analytics https://developers.cloudflare.com/pages/how-to/web-analytics/, and query that info via GraphQL: https://developers.cloudflare.com/analytics/graphql-api/, still all behind auth though