{"uid":"cap_h0wNr1BbrJLpXJoG3g-F4","slug":"api-usage-numeric-row-ordering-87636db4","name":"API Usage Numeric Row Ordering","description":"API usage - Numeric row ordering: Numeric row ordering for API usage. Up to 200 supplied typed records. Local numeric and data-quality processing; no external enrichment or forecasting. One of 25 profiles or calculations across 20 shared operations in this sector. 0.01 USDC includes one bounded numeric row ordering deliverable.","url":"https://market.datapackvibe.com/x402/assistant-sector-analytics-api-usage-sort?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","endpoint","date","requests","latency_ms"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"endpoint":{"type":"string","default":"","maxLength":80},"requests":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"latency_ms":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","endpoint":"group-a","requests":10,"latency_ms":1},{"date":"2026-10-02","row_id":"row-2","endpoint":"group-b","requests":20,"latency_ms":2},{"date":"2026-10-03","row_id":"row-3","endpoint":"group-a","requests":15,"latency_ms":3},{"date":"2026-10-04","row_id":"row-4","endpoint":"group-b","requests":30,"latency_ms":4}],"maxItems":200,"minItems":1},"field":{"enum":["requests","latency_ms"],"type":"string","default":"requests"}}},"responseSchema":null,"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_frDL171tm40LBVODDR5Eu","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":"Sorts up to 200 API usage records (by requests or latency_ms) into numeric row order locally, with no external enrichment.","exampleAgentPrompt":"Sort these API usage records by requests count — I have 4 rows: row-1 for group-a on 2026-10-01 with 10 requests and 1ms latency, row-2 for group-b on 2026-10-02 with 20 requests and 2ms latency, row-3 for group-a on 2026-10-03 with 15 requests and 3ms latency, and row-4 for group-b on 2026-10-04 with 30 requests and 4ms latency.","exampleUseCases":[{"title":"Rank endpoints by request volume","prompt":"I have a list of API usage rows for this week — can you sort them by requests so I can see which endpoints got the most traffic? Here are the rows: row-1, /search, 2026-10-01, 5200 requests, 45ms; row-2, /checkout, 2026-10-01, 3100 requests, 120ms; row-3, /auth, 2026-10-01, 8900 requests, 22ms."},{"title":"Identify slowest API calls by latency","prompt":"Sort these API usage records by latency_ms so I can find my slowest endpoints: row-1 is /users on 2026-10-05 with 400 requests and 310ms, row-2 is /products on 2026-10-05 with 900 requests and 85ms, row-3 is /orders on 2026-10-05 with 150 requests and 540ms."},{"title":"Daily traffic ranking for capacity planning","prompt":"I've got 6 days of API usage data across two endpoints and want them sorted by number of requests — can you put them in numeric order? Rows: row-1 group-a 2026-11-01 200 requests 10ms, row-2 group-b 2026-11-01 450 requests 15ms, row-3 group-a 2026-11-02 180 requests 12ms, row-4 group-b 2026-11-02 600 requests 18ms, row-5 group-a 2026-11-03 310 requests 9ms, row-6 group-b 2026-11-03 390 requests 14ms."}],"resultDescription":"Returns the submitted API usage rows reordered numerically by the specified field (requests or latency_ms), processed locally without external enrichment. The output is a bounded, sorted list of up to 200 typed records.","failureModes":["Submitting more than 200 rows returns a validation error","Missing required fields (row_id, endpoint, date, requests, latency_ms) causes schema rejection","Invalid date format (not YYYY-MM-DD) fails pattern validation","Null values in both numeric fields may affect sort stability","Field enum value outside 'requests' or 'latency_ms' is rejected","Empty rows array is rejected (minItems: 1)"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap, local numeric sort of API usage records (up to 200 rows) by either request count or latency without any external data enrichment, forecasting, or aggregation. Ideal for lightweight data preprocessing steps in agent workflows that need ordered API metrics before further analysis.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T06:50:39.750Z","isFirstParty":false,"canonicalSlug":"api-usage-numeric-row-ordering-87636db4"}