{"uid":"cap_1jpZ8mnRS1KtQ-fmpxfKJ","slug":"delx-commerce-csv-row-count-6d6fe644","name":"Delx Commerce CSV Row Count","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/csv-row-count?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"csv_text":{"type":"string","description":"UTF-8 CSV text. Parsed locally; not uploaded to third parties."}}},"responseSchema":{"type":"json","example":{"rows":3,"schema":"delx/csv-row-count/v1","has_header_guess":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_LQiQhANwD_Y-bkdz_QPmG","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":"Counts the number of data rows in a UTF-8 CSV string and guesses whether a header row is present","exampleAgentPrompt":"Count the rows in this CSV text for me — I need to know how many data records it has and whether it has a header row: 'name,age,city\nAlice,30,NYC\nBob,25,LA\nCarol,28,Chicago'","exampleUseCases":[{"title":"Validate ETL pipeline record counts","prompt":"I just pulled this CSV from our data pipeline export — can you tell me how many rows it has and whether the first row is a header? I want to confirm it matches the expected 1,000 records."},{"title":"Quick data quality check before import","prompt":"Before I import this CSV into the database, count the rows in it and let me know if it looks like it has a header row — here's the raw text: 'id,name,email\n1,John,john@example.com\n2,Jane,jane@example.com'"},{"title":"Agent workflow row-count gating","prompt":"I have a CSV output from a previous step in my workflow — count the data rows in it so I can decide whether to proceed with batch processing or handle it inline."}],"resultDescription":"A JSON object containing: 'rows' (integer count of data rows, excluding header if detected), 'schema' (identifier string 'delx/csv-row-count/v1'), and 'has_header_guess' (boolean indicating whether the first row appears to be a header). The CSV is parsed locally and not sent to third parties.","failureModes":["Malformed or non-UTF-8 CSV text may produce inaccurate row counts","Empty string input may return zero rows","Very large CSV text strings may hit size limits or timeout","Header detection is a heuristic guess and may be incorrect for ambiguous CSVs","Payment failure or insufficient USDC balance will block the request via x402 protocol"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap ($0.001 USDC), privacy-preserving row count on CSV text without uploading data to third-party services. It is ideal for agent workflows that need to gate on record count, validate pipeline outputs, or confirm data sizes before expensive downstream operations. Prefer it over general-purpose code execution when you want a verifiable, pay-per-result micro-API call with no signup friction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:07.187Z","isFirstParty":false,"canonicalSlug":"delx-commerce-csv-row-count-6d6fe644"}