{"uid":"cap_Fatm6vRLrQNLhck8Kw0E9","slug":"csv-row-counter-fe829467","name":"CSV Row Counter","description":"Count CSV rows. Call when estimating import size or validating uploads mid-pipeline. Returns row count for UTF-8 CSV text (header included as a row). $0.001 USDC per successful call via x402 on Base—deterministic first-party JSON, no API key, no subscription, and nothing is billed on structured validation errors.","url":"https://api.delx.ai/api/v1/x402/csv-row-count","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_iZLocFs1tecn9qgADI3sW","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 rows in a UTF-8 CSV string, including the header row, for import size estimation or upload validation.","exampleAgentPrompt":"How many rows are in this CSV? I want to know the total count including the header before I kick off the import job.","exampleUseCases":[{"title":"Pre-import batch size check","prompt":"Before I start importing this CSV into the database, can you tell me how many rows it has so I can estimate how long it'll take?"},{"title":"Upload validation mid-pipeline","prompt":"I just received a CSV from the vendor — count the rows for me so I can confirm it matches the 5,000 records they said they sent."},{"title":"Pagination planning for CSV processing","prompt":"I need to process this CSV in batches of 100. Can you count the total rows so I can figure out how many pages I'll need?"}],"resultDescription":"A JSON object containing the integer row count for the provided CSV text, with the header row counted as one row. The count reflects total lines parsed in the UTF-8 CSV input.","failureModes":["Malformed or non-UTF-8 CSV input may trigger a structured validation error with no billing charge","Empty string input returns a validation error rather than a zero count","Payment failure via x402 protocol results in a 402 response with no processing","Extremely large CSV strings may hit request size limits"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic row count for a CSV string inline in an agent pipeline — especially before import jobs, during upload validation, or when estimating batch processing scope. It requires no API key or subscription, bills only $0.001 USDC per successful call, and processes the CSV locally without uploading to third parties, making it suitable for sensitive data pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:02:27.229Z","isFirstParty":false}