Quick Start Guide
Get up and running with Adev APIs in just a few minutes. Follow these simple steps to make your first API call.
Step 1
Get Your API Key
First, you'll need to register and get your API key from the dashboard.
javascript
// Your API key will look like this:
const API_KEY = "adev_live_sk_1234567890abcdef";
Step 2
Install SDK (Optional)
Install our official SDK for your preferred language.
bash
# npm
npm install @adev/api-client
# yarn
yarn add @adev/api-client
# pip
pip install adev-api-client
Step 3
Make Your First API Call
Send your first request to our API endpoint.
javascript
const response = await fetch('https://api.adev.tech/v1/users', {
method: 'GET',
headers: {
'Authorization': 'Bearer ' + API_KEY,
'Content-Type': 'application/json'
}
});
const data = await response.json();
console.log(data);
Step 4
Handle the Response
Process the API response and handle errors gracefully.
javascript
if (response.ok) {
const data = await response.json();
console.log('Success:', data);
} else {
const error = await response.json();
console.error('Error:', error.message);
}