{"uid":"cap_NttVOSFCsahgVGHtB0Z7J","slug":"withzero-url-shortener-e1445ffa","name":"WithZero URL Shortener","description":"Create a short link that redirects to a long URL for one year.","url":"https://agents.withzero.xyz/api/v1/urlshortener/links?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["url"],"properties":{"url":{"type":"string","format":"uri","description":"The long URL to shorten."}},"additionalProperties":false},"responseSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["code","shortUrl","expires"],"properties":{"code":{"type":"string","description":"Four-character base62 code assigned to the URL."},"expires":{"type":"string","description":"ISO timestamp at which the code stops resolving."},"shortUrl":{"type":"string","description":"Short URL of the form 0url.to/<code>."}},"additionalProperties":false},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.000000","displayCostAsset":"USD","priceDynamic":false,"priceHint":null,"priceStatus":"unknown_unparsed","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"unknown","summary":"price unknown","primary":{"kind":"unknown","protocol":"x402","network":"base","amountUsd":null,"per":"call","confidence":"unknown"},"accepted":[{"kind":"unknown","protocol":"x402","network":"base","amountUsd":null,"per":"call","confidence":"unknown"},{"kind":"unknown","protocol":"mpp","network":"tempo","amountUsd":null,"per":"call","confidence":"unknown"}]},"paymentMethods":[{"uid":"pm_uu2oeVp8SaUymPSZyx4WV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null},{"uid":"pm_uvFq-7qv060OXUGVzdxMA","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.000000","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Shortens a long URL into a compact 4-character base62 code hosted at 0url.to/<code>","exampleAgentPrompt":"Can you shorten this URL for me so I can share it easily: https://example.com/very/long/path/to/some/article?with=lots&of=query&params=here","exampleUseCases":[{"title":"Short link for social media post","prompt":"I want to share this article on Twitter but the URL is way too long — can you shorten https://www.myblog.com/2024/articles/how-to-build-an-ai-agent-from-scratch-using-python into something compact?"},{"title":"Compact URL for email campaign","prompt":"I'm sending out a marketing email and need a shorter version of this landing page link: https://store.myshop.com/summer-sale/products?category=outdoor&discount=20&ref=newsletter2024 — can you make it shorter?"},{"title":"Shareable link for team collaboration","prompt":"Can you create a short link for https://docs.google.com/document/d/1aBcDeFgHiJkLmNoPqRsTuVwXyZ1234567890/edit?usp=sharing so I can quickly paste it into our Slack channel?"}],"resultDescription":"Returns a JSON object with the shortened URL (e.g. https://0url.to/Ab3X), the 4-character base62 code assigned to the URL, and an ISO 8601 expiration timestamp indicating when the short link will stop resolving.","failureModes":["Invalid or malformed URL input — returns an error if the provided URL is not a valid web address","Missing required 'url' field — request will be rejected","Payment failure — though listed at $0 USDC, the x402 payment flow may fail if the agent's wallet is misconfigured","Expired link — the returned short URL will stop resolving after the expiration timestamp"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-use URL shortener with no account setup or API keys required, especially within an autonomous agent workflow using x402 micropayments. It produces links at the 0url.to domain with a 4-character code. Prefer it when your agent needs to create shareable short links on demand without integrating a dedicated URL shortening service like Bitly or TinyURL.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":4,"lastUsedAt":"2026-07-29T00:20:57.345Z","lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T00:34:47.939Z","isFirstParty":true,"canonicalSlug":"withzero-url-shortener-e1445ffa"}