Repository navigation
API Request #6689
Unanswered
MFerrari5
asked this question in
Self-Hosted Support
API Request
#6689
Replies: 1 comment
|
Use the URL of the Plausible instance, not the site you measure. If your self-hosted CE dashboard is at curl -X POST 'https://plausible.example.com/api/v2/query' \
-H "Authorization: Bearer $PLAUSIBLE_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"site_id":"shop.example.com","metrics":["visitors"],"date_range":"7d"}'For Plausible Cloud the instance URL is |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi there,
Quick question:
When making a request using the Stats API, should I use my site/subdomain in the request URL, for example:
https://plausible.{{my_subdomain}}?Also, is this setup specific to the Community Edition?
Thanks!
All reactions