{
  "serviceId": "url-fetch-markdown",
  "displayName": "URL Fetch Markdown",
  "description": "Fetch a URL and return its title and readable body text, with navigation and boilerplate stripped. POST /v1/url with {url} and get one JSON object back. The text is flattened: headings, links and lists are not kept as markdown structure. Responses may be served from cache. Pay per request in USDC; no account, no API key.",
  "category": "web",
  "resourceUrl": "https://test.agent.pocket.network/v1/url-fetch-markdown",
  "priceUsd": "0.005000",
  "priceVersion": 1,
  "rails": [
    {
      "id": "base",
      "network": "eip155:84532",
      "chainId": 84532,
      "tokenAddress": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
      "tokenDecimals": 6,
      "payToAddress": "0xF732ea490c5766071785a2310523f7fA2CEbB829"
    }
  ],
  "paymentNetworks": [
    "eip155:84532"
  ],
  "paymentProtocols": [
    "x402"
  ],
  "protocols": [
    "rest"
  ],
  "inputSchema": {
    "type": "object",
    "description": "The request body for POST /v1/url.",
    "properties": {
      "url": {
        "type": "string",
        "description": "The page URL to fetch."
      }
    },
    "required": [
      "url"
    ]
  },
  "outputSchema": {
    "type": "object",
    "description": "For POST /v1/url, a JSON object with url, title, markdown (flattened text), chars and a cache flag. The exact shape is the service's own and is not pinned here; errors return a JSON object with an `error` field."
  },
  "methods": {
    "GET /v1/health": "read",
    "GET /v1/version": "read",
    "POST /v1/url": "read"
  },
  "example": {
    "method": "POST",
    "path": "/v1/url",
    "request": {
      "url": "https://example.com"
    },
    "response": {
      "portal": {
        "provenance": "third-party-supplier",
        "serviceId": "url-fetch-markdown",
        "schemaCheck": "unchecked"
      },
      "data": {
        "url": "https://example.com",
        "title": "Example Domain",
        "markdown": "# Example Domain\n\nThis domain is for use in documentation examples without needing permission. Avoid use in operations.\n\n[Learn more](https://iana.org/domains/example)",
        "chars": 167,
        "truncated": false,
        "format": "markdown",
        "cached": true,
        "source": "cache",
        "service": "url-fetch-markdown"
      }
    },
    "capturedAt": "2026-09-25T15:53:34Z"
  },
  "firstParty": true,
  "networks": [
    "eip155:84532"
  ],
  "serving": true,
  "page": "https://test.agent.pocket.network/services/url-fetch-markdown",
  "descriptor": "https://test.agent.pocket.network/services/url-fetch-markdown/descriptor.json"
}