> For the complete documentation index, see [llms.txt](https://developer.collibra.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.collibra.com/tutorials/count-the-number-of-assets-in-a-domain-with-the-rest-api.md).

# Count the number of assets in a domain with the REST API

In this tutorial you learn how to use the REST API to get the total number of assets in a domain.

```bash
curl -X GET 'https://<your_dgc_environment_url>/rest/2.0/assets?domainId=00000000-0000-0000-0000-000000006019'
```

## Steps

{% stepper %}
{% step %}
Use the **GET** method of the `/domains` endpoint to retrieve the domain ID:

```bash
curl -X GET 'https://\<your_dgc_environment_url\>/rest/2.0/domains'
```

<img src="/files/bqJaxGwwG4oYwNL8bVws" alt="" width="375">
{% endstep %}

{% step %}
Use the **GET** method of the `/assets` endpoint with the ID of your domain:

```bash
curl -X GET 'https://\<your_dgc_environment_url\>/rest/2.0/assets?domainId=00000000-0000-0000-0000-000000006019'
```

<i class="fa-chevrons-right">:chevrons-right:</i> The **total** field in the response shows the total number of assets you have access to in the domain.

<img src="/files/zOcUNHXrc2TfxyuCK4wS" alt="" width="375">
{% endstep %}
{% endstepper %}

## Additional resources

* Refer to the REST API documentation provided with your version of Collibra Platform.
