# PageSpeed Audit: Bulk Core Web Vitals and Lighthouse Scores (`themineworks/pagespeed-audit`) Actor

Bulk PageSpeed and Lighthouse audit for a list of URLs, mobile and desktop: performance, accessibility, best practices and SEO scores, Core Web Vitals (LCP, CLS, TBT, FCP) and the top fixes. No API key needed; add your own Google key for real user INP and field data.

- **URL**: https://apify.com/themineworks/pagespeed-audit.md
- **Developed by:** [The Mine Works](https://apify.com/themineworks) (community)
- **Categories:** SEO tools, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $21.60 / 1,000 audits

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## PageSpeed Audit: Bulk Core Web Vitals and Lighthouse Scores

[![Lighthouse scores, Core Web Vitals and the top fixes for a list of URLs, one row per page](https://api.apify.com/v2/key-value-stores/cUXz95yxflDho41nn/records/pagespeed-audit-hero.png)](https://console.apify.com/actors/5J3KVHnARhf48gUlf/input?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

From **The Mine Works**, makers of [Website to Markdown Crawler](https://apify.com/themineworks/rag-crawler?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral) and [B2B Leads Finder](https://apify.com/themineworks/b2b-leads-finder?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral), with over 305,000 runs across 310+ public actors.

Updated 4 Nov 2026: first release. Lighthouse 13 audits for a list of URLs, mobile, desktop or both: four category scores, lab Core Web Vitals with ratings, the top performance fixes and the failed checks, one flat row per page and device. Bookmark this Actor on its Store page so it is one click away next time.

### Why choose this actor?

- **No API key needed.** Google's PageSpeed API no longer answers without a key: every call we tried on 4 Nov 2026 came back 429 with a quota of 0. This actor runs Lighthouse itself in its own Chrome, so a list of URLs and a click is enough.
- **Scores you can act on.** Every row has performance, accessibility, best practices and SEO from 0 to 100, LCP, CLS, TBT and FCP with good, needs-improvement or poor ratings, the fixes with the biggest savings first, and the checks that failed.
- **Pay per audit, nothing for pages that cannot be audited.** A dead domain, a 404, a PDF or a page that refuses automated visits is checked with one plain request first and comes back as a free row saying why.

[![Run it on Apify](https://api.apify.com/v2/key-value-stores/cUXz95yxflDho41nn/records/button-run.png)](https://console.apify.com/actors/5J3KVHnARhf48gUlf/input?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**Part of The Mine Works Marketing, SEO and reviews family:** [Facebook Ad Library Scraper](https://apify.com/themineworks/meta-ad-library-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral), [Google Ads Transparency Scraper](https://apify.com/themineworks/google-ads-transparency?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral), [Similarweb Scraper](https://apify.com/themineworks/similarweb-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral), [Google News Scraper](https://apify.com/themineworks/google-news?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral), [Trustpilot Reviews Scraper](https://apify.com/themineworks/trustpilot-reviews?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral), [Google Trends Scraper](https://apify.com/themineworks/google-trends-pro?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral).

### Try it in one minute

Paste this into the input (JSON view) and press Start:

```json
{
  "urls": ["https://www.python.org", "https://developer.mozilla.org/en-US/"],
  "strategy": "mobile"
}
```

Pages are audited one at a time, because Lighthouse scores suffer when audits share a machine. Allow 10 to 80 seconds per page.

#### Copy to your AI assistant

```text
themineworks/pagespeed-audit on Apify. Runs Lighthouse on a list of public URLs and returns one flat row per URL and device with performance, accessibility, best practices and SEO scores, lab Core Web Vitals (LCP, CLS, TBT, FCP), the top fixes and failed checks, with no API key. Call ApifyClient("TOKEN").actor("themineworks/pagespeed-audit").call(run_input={"urls": ["https://example.com"], "strategy": "both"}), then client.dataset(run["defaultDatasetId"]).list_items().items. Audit rows have status "ok" and no _type field. Rows with _type "not_audited" say why a page was not audited and are free. Optional apiKey: the caller's own Google PageSpeed key, which adds real user field data.
```

### Key features

- Mobile, desktop or both for each URL.
- Four Lighthouse categories, with lab LCP, CLS, TBT, FCP, Speed Index and page weight.
- Good, needs-improvement or poor ratings at Google's own thresholds.
- The top performance fixes with estimated savings, and the accessibility, best practices and SEO checks that failed.
- A free row with the reason for any page that cannot be audited.
- `benchmark_index` on every row: Lighthouse's measure of the machine, because scores depend on CPU.
- Optional: your own Google key adds real user INP, LCP and CLS when Google has them.

### How to use it

#### One page, both devices

```json
{ "urls": ["https://example.com"], "strategy": "both" }
```

#### A client's key pages, performance and SEO only

```json
{ "urls": ["https://example.com", "https://example.com/pricing", "https://example.com/blog"], "categories": ["performance", "seo"] }
```

#### With your own Google key, for real user data

```json
{ "urls": ["https://example.com"], "apiKey": "YOUR_GOOGLE_KEY" }
```

To get a key: in Google Cloud, create a project, enable the PageSpeed Insights API, and create an API key. Google gives 25,000 queries a day for free. If Google refuses the key, or its quota runs out, the run stops with a message and that audit is not charged.

### Input parameters

| Field | Type | What it does |
|---|---|---|
| `urls` | list | Pages to audit, up to 1,000. `https://` is added if missing. Duplicates run once. |
| `strategy` | choice | `mobile` (default), `desktop` or `both`. |
| `categories` | list | Any of performance, accessibility, best-practices, seo. The price stays the same. |
| `maxOpportunities` | number | Performance fixes per page, 0 to 30, default 5. |
| `pageLoadTimeoutSecs` | number | How long Lighthouse waits for a page, 15 to 90, default 45. |
| `apiKey` | secret text | Your own Google key. Empty means our Chrome. |

### What data do you get?

| Field | What it holds |
|---|---|
| `url`, `final_url`, `strategy`, `status` | The page, where it ended, the device, and `ok` |
| `performance_score`, `accessibility_score`, `best_practices_score`, `seo_score` | 0 to 100 |
| `lcp_ms`, `cls`, `tbt_ms`, `fcp_ms` and their `_rating` fields | Lab Core Web Vitals and ratings |
| `speed_index_ms`, `tti_ms`, `server_response_ms` | Other timings, when Lighthouse reports them |
| `total_byte_weight`, `request_count`, `dom_size` | Page weight |
| `opportunities` | Fixes: `id`, `title`, `display_value`, `savings_ms`, `savings_bytes` |
| `failed_audits` | Failed checks: `category`, `id`, `title`, `item_count` |
| `field_lcp_ms`, `field_inp_ms`, `field_cls`, `field_fcp_ms`, `field_ttfb_ms`, `field_overall` | Real user data for the URL, only with your own key |
| `origin_lcp_ms`, `origin_inp_ms`, `origin_cls`, `origin_overall` | Real user data for the site, only with your own key |
| `engine`, `form_factor`, `throttling_method`, `benchmark_index`, `lighthouse_version`, `run_warnings`, `audited_at` | How the audit ran |

#### Stable fields for automations

Audit rows have `status: "ok"` and no `_type`. Rows with `_type: "not_audited"` carry `url`, `status` and `note`, and are free. `summary`, `info` and `error` rows are also free. The summary is saved as `OUTPUT` in the run's key-value store.

### Pricing

Pay per event, with a flat fee per run.

| Event | When it is charged | Free plan | Bronze (Starter) | Silver (Scale) | Gold (Business) |
|---|---|---|---|---|---|
| `audit` | One page on one device audited in our Chrome | $0.027 | $0.0254 | $0.0235 | $0.0216 |
| `audit-own-key` | One page on one device audited with your own Google key | $0.0135 | $0.0127 | $0.01175 | $0.0108 |
| `run-start` | Once per run, after the first audit row reached your dataset | $0.008 | $0.008 | $0.008 | $0.008 |

Both devices on one URL are two audits. Never charged:

- a page stopped by the plain first request: dead domain, 404, a file that is not a web page, a page that refuses automated visits;
- an audit Lighthouse could not finish or score;
- duplicates, invalid addresses, the summary, info and error rows;
- a run with no finished audit: the start fee follows the first audit row;
- anything past your "Max cost per run": the budget is checked before each audit.

### Run it on a schedule

In Apify Console open this Actor, choose Schedules, add a schedule, and pick how often it runs. Compare a page with itself over time: Lighthouse scores move by several points between runs even when nothing changed.

### FAQ

#### Are these the same numbers as pagespeed.web.dev?

They are the same tool, Lighthouse, with the same mobile settings, but on a different machine. Performance scores depend on CPU, so they can differ from pagespeed.web.dev by some points. `benchmark_index` on each row shows the speed of the machine. With your own key, Google runs the audit itself, which is what pagespeed.web.dev shows.

#### Why is there no INP without a key?

INP needs real visitors. A page load in a lab cannot measure it, so lab rows use TBT as the stand-in. Real user INP comes from Google's field data, which needs your own key and enough traffic on the page.

#### Why was my page not audited?

The `note` on its row says why. A site that blocks automated visits answers our first request with an error such as 403, and we stop there rather than charge you for a blocked audit.

#### How long does a run take?

8 to 81 seconds per page and device in our test of 16 sites, about 25 on average, one at a time. With your own key, 4 pages run at once.

#### Do I need an account, cookies or a proxy?

No. Only public pages can be audited: sign-in pages and private network addresses are not.

#### Which formats can I download?

JSON, CSV, Excel, XML and RSS from the dataset, or through the API.

#### Can I use it from Claude, ChatGPT or Cursor (MCP)?

Yes, through Apify's MCP server. Connector URL: https://mcp.apify.com/?tools=themineworks/pagespeed-audit

- Claude: Settings > Connectors > Add custom connector, paste the URL, sign in with Apify.
- ChatGPT: turn on developer mode, add an MCP connector with the URL, sign in with Apify.
- Cursor or VS Code: add it as an HTTP MCP server with that URL.
- Claude Code: `claude mcp add -t http pagespeed-audit "https://mcp.apify.com/?tools=themineworks/pagespeed-audit"`

#### Is it legal to audit other people's sites?

An audit loads a public page once, as a visitor would. You are responsible for how you use the results and for the terms of the sites you audit. This is general information, not legal advice.

### Integrations

- **Google Sheets**: send each run's audits to a sheet; one row per page and device fits as is.
- **Make, Zapier and n8n**: start a run and read its dataset, for example "alert Slack when a key page drops below 50".
- **Webhooks**: have Apify call your URL when a run succeeds, then fetch the dataset.
- **API and SDKs**: run it from Python or JavaScript with the Apify client, or with a plain HTTP call.
- **MCP clients**: Claude, ChatGPT, Cursor and VS Code can run it as a tool through the connector URL in the FAQ.

### More from The Mine Works

**Marketing, SEO and reviews**

- [Facebook Ad Library Scraper](https://apify.com/themineworks/meta-ad-library-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Google Ads Transparency Scraper](https://apify.com/themineworks/google-ads-transparency?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Similarweb Scraper](https://apify.com/themineworks/similarweb-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Google News Scraper](https://apify.com/themineworks/google-news?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Trustpilot Reviews Scraper](https://apify.com/themineworks/trustpilot-reviews?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Google Trends Scraper](https://apify.com/themineworks/google-trends-pro?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Semrush Scraper](https://apify.com/themineworks/semrush-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [App Reviews Scraper](https://apify.com/themineworks/app-reviews-monitor?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Trustpilot Business Search](https://apify.com/themineworks/trustpilot-business-search?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [TripAdvisor Reviews Scraper](https://apify.com/themineworks/tripadvisor-reviews?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Username Checker](https://apify.com/themineworks/username-checker?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Backlink Building Agent](https://apify.com/themineworks/backlink-building-agent?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**Social media and video**

- [Threads Scraper](https://apify.com/themineworks/threads-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Reddit Scraper](https://apify.com/themineworks/reddit-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Threads Search Scraper](https://apify.com/themineworks/threads-search-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Instagram Profile Scraper](https://apify.com/themineworks/instagram-profile-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**Leads and business directories**

- [B2B Leads Finder](https://apify.com/themineworks/b2b-leads-finder?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Skip Trace Lookup](https://apify.com/themineworks/skip-trace-lookup?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Google Maps Email Scraper](https://apify.com/themineworks/maps-leads?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [2GIS Places Scraper](https://apify.com/themineworks/2gis-places-search?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**LinkedIn**

- [LinkedIn Company Scraper](https://apify.com/themineworks/linkedin-company-details?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [LinkedIn Post Scraper](https://apify.com/themineworks/linkedin-post-search?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [LinkedIn Employees Scraper](https://apify.com/themineworks/linkedin-employees?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [LinkedIn Profile Scraper](https://apify.com/themineworks/linkedin-profile-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**Real estate**

- [Zillow Rentals Scraper](https://apify.com/themineworks/zillow-rental-listings?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Zillow Sold Comps Scraper](https://apify.com/themineworks/zillow-recently-sold?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [India Real Estate MCP](https://apify.com/themineworks/india-real-estate-mcp?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Housing.com Scraper](https://apify.com/themineworks/housing-com-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**Science, health and government data**

- [Academic Research MCP](https://apify.com/themineworks/academic-research-mcp?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [CourtListener Scraper](https://apify.com/themineworks/courtlistener-court-records?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Socrata Open Data Scraper](https://apify.com/themineworks/socrata-open-data?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [OpenAlex Scraper](https://apify.com/themineworks/openalex-scholarly-works?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**Jobs and hiring**

- [Foundit Monster India Jobs](https://apify.com/themineworks/foundit-jobs-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Hirist Jobs Scraper](https://apify.com/themineworks/hirist-jobs-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [India Jobs MCP](https://apify.com/themineworks/india-jobs-mcp?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Naukri Jobs Scraper](https://apify.com/themineworks/naukri-jobs?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**Company and business data**

- [Company Domain Finder](https://apify.com/themineworks/company-domain-finder?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [GST Taxpayer Lookup](https://apify.com/themineworks/gst-taxpayer-lookup?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Company KYB Resolver](https://apify.com/themineworks/company-identity-resolver?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [SEC EDGAR Filings Scraper](https://apify.com/themineworks/sec-edgar-filings?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**E-commerce and marketplaces**

- [Ozon.ru Scraper](https://apify.com/themineworks/ozon-product-search?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [⭐ Amazon Reviews Scraper](https://apify.com/themineworks/amazon-reviews?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Amazon Product Scraper](https://apify.com/themineworks/amazon-products?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Etsy Listings Scraper](https://apify.com/themineworks/etsy-search-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**Food and local services**

- [NoBroker Scraper](https://apify.com/themineworks/nobroker-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Swiggy Restaurant Scraper](https://apify.com/themineworks/swiggy-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Zomato Scraper](https://apify.com/themineworks/zomato-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**Developer and AI tools**

- [Website to Markdown Crawler](https://apify.com/themineworks/rag-crawler?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [GitHub Skill Finder](https://apify.com/themineworks/github-skill-discovery?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [GitHub Repo Scraper](https://apify.com/themineworks/github-repo-intelligence?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [GitHub Trending Scraper](https://apify.com/themineworks/github-trending-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

**More tools**

- [G2 Reviews Scraper](https://apify.com/themineworks/g2-reviews-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Naver Blog Scraper](https://apify.com/themineworks/naver-blog-posts-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [WeChat Article Scraper 微信公众号文章](https://apify.com/themineworks/wechat-article-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)
- [Taobao Products Scraper 淘宝 天猫](https://apify.com/themineworks/taobao-products-scraper?fpr=ymnoit\&utm_source=apify-readme\&utm_medium=referral)

### Support

Found a page that should audit but does not, or a field that comes back empty? Open an issue in the Issues tab with the input and the run ID, and we will look at it. For a field you need or a new source, email dmineworks@gmail.com.

*Give it a list of URLs and get Lighthouse scores, Core Web Vitals and the top fixes back as one row per page and device, mobile and desktop, no API key.*

# Actor input Schema

## `urls` (type: `array`):

One page per line. Without http, https:// is added. Duplicates are audited once. Up to 1,000 per run.

## `strategy` (type: `string`):

Mobile is what Google uses for ranking. Both gives two rows per URL, each one audit.

## `categories` (type: `array`):

Which scores to return. Fewer categories do not change the price.

## `maxOpportunities` (type: `integer`):

How many fixes to list, biggest saving first, 0 to 30.

## `pageLoadTimeoutSecs` (type: `integer`):

How long Lighthouse waits for a page to load, 15 to 90.

## `apiKey` (type: `string`):

With your own key, Google runs each audit, the row adds real user field data (INP, LCP, CLS) when Google has it, and the lower audit-own-key price applies. Free from Google Cloud: enable the PageSpeed Insights API and create a key. Leave empty to use our Chrome. The key is stored encrypted and never appears in the output.

## Actor input object example

```json
{
  "urls": [
    "https://www.python.org"
  ],
  "strategy": "mobile",
  "categories": [
    "performance",
    "accessibility",
    "best-practices",
    "seo"
  ],
  "maxOpportunities": 5,
  "pageLoadTimeoutSecs": 45
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://www.python.org"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("themineworks/pagespeed-audit").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "urls": ["https://www.python.org"] }

# Run the Actor and wait for it to finish
run = client.actor("themineworks/pagespeed-audit").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://www.python.org"
  ]
}' |
apify call themineworks/pagespeed-audit --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,themineworks/pagespeed-audit"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/5J3KVHnARhf48gUlf/builds/PspprjeqM1x6f8LZ8/openapi.json
