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.
curl -X GET 'https://<your_dgc_environment_url>/rest/2.0/assets?domainId=00000000-0000-0000-0000-000000006019'Steps
- Use the GET method of the /domainsendpoint to retrieve the domain ID:curl -X GET 'https://<your_dgc_environment_url>/rest/2.0/domains' 
- Use the GET method of the /assetsendpoint with the ID of your domain:curl -X GET 'https://<your_dgc_environment_url>/rest/2.0/assets?domainId=00000000-0000-0000-0000-000000006019'The total field in the response shows the total number of assets you have access to in the domain.  
Additional resources
- Refer to the REST API documentation provided with your version of Collibra Platform.