{"uid":"cap_Spb4JPMxKHtijTFkJCA-T","slug":"apexapi-ai-url-shortener-5925f53f","name":"ApexAPI AI URL Shortener","description":"Crypto, AI, Social Media, Finance, Weather, Tools &amp; more. Pay per call in USDC on Base. No API keys.","url":"https://apex-api-gamma.vercel.app/api/ai/shorten","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"query":{"type":"string","description":"Search query or input parameter"}}},"responseSchema":{"type":"object","description":"API response data"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.113406","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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":"static","summary":"$0.113406/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.113406","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.113406","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Bp7NJ3CpyAB6bXl5yOalO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.113406","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Shortens a long URL into a compact short link using an AI-powered endpoint","exampleAgentPrompt":"Can you shorten this URL for me — https://www.example.com/very/long/path/to/some/article?utm_source=newsletter&utm_medium=email&utm_campaign=spring2024 — I need a compact link I can share.","exampleUseCases":[{"title":"Share shortened link in social media posts","prompt":"I'm posting a bunch of articles on Twitter but the URLs are really long and eating up my character count. Can you shorten these links for me so they fit better in my posts?"},{"title":"Generate trackable short links for newsletters","prompt":"We're sending out a weekly newsletter with multiple product links, and they're taking up way too much space in the email. Can you create short URLs for all these links so the email looks cleaner?"},{"title":"Create compact affiliate links for sharing","prompt":"I have some long affiliate URLs I want to share in Discord communities and forums, but they look spammy and take up too much space. Can you shorten them into something more shareable?"}],"resultDescription":"A shortened URL or compact link that redirects to the original long URL, returned as JSON response data.","failureModes":["Invalid or malformed URL input returns an error","Empty query string causes a bad request","Upstream shortening service unavailable returns a server error","Payment of 0.113406 USDC not fulfilled returns 402 Payment Required","Rate limiting or quota exceeded returns a 429 or error response"],"whenToPreferThis":"Choose this endpoint when you need to programmatically shorten URLs without managing API keys, paying per call in USDC on Base via x402 protocol. Useful for agents that need quick, keyless URL shortening in automated workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:45:49.251Z","isFirstParty":false}