1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "items": [
12 {
13 "searchQuery": {
14 "term": "website performance audit",
15 "url": "http://www.google.com/search?q=website+performance+audit&hl=en",
16 "device": "DESKTOP",
17 "page": 1,
18 "type": "SEARCH",
19 "domain": "google.com",
20 "countryCode": "US",
21 "languageCode": "en",
22 "locationUule": null,
23 "resultsPerPage": 10
24 },
25 "organicResults": [
26 {
27 "title": "PageSpeed Insights",
28 "url": "https://pagespeed.web.dev/",
29 "position": 1,
30 "description": "Make your web pages fast on all devices. Check out. What's new · Documentation · Learn about Web Performance.Read more"
31 },
32 {
33 "title": "Complete Website Performance Audit Checklist",
34 "url": "https://dev.to/digitalunicon/complete-website-performance-audit-checklist-2fi",
35 "position": 2,
36 "description": "A. Page Speed Audit · Measure Load Time · Reduce Render-Blocking Resources · Optimize Above-the-Fold Content · Minify CSS & JavaScript. Compress ...Read more"
37 },
38 {
39 "title": "GTmetrix: Home Page",
40 "url": "https://gtmetrix.com/",
41 "position": 3,
42 "description": "Gain a clear, complete view of your site's real performance. Go beyond a single score. See exactly what's slow, why it's slow, and what to fix first.Read more"
43 },
44 {
45 "title": "Website Speed Test | Pingdom Tools",
46 "url": "https://tools.pingdom.com/",
47 "position": 4,
48 "description": "Use this free Website Speed Test to analyze the load speed of your websites, and learn how to make them faster."
49 },
50 {
51 "title": "Free Website Performance Audit | Speed Check",
52 "url": "https://pressd.io/free-website-performance-audit/",
53 "position": 5,
54 "description": "Get a free website performance audit to understand it's current speed and loading efficiency. Identify issues and get actionable insights."
55 },
56 {
57 "title": "Website Grader - Check your Pages for Speed and SEO",
58 "url": "https://website.grader.com/",
59 "position": 6,
60 "description": "Website Grader is a free online tool that grades your site against key metrics like performance, mobile readiness, SEO, and security. Test your URLs now!"
61 },
62 {
63 "title": "Website Performance Audit: Why It Matters and How It Works",
64 "url": "https://upsolut.sg/insights/website-performance-audit-why-it-matters-and-how-it-works/",
65 "position": 7,
66 "description": "A performance audit helps identify areas where your site may be underperforming and provides actionable insights to enhance functionality, speed, and stability."
67 },
68 {
69 "title": "WebPage Test",
70 "url": "https://www.webpagetest.org/",
71 "position": 8,
72 "description": ""
73 },
74 {
75 "title": "SEOptimer: Analyze Websites With Free SEO Audit ...",
76 "url": "https://www.seoptimer.com/",
77 "position": 9,
78 "description": "SEOptimer is an SEO Audit & AI Visibility Tool which reviews these and more to help identify problems that could be holding your site back from it's potential."
79 }
80 ],
81 "url": "http://www.google.com/search?q=website+performance+audit&hl=en",
82 "_exampleProvenance": {
83 "sourceActorId": "nFJndFXA5zjCTuudP",
84 "sourceRunId": "dhEjcb2AHXEbl3Ifd",
85 "sourceDatasetId": "kuvDTaE4ajfqneAgh",
86 "curatedPublicSnapshot": true,
87 "redaction": "Allowlisted public business/product fields only; review excerpts and social captions truncated; no reviewer identities."
88 }
89 },
90 {
91 "searchQuery": {
92 "term": "core web vitals audit",
93 "url": "http://www.google.com/search?q=core+web+vitals+audit&hl=en",
94 "device": "DESKTOP",
95 "page": 1,
96 "type": "SEARCH",
97 "domain": "google.com",
98 "countryCode": "US",
99 "languageCode": "en",
100 "locationUule": null,
101 "resultsPerPage": 10
102 },
103 "organicResults": [
104 {
105 "title": "Core Web Vitals",
106 "url": "https://web.dev/explore/learn-core-web-vitals",
107 "position": 1,
108 "description": "Learn Core Web Vitals. An initiative to provide unified guidance for quality signals that are essential to delivering a great user experience on the web.Read more"
109 },
110 {
111 "title": "Understanding Core Web Vitals and Google search results",
112 "url": "https://developers.google.com/search/docs/appearance/core-web-vitals",
113 "position": 2,
114 "description": "Core Web Vitals is a set of metrics that measure real-world user experience for loading performance, interactivity, and visual stability of the page.Read more"
115 },
116 {
117 "title": "How To Audit Core Web Vitals: An In-depth Guide",
118 "url": "https://www.debugbear.com/blog/core-web-vitals-audit",
119 "position": 3,
120 "description": "The first step to audit Core Web Vitals is to get a high-level view of how your website is doing and how you compare to other players in your ...Read more"
121 },
122 {
123 "title": "How do I go about performing a core web vitals audit for ...",
124 "url": "https://www.reddit.com/r/TechSEO/comments/wsj7k3/how_do_i_go_about_performing_a_core_web_vitals/",
125 "position": 4,
126 "description": "Go to the Core Web Vitals page where it gives a graphic representation of Good Bad Needs Improvement instances for Mobile and for Desktop."
127 },
128 {
129 "title": "Core Web Vitals Testing: 8 Best Tools in 2026",
130 "url": "https://wp-rocket.me/blog/core-web-vitals-testing-performance-monitoring-tools/",
131 "position": 5,
132 "description": "The Core Web Vitals report in Google Search Console shows how your pages perform based on real-world usage data, grouped by page type. The ...Read more"
133 },
134 {
135 "title": "How To Audit Core Web Vitals",
136 "url": "https://www.screamingfrog.co.uk/seo-spider/tutorials/how-to-audit-core-web-vitals/",
137 "position": 6,
138 "description": "You can use the Screaming Frog SEO Spider and PageSpeed Insights API to easily measure Core Web Vitals (CWVs) for each page on your website. Below is ...Read more"
139 },
140 {
141 "title": "Core Web Vitals workflows with Google tools | Articles",
142 "url": "https://web.dev/articles/vitals-tools",
143 "position": 7,
144 "description": "Core Web Vitals are a set of metrics that assess the user experience on criteria such as load performance, responsiveness to user input, and layout stability."
145 },
146 {
147 "title": "Core Web Vitals Test and Checker",
148 "url": "https://speedvitals.com/tools/core-web-vitals-checker",
149 "position": 8,
150 "description": "Run a free Core Web Vitals test with real-user CrUX data. Core Web Vitals are Google's metrics for loading performance, responsiveness, and visual stability."
151 },
152 {
153 "title": "Core Web Vitals Audit: What It Really Tells You",
154 "url": "https://www.whitelabeliq.com/blog/what-a-core-web-vitals-audit-actually-tells-you/",
155 "position": 9,
156 "description": "A passing Core Web Vitals score doesn't mean your site is fast. Here's what the scores actually measure—and what agencies often miss."
157 }
158 ],
159 "url": "http://www.google.com/search?q=core+web+vitals+audit&hl=en",
160 "_exampleProvenance": {
161 "sourceActorId": "nFJndFXA5zjCTuudP",
162 "sourceRunId": "dhEjcb2AHXEbl3Ifd",
163 "sourceDatasetId": "kuvDTaE4ajfqneAgh",
164 "curatedPublicSnapshot": true,
165 "redaction": "Allowlisted public business/product fields only; review excerpts and social captions truncated; no reviewer identities."
166 }
167 }
168 ]
169};
170
171
172const run = await client.actor("zinin/serp-competitor-overlap-analyzer").call(input);
173
174
175console.log('Results from dataset');
176console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
177const { items } = await client.dataset(run.defaultDatasetId).listItems();
178items.forEach((item) => {
179 console.dir(item);
180});
181
182