{"uid":"cap_XaMBtn65T6lag8_goxIsD","slug":"pennyrail-text-stats-line-count-7ff8b4cd","name":"PennyRail Text Stats – Line Count","description":"Machine-readable settlement service","url":"https://pennyrail.vercel.app/api/p/nano/text.stats--line-count","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"string"}}},"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_HJm3v9KsxzZLl8Vx4_SaB","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 lines in a given text string and returns the line count as structured data.","exampleAgentPrompt":"Count how many lines are in this text: 'Hello world\\nThis is line two\\nAnd this is line three'","exampleUseCases":[{"title":"Log file line counting","prompt":"How many lines are in this server log excerpt? 'ERROR: disk full\\nWARN: retrying connection\\nINFO: process started\\nERROR: timeout reached'"},{"title":"Code snippet line measurement","prompt":"Tell me how many lines this code snippet has: 'def foo():\\n    x = 1\\n    y = 2\\n    return x + y'"},{"title":"Document line audit","prompt":"I need to know the exact line count of this pasted text block — can you count them? 'Line one\\nLine two\\nLine three\\nLine four\\nLine five'"}],"resultDescription":"A JSON object containing the computed line count (and potentially related text statistics) for the provided input string.","failureModes":["Missing 'input' field returns a validation error","Empty string may return zero or an error depending on service behavior","Very large text inputs may time out or be rejected","Network or payment settlement failure returns HTTP 402 or 5xx"],"whenToPreferThis":"Choose this endpoint when you need a quick, cheap, pay-per-call line count for arbitrary text strings without managing your own parsing logic. It is especially useful in agent pipelines that process variable text blobs and need reliable line counts as a computational step without spinning up infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:52:17.873Z","isFirstParty":false}