Get All Drones
This API is used to retrieve all registered and unregistered drones.
Last updated
Was this helpful?
Was this helpful?
curl --location 'https://ags.aeromegh.com/Aeromegh/GCSDrones' \
--header 'Authorization: Bearer <API_KEY>'//Please install 'axios' module first
//Set your API key before making the request
const axios = require('axios');
let config = {
method: 'get',
maxBodyLength: Infinity,
url: 'https://ags.aeromegh.com/Aeromegh/GCSDrones',
headers: {
'Authorization': '<API_KEY>'
}
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
//Please install 'requests' package first
//Set your API key before making the request
import requests
url = "https://ags.aeromegh.com/Aeromegh/GCSDrones"
payload = {}
headers = {
'Authorization': 'Bearer <API_KEY>'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
{
"drones": [
{
"drone_id": "P00001DESKTOP-4R4A4U6E",
"drone_name": "DroneD",
"userid": "edb1bf33-0a01-4362-8474-e54e97873391",
"project": null,
"plan": null,
"last_keep_alive": null,
"last_tele_data": null,
"total_flight_time": {
"minutes": 41,
"seconds": 24,
"milliseconds": 181
},
"last_flight_log": null,
"flight_id": null,
"stream_key": null,
"registered_date": "2023-08-24T13:36:35.451Z",
"lease_drone": false,
"drone_rent": "0",
"dsp_drone_id": null,
"uin": null,
"id": "edf7cf95-9a09-44b4-b887-cdd3039f91b9"
},
{
"drone_id": "P00001DESKTOP-A7J4QKQ",
"drone_name": "drone29",
"userid": "edb1bf33-0a01-4362-8474-e54e97873391",
"project": null,
"plan": null,
"last_keep_alive": null,
"last_tele_data": null,
"total_flight_time": {},
"last_flight_log": null,
"flight_id": null,
"stream_key": null,
"registered_date": "2023-08-29T11:24:22.275Z",
"lease_drone": false,
"drone_rent": "0",
"dsp_drone_id": null,
"uin": null,
"id": "03063e58-a012-4a91-9b0f-bc2aedc9bf06"
}
],
"unregisteredAssignedDrones": []
}