# Connecting to Clay

{% hint style="success" %}
You first need to create an account, you can sign up [here](https://app.adyntel.com/signup) to receive 50 credits to test it out.
{% endhint %}

The endpoints allow you to scrape different ad libraries for active or historical ads a company has set up through that platform.

It takes a social page or company domain as input depending on the endpoint.

{% hint style="warning" %}
Company domain has to be passed in the 'company.com' format, meaning all prefixes like 'https\://' or '[www](http://www).' need to be removed.
{% endhint %}

To connect Adyntel to Clay, you'll need to use the 'HTTP API' connector in Clay. This connector allows you to leverage the Adyntel workflows directly in Clay.

{% hint style="info" %}
POST <https://api.adyntel.com/{endpoint}>
{% endhint %}

<figure><img src="https://979040678-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQNpulpX2TyKdaESg4EM3%2Fuploads%2FnNtXojndow3OMNil9LX5%2Fscreely-1708510074765.png?alt=media&#x26;token=0a03ef37-8651-40df-aeae-ed5d79d56bb6" alt=""><figcaption><p>Click on 'Enrich Data' and select the 'HTTP API'</p></figcaption></figure>

Next, set up the API as seen in the image below. Use the email you used to register your Adyntel account + the api key as unique identifiers. Then map the 'company\_domain' parameter to the table column that contains domains.

<figure><img src="https://979040678-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQNpulpX2TyKdaESg4EM3%2Fuploads%2FDUeGqlS98HXZHIIU8Wni%2FScreenshot%202024-09-30%20at%2009.30.29.png?alt=media&#x26;token=99a0b0d3-26ec-48a6-bd08-f010cb603cdb" alt=""><figcaption></figcaption></figure>

Lastly, make sure to set the rate limits as below so the API doesn't time out -- all data is being scraped in real time which means it takes a bit longer for the API to return a response to Clay.

<figure><img src="https://979040678-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQNpulpX2TyKdaESg4EM3%2Fuploads%2FYkmBmrqb5hef8r8numIl%2FScreenshot%202024-09-30%20at%2011.33.53.png?alt=media&#x26;token=57d772a7-709f-40e3-ba26-49b56e81de86" alt=""><figcaption></figcaption></figure>

Hit 'save' or 'save and run' and you're good to go.
