# PostCache Media URL Proxy

> PostCache Media URL Proxy is a paid API for AI agents from postcache.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-18).

Fetches media from a source URL, validates it against platform-specific rules for Instagram/Threads/Facebook, hosts it at a temporary public URL, and auto-deletes it after posting.

## Facts

- Endpoint: POST https://postcache.dev/v1/media/from-url?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/postcache-media-url-proxy-22d0ebf7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PSJU_JwS2k7WKY7hAOHmk

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 postcache-media-url-proxy-22d0ebf7 -d '<json body>'
```

Example prompt: I need to post this image at https://myserver.internal/product-shot.jpg to my Instagram feed — can you run it through PostCache to get a public URL and make sure it passes Instagram's rules first?

## When to prefer this

Use PostCache when an AI agent needs to post media to Instagram, Threads, or Facebook and the source file is not already at a publicly accessible URL, or when you need to pre-validate media against platform rules before attempting an upload. It is specifically designed for Meta platforms and handles temporary hosting plus rule-checking in a single call, making it ideal for automated social media posting workflows where the agent must ensure compliance before spending API quota on a failed post.

## Known failure modes

- Source URL is private, localhost, or internal address — refused with an error
- Media file fails platform validation checks (wrong aspect ratio, file size too large, unsupported codec)
- Source URL returns a non-200 response or times out
- Unsupported target platform value provided
- TTL out of range (below 3600 or above 604800 seconds)
- Payment not received or insufficient USDC balance
- Media type unreadable or corrupted at source URL

## How this service works

Instagram, Threads and Facebook only take media from a public URL. postcache gives your agent one, checks the file against the platform's rules, and deletes it after the post.

## Output

Returns a JSON object containing a temporary public URL for the media, a unique media ID, file size in bytes, content type, expiry timestamp, target platform, and a checks object detailing whether the file passes platform rules — including the media kind (image/video), pass/fail status, any notes, and specific problems with suggested fixes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "source_url",
      "target"
     ],
     "properties": {
      "ttl": {
       "type": "integer",
       "maximum": 604800,
       "minimum": 3600
      },
      "target": {
       "enum": [
        "instagram.feed",
        "instagram.carousel",
        "instagram.reels",
        "instagram.story",
        "threads",
        "facebook.page"
       ],
       "type": "string"
      },
      "convert": {
       "enum": [
        "crop",
        "pad"
       ],
       "type": "string"
      },
      "dry_run": {
       "type": "boolean"
      },
      "filename": {
       "type": "string"
      },
      "source_url": {
       "type": "string",
       "format": "uri",
       "description": "Public http(s) URL; private and internal addresses are refused"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "id": {
       "type": "string"
      },
      "url": {
       "type": "string",
       "format": "uri"
      },
      "size": {
       "type": "integer"
      },
      "checks": {
       "type": "object",
       "properties": {
        "kind": {
         "enum": [
          "image",
          "video",
          "unknown",
          "unreadable"
         ],
         "type": "string"
        },
        "pass": {
         "type": "boolean"
        },
        "notes": {
         "type": "array",
         "items": {
          "type": "string"
         }
        },
        "target": {
         "enum": [
          "instagram.feed",
          "instagram.carousel",
          "instagram.reels",
          "instagram.story",
          "threads",
          "facebook.page"
         ],
         "type": "string"
        },
        "problems": {
         "type": "array",
         "items": {
          "type": "object",
          "pr
… (truncated)
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/postcache-media-url-proxy-22d0ebf7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from postcache.dev](https://www.zero.xyz/host/postcache.dev/llms.txt)
