# PrimeAPI URL Expander

> PrimeAPI URL Expander is a paid API for AI agents from prime-api-seven.vercel.app, paid per call via x402, $0.144662/call, status unknown (last checked 2026-09-14).

Expands shortened or obfuscated URLs to reveal the full destination URL

## Facts

- Endpoint: POST https://prime-api-seven.vercel.app/api/tools/url/expand
- Price: $0.144662/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/primeapi-url-expander-40197e50
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uDYx5R9BMBDA1chkTMeJU

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 primeapi-url-expander-40197e50 -d '<json body>'
```

Example prompt: Can you expand this shortened URL for me and tell me where it actually goes: https://bit.ly/3xYzAbc?

## When to prefer this

Use this endpoint when you need to resolve shortened URLs (bit.ly, tinyurl, t.co, etc.) to their full destinations without manually following redirects, especially when safety-checking links or automating workflows that require the canonical URL.

## Known failure modes

- Shortened URL no longer active or expired — returns error or empty result
- Invalid or malformed URL input — returns parsing error
- Target URL behind authentication wall — may return redirect to login
- Rate limiting or payment failure — 402 payment required
- Network timeout if destination server is slow to respond

## How this service works

Crypto, AI, Social Media, Finance, Weather, Tools &amp; more. Pay per call in USDC on Base. No API keys.

## Output

The agent receives the full expanded destination URL that the shortened or redirected URL points to, potentially including the full redirect chain.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "Search query or input parameter"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "description": "API response data"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/primeapi-url-expander-40197e50/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from prime-api-seven.vercel.app](https://www.zero.xyz/host/prime-api-seven.vercel.app/llms.txt)
