# Google PageSpeed Insights Test via api.strale.io

> Google PageSpeed Insights Test via api.strale.io is a paid API for AI agents from api.strale.io, paid per call via x402, $0.054001/call, status unknown (last checked 2026-09-14).

Runs a Google PageSpeed Insights analysis on a given URL and returns performance score, Core Web Vitals, and optimization recommendations

## Facts

- Endpoint: GET https://api.strale.io/x402/page-speed-test
- Price: $0.054001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-b71e6027
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_63665qmiSnw3_Rrn34R_7

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability api-strale-io-b71e6027
```

Example prompt: Can you run a Google PageSpeed test on https://www.example.com for desktop and tell me the performance score, Core Web Vitals, and what the top optimization opportunities are?

## When to prefer this

Use this endpoint when you need a quick, structured Google PageSpeed Insights analysis of a single URL including Core Web Vitals and actionable optimization suggestions. Prefer this over a full SEO audit when the focus is purely on load performance and runtime metrics rather than on-page SEO signals.

## Known failure modes

- Invalid or unreachable URL returns an error
- URL with bot protection or firewall may block PageSpeed crawl
- Timeout if the target page is extremely slow to load
- Invalid strategy value may default to mobile or return a validation error

## How this service works

Test page speed using Google PageSpeed Insights API. Returns performance score, Core Web Vitals, optimization opportunities.

## Output

Returns a performance score (0-100), Core Web Vitals metrics (LCP, FID/INP, CLS), and a list of specific optimization opportunities with estimated impact for the given URL on the specified device strategy (mobile or desktop).

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "url": "https://www.example.com",
   "strategy": "desktop"
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "url"
 ],
 "properties": {
  "url": {
   "type": "string"
  },
  "strategy": {
   "type": "string",
   "description": "mobile or desktop (default: mobile)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "grade": {
  "type": "string"
 },
 "metrics": {
  "type": "object"
 },
 "opportunities": {
  "type": "array"
 },
 "performance_score": {
  "type": "number"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-strale-io-b71e6027/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
