---
title: "Exclude APIs from being tracked in xDB"
slug: "exclude-apis-from-being-tracked-in-xdb"
abstract: ""
---
# Exclude APIs from being tracked in xDB

Using the [Connect API exclusion functionality](https://doc.sitecore.com/xp/en/developers/103/sitecore-experience-commerce/page-events,-goals,-outcomes,-and-custom-analytics-data.md "Page events, goals, outcomes, and custom analytics data"), you can reduce the number of records tracked in xDB. To do this, you modify the list of APIs in the `excludeUrlTracking` section of the `Sitecore.Commerce.XA.Foundation.Connect.config file` as shown in the following example.

```xml
<excludeUrlTracking>
      <url>/api/cxa/catalog/GetCurrentProductStockInfo</url>
      <url>/api/cxa/Catalog/GetProductList</url>
      <url>/api/cxa/Catalog/GetPromotedProducts</url>
      <url>/api/cxa/checkout/getgiftcardbalance</url>
</excludeUrlTracking>

```