Agency Lead Gen Pipeline
Pricing
Pay per usage
Go to Apify Store
Agency Lead Gen Pipeline
Pricing
Pay per usage
You can access the Agency Lead Gen Pipeline programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.
1import { ApifyClient } from 'apify-client';2
3// Initialize the ApifyClient with your Apify API token4// Replace the '<YOUR_API_TOKEN>' with your token5const client = new ApifyClient({6 token: '<YOUR_API_TOKEN>',7});8
9// Prepare Actor input10const input = {11 "serviceCategory": "digital-marketing",12 "location": "United States",13 "maxAgencies": 50,14 "directorySources": [15 "clutch",16 "sortlist",17 "agencyspotter",18 "designrush"19 ],20 "emailTemplate": `Hi {{firstName}},21
22I came across {{companyName}} and was impressed by your work in {{topService}}.23
24I'd love to explore whether we might be a fit to work together.25
26Would you have 15 minutes for a quick call this week?27
28Best,29[Your name]30
31---32To unsubscribe: {{unsubscribeLink}}`,33 "emailSubject": "Quick question for {{companyName}}",34 "finalStep": "none",35 "proxyConfiguration": {36 "useApifyProxy": true37 }38};39
40// Run the Actor and wait for it to finish41const run = await client.actor("ryanclinton/agency-lead-gen-pipeline").call(input);42
43// Fetch and print Actor results from the run's dataset (if any)44console.log('Results from dataset');45console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);46const { items } = await client.dataset(run.defaultDatasetId).listItems();47items.forEach((item) => {48 console.dir(item);49});50
51// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docsThe Apify API client for JavaScript is the official library that allows you to use Agency Lead Gen Pipeline API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.
Install the apify-client
$npm install apify-clientOther API clients include: