Public
Like
1
clay-api-proxy
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v10View latest version
Setup your own API / SDK to enrich data with Clay.
-
Create workbook using this Clay template
-
Remix this val
-
Update CLAY_WEBHOOK_URL in
Environment variables
(get it from your Clay table'sWebhook
column) -
Update the HTTP API endpoint in the
HTTP API
column in Clay to point to your val's/clay-webhook
endpoint -
Test it with one of the examples below!
// NOTE: You need to set GITHUB_TOKEN as an environment variable to run this
import { clay } from "https://esm.town/v/charmaine/clay-proxy/sdk.ts";
import { emailsFromGitHubUsername } from "https://esm.town/v/stevekrouse/github-user-email/index.ts";
// First get email from GitHub username
const emails = await emailsFromGitHubUsername("charmaine");
const email = emails[0];
// Then enrich with Clay
const result = await clay({
email,
github_username: "charmaine",
repo: "val-town/vt",
source: "github_stargazer"
});
console.log(result);
import { clay } from "https://esm.town/v/charmaine/clay-proxy/sdk.ts";
const result = await clay({
email: "charmainekmlee@gmail.com",
source: "user_signup"
});
console.log(result);
email
- Required - Email address to enrichgithub_username
- Optional - GitHub usernamesource
- Optional - Data sourcerepo
- Optional - Repository name
person
- Namelinkedin
- LinkedIn URLcompany
- Company of employmentlinkedin_data
- LinkedIn profile datafunding
- Funding stagetotalFunding
- Total funding raisedemployeeCount
- Number of employees