{"uid":"cap_SNiOUADWwbw45dYfL7tEH","slug":"one-engine-array-flatten-t3-2b49edb2","name":"ONE Engine Array Flatten (t3)","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v3/array/flatten/t3?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["values"],"properties":{"size":{"type":"integer"},"other":{"type":"array","description":"Optional comparison array"},"offset":{"type":"integer"},"values":{"type":"array","description":"JSON array with at most 1000 items"}}},"responseSchema":{"type":"object","additionalProperties":true},"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_ksDAs4x7j9O9Q0QTf9uaM","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":"Flattens a nested JSON array into a single-level array, with optional comparison array and offset/size controls.","exampleAgentPrompt":"Can you flatten this nested array for me: [[1, 2], [3, [4, 5]], 6]? I only need the first 10 results starting at offset 0.","exampleUseCases":[{"title":"Normalize nested API response data","prompt":"I got back this deeply nested array from another API: [[\"a\",\"b\"],[\"c\",[\"d\",\"e\"]],\"f\"] — can you flatten it into a single list so I can process each item one by one?"},{"title":"Compare flattened data against reference list","prompt":"Flatten this nested array [[1,2],[3,[4,5]],6] and compare it against [1,2,3,4,5,6] so I can see if they match up after flattening."},{"title":"Paginate through large nested array","prompt":"I have a big nested array with hundreds of items — can you flatten it and return just 50 items starting from offset 100?"}],"resultDescription":"Returns a JSON object containing the flattened version of the input array, with nesting removed. May include comparison results if an optional 'other' array is supplied, and respects 'size' and 'offset' pagination parameters to limit the returned slice.","failureModes":["Input array exceeds 1000 items — request rejected","Missing required 'values' field — validation error","Malformed JSON in values array — parse error","Payment not provided or insufficient — 402 Payment Required","Network timeout on Cloudflare Worker edge node"],"whenToPreferThis":"Choose this endpoint when you need a cheap, pay-per-call ($0.001 USDC) serverless operation to flatten nested arrays of up to 1000 items, especially in agentic pipelines on Base using x402 micropayments. Prefer it over building custom flatten logic when you want a stateless, reliable utility with optional comparison and pagination support.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:56.130Z","isFirstParty":false,"canonicalSlug":"one-engine-array-flatten-t3-2b49edb2"}