Agents and accounts

Social media data in Clay

Enrich Clay rows with live public LinkedIn, Instagram, TikTok, YouTube and X data through Clay's HTTP API column and your SocialTap key.

On this page
  1. Save your key once
  2. Call an endpoint for each row
  3. What to add to a table
  4. Keep cells small

Add live public data to each row of a Clay table: a company's LinkedIn page, a prospect's latest posts for a first line, a creator's follower count, whether a company is running ads. Clay's HTTP API column sends one request per row with your SocialTap key, and you choose which fields become columns.

You need a Clay plan that includes the HTTP API column, and a SocialTap API key: a new account comes with 100 free credits. Each row is one SocialTap request at its endpoint's price, and failed requests are free. Clay also counts each row's call against its own plan.

Save your key once

  1. In your table, click Add enrichment, choose HTTP API and open Configure.
  2. Open Select header account and click + Add account.
  3. Under API Request Headers, add x-api-key as the key and your API key as the value. Name the account SocialTap and save it.

A key saved as an account stays out of the column, so it isn't shared with the table or a template made from it. Don't paste it into the column's Headers field.

Call an endpoint for each row

Every endpoint is a GET to its path, with its parameters in the query string. For a company's LinkedIn page:

  1. Set the method to GET and the endpoint to https://socialtap.dev/v1/linkedin/profile.
  2. Under Query string parameters, add handle. In its value, type / and pick the column that holds the company's LinkedIn link.
  3. Click Test, open the result's Cell details and click Add as column on each field you want, such as data.metrics.follower_count.
  4. Turn the column on for the whole table. Add a run condition so rows without a link don't send a request.

A row whose link SocialTap can't read returns an error in its cell, free, with a message that says what to send instead. The errors page lists every code.

What to add to a table

Each of these is one request per row. Every endpoint's page shows its inputs, its price and an example response.

A company's LinkedIn page

LinkedIn Profile API: send handle as the company's LinkedIn link, or as domain/ followed by its website when that's all you have. You get its name, follower count, description, website and location.

A prospect's latest posts, for a first line

LinkedIn Posts API with handle set to the person's LinkedIn link, or X (Twitter) User Posts API with their X handle. The newest post is the first item in data. Add limit=3 to fetch only what you'll read, then point Clay's AI column at the posts' text to write the first line.

A creator's follower count

Instagram Profile API, TikTok Profile API or YouTube Channel API with the creator's handle or profile link. data.metrics.follower_count is the count the platform shows now, not a stored one.

Whether a company is running ads

Google Ads Transparency Center Ads by Website API with query set to the company's website returns the ads that lead to it. For LinkedIn, use LinkedIn Ad Library Search API with query set to the company's name and search_by=advertiser. An empty data means no ads are showing.

Keep cells small

A response can be larger than a Clay cell holds. Add fields with only the paths you map, such as fields=display_name,metrics.follower_count, and the response carries only those. The price doesn't change.

Set max_age to accept a stored answer when you re-run a table: a cached answer is free.

Last updated