{"uid":"cap_a2VeGIOdwb3SFAh7j0Fw1","slug":"delx-commerce-split-lines-utility-4df8d768","name":"Delx Commerce — Split Lines Utility","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/split-lines?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Input field: text."}}},"responseSchema":{"type":"json","example":{"count":3,"lines":["one","two","three"],"schema":"delx/util-split-lines/v1"}},"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_M6CHiSMaArwQMBs28_ak-","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":"Splits a multi-line text string into an array of individual lines and returns the count","exampleAgentPrompt":"Split this block of text into individual lines for me: 'first item\\nsecond item\\nthird item' — just give me the array of lines and the count.","exampleUseCases":[{"title":"Parse log output into lines","prompt":"I got this big chunk of server log output as one string — can you split it into individual lines so I can process each entry separately? Here's the text: 'ERROR: disk full\\nWARN: high memory\\nINFO: service started'"},{"title":"Count lines in a text document","prompt":"How many lines are in this text? 'apple\\nbanana\\ncherry\\ndate' — split it up and tell me the count."},{"title":"Break newline-delimited list into array","prompt":"I have a newline-separated list of email addresses in one string and I need them as a proper array — split it into lines: 'alice@example.com\\nbob@example.com\\ncarol@example.com'"}],"resultDescription":"Returns a JSON object containing: 'lines' (array of strings, one per line from the input text), 'count' (integer number of lines), and 'schema' (a version identifier string 'delx/util-split-lines/v1').","failureModes":["Empty or missing 'text' field returns an error or empty array","Extremely large text inputs may be rejected or time out","Non-string input types in the text field may cause validation errors","Payment failure via x402 protocol will block the request"],"whenToPreferThis":"Choose this endpoint when you need a simple, pay-per-call, no-signup utility to split multi-line text into an array with a line count — especially in agent pipelines where verifiable micro-payment delivery (USDC on Base or Solana via x402) is preferred over subscription APIs. Best suited for lightweight text parsing tasks within automated workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:54.916Z","isFirstParty":false,"canonicalSlug":"delx-commerce-split-lines-utility-4df8d768"}