Get the available countries for a chart type
This endpoint is public and does not require authentication.
1const options = {
2 method: "GET",
3 headers: {
4 "Content-Type": "application/json",
5 "Authorization": "YOUR_API_TOKEN"
6 }
7};
8
9fetch("https://api.podengine.ai/api/v1/charts/:chartType/countries", options)
10 .then(response => response.json())
11 .then(data => console.log(data))
12 .catch(error => console.error('Error:', error));
Property | Type | Description |
---|---|---|
chartType | enum |
Property | Type | Description |
---|---|---|
status | literal: OK | |
data | object | |
└countries | array of string |