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
All API requests require authentication using your API key. You can use either header:
12
+
<Callouttype="info">
13
+
**🚀 Try it live!** Test all these endpoints interactively in our [API
14
+
Playground](/api) with real data and see instant responses. Perfect for
15
+
exploring query types and understanding the API structure.
16
+
</Callout>
13
17
14
-
```bash
15
-
curl -H "Authorization: Bearer YOUR_API_KEY" \
16
-
https://api.databuddy.cc/v1/analytics
17
-
```
18
+
## 🔐 Authentication
18
19
19
-
Or:
20
+
All API requests require authentication using your API key in the `X-Api-Key` header:
20
21
21
22
```bash
22
-
curl -H "x-api-key: YOUR_API_KEY" \
23
-
https://api.databuddy.cc/v1/analytics
23
+
curl -H "X-Api-Key: YOUR_API_KEY" \
24
+
https://api.databuddy.cc/v1/query
24
25
```
25
26
26
27
Get your API key from your [dashboard settings](https://app.databuddy.cc/settings/api). Learn more about scopes and resource access on the [API Keys](../api-keys) page.
27
28
29
+
<Callouttype="tip">
30
+
**Test your API key** instantly in the [API Playground](/api) - no need to
31
+
write code first!
32
+
</Callout>
33
+
28
34
## 📊 Analytics Endpoints
29
35
30
36
### Get Website Analytics
@@ -46,7 +52,7 @@ GET /v1/websites/{website_id}/analytics
0 commit comments