{"uid":"cap_s4KfLqQQoy1N0vW_dVRbq","slug":"delx-ordinal-3cd5fd0f","name":"Delx Ordinal","description":"Format an integer as an English ordinal (1st, 2nd, 3rd…). Call when you need human-facing ranks or step labels for agent UIs. Returns ordinal string and n for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.","url":"https://api.delx.ai/api/v1/x402/ordinal","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"n":{"type":"integer","description":"Input field: n."}}},"responseSchema":{"type":"json","example":{"n":21,"schema":"delx/util-ordinal/v1","ordinal":"21st"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-U_xDHpVDOOoagG2Y33IU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts an integer into its English ordinal string representation (e.g. 1→1st, 2→2nd, 3→3rd).","exampleAgentPrompt":"Format the number 42 as an English ordinal string for me — like 1st, 2nd, 3rd.","exampleUseCases":[{"title":"Leaderboard rank display","prompt":"I have a leaderboard and need to show each player's position as an ordinal — take the number 7 and give me the proper English label for it, like 7th."},{"title":"Step-by-step wizard labels","prompt":"I'm building a multi-step onboarding flow and need to label each step in plain English — convert step number 3 into its ordinal form so I can show it in the UI."},{"title":"Competition placing announcement","prompt":"We just finished a race and I need to announce the results — format the placing number 21 as a proper English ordinal like 21st for the announcement text."}],"resultDescription":"Returns a JSON object containing the ordinal string (e.g. '42nd') and the original integer n, with no external network calls or data retention.","failureModes":["Non-integer input returns a validation error","Missing 'n' field causes a bad request response","Very large integers may exceed expected formatting bounds","Payment authorization failure via x402 blocks the request"],"whenToPreferThis":"Choose this endpoint when you need a simple, reliable, zero-dependency ordinal formatter for agent UIs, leaderboards, step labels, or ranked lists and want a micropayment-gated, stateless operation with no API key management. Prefer it over custom code when building agents that need consistent English ordinal formatting without maintaining local logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:48.295Z","isFirstParty":false}