1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "bios": [
12 {
13 "bioText": "Founder at TechAI. Partnerships: partnerships@techai.io | WhatsApp: Available upon inquiry",
14 "profileUrl": "https://instagram.com/techfounder"
15 },
16 {
17 "bioText": "Daily tech breakdowns! Inquiries: sponsor@creatorvids.com | Store: linktr.ee/creator",
18 "profileUrl": "https://youtube.com/@creatorvids"
19 },
20 {
21 "bioText": "Building SaaS. Collabs: collab@saasgrowth.co | DM open",
22 "profileUrl": "https://twitter.com/saasgrowth"
23 },
24 {
25 "bioText": "Fitness coach. Booking: coach@fitnessdaily.com | wa.me/14155552671",
26 "profileUrl": "https://tiktok.com/@fitnessdaily"
27 },
28 {
29 "bioText": "Growth marketer. Contact: alex@growthagency.io",
30 "profileUrl": "https://linkedin.com/in/marketingpro"
31 },
32 {
33 "bioText": "Fullstack tutorials. Inquiries: business@devtutorials.net",
34 "profileUrl": "https://youtube.com/@devtutorials"
35 },
36 {
37 "bioText": "UI/UX studio. Projects: hello@designstudio.org | linktr.ee/design",
38 "profileUrl": "https://instagram.com/designstudio"
39 },
40 {
41 "bioText": "Daily AI news. Sponsor deals: ads@aiinsights.com",
42 "profileUrl": "https://youtube.com/@aiinsights"
43 },
44 {
45 "bioText": "Crypto & Web3 analyst. Press: press@cryptonews.io",
46 "profileUrl": "https://twitter.com/cryptonews"
47 },
48 {
49 "bioText": "Nomad life. Bookings: info@travelvlogger.me | wa.me/14155559876",
50 "profileUrl": "https://instagram.com/travelvlogger"
51 }
52 ],
53 "proxyConfiguration": {
54 "useApifyProxy": false
55 },
56 "maxItems": 25
57};
58
59
60const run = await client.actor("deepaksheoran172/social-bio-contact-email-extractor").call(input);
61
62
63console.log('Results from dataset');
64console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
65const { items } = await client.dataset(run.defaultDatasetId).listItems();
66items.forEach((item) => {
67 console.dir(item);
68});
69
70