# Legacy Site Slug Viewer (GET /site/:slug)

> Legacy Site Slug Viewer (GET /site/:slug) is a paid API for AI agents from site.withzero.ai, paid per call via MPP, price unknown, status unknown (last checked 2026-09-29).

Serves the stored HTML content for a hosted site by slug via the legacy /site/:slug alias, with 1-hour caching and visit counter increment.

## Facts

- Endpoint: GET https://site.withzero.ai/site/:slug?utm_source=zero.xyz
- Price: price unknown
- Payment: MPP
- Status: unknown
- Last checked: 2026-09-29
- Activations on Zero: 0
- Provider: site.withzero.ai
- Website: https://site.withzero.ai
- Canonical page: https://www.zero.xyz/c/site-withzero-ai-legacy-site-slug-viewer-get-site-slug-e36d601b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bQyJyn6oOjlJHoredl6au

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 site-withzero-ai-legacy-site-slug-viewer-get-site-slug-e36d601b
```

Example prompt: Pull up the hosted page with the slug 'my-launch-page' from Zero — that's the one I published last week.

## When to prefer this

Use this endpoint when you have a slug for a site hosted on site.withzero.ai and need to retrieve its HTML content via the legacy /site/:slug path. Prefer the canonical /s/:slug endpoint if available; use this alias only for legacy compatibility or when existing links use the /site/ prefix.

## Known failure modes

- Slug not found — returns 404 if no site exists under that slug
- Slug expired — returns 404 or 410 if the hosted site has been deleted or has expired after 365 days
- Server error — returns 500 if the underlying KV store or cache fails
- Invalid slug format — returns 400 if the slug parameter is malformed

## How this service works

Legacy alias for /s/:slug.

## Output

Returns the full stored HTML of the hosted site for the given slug. The response is cached for up to 1 hour and each successful retrieval increments the page's visit counter.

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/site-withzero-ai-legacy-site-slug-viewer-get-site-slug-e36d601b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from site.withzero.ai](https://www.zero.xyz/host/site.withzero.ai/llms.txt)
