You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/stats-api.md
+7-5
Original file line number
Diff line number
Diff line change
@@ -19,25 +19,27 @@ Take a look at our [Events API Reference](events-api.md) if you want to record p
19
19
20
20
## Authentication
21
21
22
-
You can obtain an API key for your account by going to your user settings page [plausible.io/settings](https://plausible.io/settings).
22
+
You can create a new stats API key by going to your Plausible Analytics account, navigating to "**Account Settings**" and clicking on the section called "**API Keys**". The key will be valid for all sites that you own.
23
23
24
-
After creating a token, you can authenticate your request by sending the token in the Authorization header of your request.
24
+
Click "**New API Key**" and be sure you save the result as you will only see the key once. However, you can always delete the key and create a new one if you no longer remember what it is.
25
+
26
+
After creating an API key, you can authenticate your request by sending the key in the Authorization header of your request.
25
27
26
28
### Example curl request
27
29
28
-
In the following request, replace YOUR-TOKEN with a reference to your token and site_id value with your domain.
30
+
In the following request, replace `YOUR-KEY` with a reference to your stats API key and `site_id` value with your domain as you've added it to your Plausible account.
API keys have a rate limit of 600 requests per hour by default. If you have special needs for more requests, please contact us to request more capacity.
42
+
API keys have a rate limit of 600 requests per hour by default. If you have special needs for more requests, [please contact us](https://plausible.io/contact) to request more capacity.
0 commit comments