📩 Fetching Data

Learn how to integrate our system with JavaScript.

You can easily use echoAR with your JavaScript project by using our RESTful API.

You can use the fetch interface to query your project data set using the query API call:

var echoDB;
// Query echoAR
fetch('https://console.echoar.xyz/query?key=' + API_KEY)
.then((response) => response.json())
.then((json) => {
// Store database
echoDB = json; // The JSON response
.catch((error) => {

You will be able to validate your API key and retrieve the database entries as follows:

var apiKey = echoDB.apiKey;
var db = Object.values(echoDB.db);