1. Create an account
- Open the dashboard.
- Register with email + password or continue with Google / GitHub.
- Verify your email (a link is sent to your inbox).
2. Create an API key
After verification, open API Keys in the dashboard and create a key. The raw key is displayed once — copy it and store it securely. StudioAPI only stores the SHA-256 hash of your key.
3. Make your first request
curl https://use.studioapi.dev/api/v1/wilayah/provinsi \
-H "x-api-key: $STUDIOAPI_KEY"
// JavaScript
const res = await fetch('https://use.studioapi.dev/api/v1/wilayah/provinsi', {
headers: { 'x-api-key': process.env.STUDIOAPI_KEY },
});
const body = await res.json();
# Python
import requests
res = requests.get(
"https://use.studioapi.dev/api/v1/wilayah/provinsi",
headers={"x-api-key": os.environ["STUDIOAPI_KEY"]},
)
data = res.json()
4. Read the response
{
"data": [
{
"id": "11",
"code": "11",
"name": "Aceh",
"alt_name": "Nanggroe Aceh Darussalam",
"lat": 4.6951,
"lng": 96.7494,
"is_active": 1
}
],
"meta": {
"total": 34,
"page": 1,
"per_page": 20,
"total_pages": 2
}
}
That’s it. Explore the API reference for every endpoint.