{"uid":"cap_u-rY5cH810yOe7-2POAJY","slug":"agishub-url-shortener-0296b514","name":"AGISHub URL Shortener","description":"Shorten a long URL into a compact api.agishub.com/s/<code> link that redirects to the original. Codes are stored for a year.","url":"https://api.agishub.com/v1/shorten","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"enum":["http"],"type":"string"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri","description":"The long http/https URL to shorten."}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"enum":["json"],"type":"string"},"example":{"type":"object"}},"additionalProperties":false}}},"responseSchema":{"type":"json","example":{"result":"Shorten a long URL into a compact api.agishub.com/s/<code> link that redirects to the original. Codes are stored for a y"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VD_kUESwAVZtL6Z06sa8V","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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 api.agishub.com/s/<code> redirect link stored for one year.","exampleAgentPrompt":"Can you shorten this URL for me so I can share it more easily? Here's the long link: https://www.example.com/some/very/long/path?with=lots&of=query&parameters=here","exampleUseCases":[{"title":"Shorten link for social post","prompt":"This link is way too long to paste in a tweet — can you shorten https://myblog.com/articles/2024/how-to-build-ai-agents-from-scratch-complete-guide into something compact I can share?"},{"title":"Compact URL for QR code","prompt":"I need a short URL to put in a QR code — can you shorten https://conference.example.com/register?event=summit2025&track=ai&promo=EARLY50 for me?"},{"title":"Clean up a long affiliate link","prompt":"Can you shorten this affiliate URL so it looks cleaner when I send it to customers? The link is https://shop.example.com/products/widget?ref=partner123&utm_source=email&utm_campaign=spring_sale&utm_medium=cta"}],"resultDescription":"Returns a JSON object with a shortened URL in the form api.agishub.com/s/<code> that redirects to the original long URL. The code persists for one year.","failureModes":["Invalid or malformed URL input returns an error — must be a valid http/https URI","Non-HTTP/HTTPS schemes (e.g. ftp://) may be rejected","Payment failure (402) if USDC balance is insufficient","Service unavailability or timeout for downstream storage issues"],"whenToPreferThis":"Choose this endpoint when you need a quick, no-auth-key URL shortener that charges per-use via x402 micropayment. Ideal for agents that need to shorten URLs on demand without managing a URL shortening account or API key. The one-year code persistence is suitable for most sharing scenarios.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:54:35.130Z","isFirstParty":false}