---
title: Customizing the Data.com integration
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

> **Info:** **Kentico EMS required**
>
> Features described on this page require the **Kentico EMS** license.

> **Warning:** The [Data.com](http://data.com/) integration stops working as of 1st September 2016, because [Data.com](http://data.com/) terminates third party access to their API. We are sorry for any inconvenience caused.

If you wish to customize any aspect of the [Data.com integration](https://docs.kentico.com/k82/integrating-3rd-party-systems/data-com-integration.md), you need to [request your own API access token](http://www.data.com/data-resources/connect-developer/index.jsp) from Data.com.

> **Note:** **Important**: Modifying or extending the default functionality without using your own Data.com token is a violation of the licensing terms.

## Using a custom Data.com API token

Follow the steps below if you need to work with a custom Data.com access token in your API:

1. Open your web project in Visual Studio.
2. Create a new class:
   - In the project's **App\_Code** folder (or **CMSApp\_AppCode -> Old\_App\_Code**if the project is installed as a web application)\
     OR
   - As part of a custom assembly (Class library)
3. Add a reference to the **CMS.DataCom** namespace:

   ```csharp

    using CMS.DataCom;

   ```
4. Make the class implement the **ITokenProvider** interface.
5. Add the **GetToken()** method and return your Data.com token as a string:

   ```csharp

   public class CustomDataComTokenProvider : ITokenProvider
   {
       /// <summary>
       /// Gets the token used for Data.com communication.
       /// </summary>
       /// <returns>Token</returns>
       public string GetToken()
       {
           return "Your Data.Com API Token";
       }
   }

   ```

Whenever you call the **DataComHelper.CreateClient** method in your custom code, add an instance of your **ITokenProvider** class as a parameter:

```csharp

using CMS.DataCom;

...

DataComClient client = DataComHelper.CreateClient(new CustomDataComTokenProvider());

```
