# Fetching Data

You can easily use echo3D with your React Native project by using our RESTful API.

You can use the [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch) interface to query your project [data set](https://docs.echo3d.com/api/objects#1-complete-data-set) using the [query API call](https://docs.echo3d.com/api/queries#get-entries):

{% tabs %}
{% tab title="app.js" %}

```javascript
...

render: function() {
 
  var echoDB;
  
  // Query echo3D
  fetch('https://api.echo3D.com/query?key=' + API_KEY + '&secKey=' + SEC_KEY)
  .then((response) => response.json())
  .then((json) => {
    // Store database
    global.echoDB = json; // Save JSON response as a global variable
  })
  .catch((error) => {
    console.error(error);
  });
  
  ...

}

...
```

{% endtab %}
{% endtabs %}

You will be able to access your API key and [database entries](https://docs.echo3d.com/api/objects#2-entries-database) anywhere as follows:

```javascript
var apiKey = global.echoDB.apiKey;
var db = Object.values(global.echoDB.db);
```
