{"uid":"cap_FCn0uv7_qOsKf_ZB33uT6","slug":"number-ordinal-63aef6c2","name":"number-ordinal","description":"Convert an integer to its English ordinal form (1st, 2nd, 3rd, 4th, 11th, 21st...).","url":"https://x402.agentindex.world/number/ordinal?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"value":{"type":"integer","title":"Value"}}},"responseSchema":{"type":"json","example":{"ordinal":"23rd"}},"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_LC_bwbbgLscl2WobvNi4d","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 ordinal string representation (e.g. 23 → '23rd')","exampleAgentPrompt":"What's the ordinal form of the number 23? I want to display it as '23rd' in my report.","exampleUseCases":[{"title":"Format ranking position in leaderboard","prompt":"I have a leaderboard and need to display a player's position as an ordinal — give me the ordinal form of 7 so I can show '7th place'."},{"title":"Display date day as ordinal","prompt":"I'm writing a formal invitation and need to say 'the 21st of June' — can you convert 21 into its ordinal string for me?"},{"title":"Format step number in instructions","prompt":"My tutorial has 43 steps and I need to label the current one properly — what's the ordinal string for 43?"}],"resultDescription":"A JSON object with a single field 'ordinal' containing the ordinal string representation of the input integer, e.g. {\"ordinal\": \"23rd\"} — includes the appropriate suffix (st, nd, rd, or th) appended to the number.","failureModes":["Missing 'value' parameter returns an error or unexpected result","Non-integer input may be rejected or produce malformed output","Very large integers may not be supported","Negative integers may not produce valid ordinals","Payment failure (402) if USDC balance is insufficient on Base"],"whenToPreferThis":"Choose this endpoint when you need a reliable, pay-per-call microservice to convert integers to ordinal strings without running your own formatting logic. Useful in agent pipelines where consistent ordinal formatting is needed across many numbers, or when the agent runtime lacks native ordinal formatting libraries.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T06:46:41.237Z","isFirstParty":false,"canonicalSlug":"number-ordinal-63aef6c2"}