> For the complete documentation index, see [llms.txt](https://docs.comfortable.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.comfortable.io/sdk/javascript/query-an-asset.md).

# Query an Asset

```javascript
var options = {};

api.getAsset('968393848009134080', options)
  .then(result => {
    // futher implementation
  })
  .catch(err => {
    throw err;
  })
```

{% hint style="success" %}
You can also use the query option `embedAssets: true` to include assets when making queries for documents.
{% endhint %}

### Available query options:

* [locale](/sdk/javascript/query-options.md#locale)
* [fields](/sdk/javascript/query-options.md#fields)
