Word Count Translation Quote Text DOCX PDF Readability API
Free tier included · Text AnalysisWord Count & Translation Quote API provides precise word, character, line, sentence, syllable, and lexicon counts for translation agencies, localization project managers, and content teams. It handles plain text, Microsoft Word `.docx` documents (including paragraphs and table cells), and PDF documents with text layers. In addition to basic counts, the service computes full readability metrics including Flesch Reading Ease, Flesch-Kincaid Grade, Gunning Fog, Coleman-Liau, ARI, average grade level, and target audience assessment.
For translators and translation agencies quoting per word, the API includes built-in price calculation with support for custom rates and minimum floor prices. New endpoints include rich full text/file analysis, multi-format output support (JSON, XML, YAML), and batch text analysis of up to 100 text snippets in a single call.
The service is fully offline and stateless: files are parsed securely in memory and never stored. It covers the combined capabilities of leading text analysis and translation quoting APIs at a lower cost.
Honest limits: Scanned PDFs without a text layer return zero words with a warning rather than failing. Maximum text payload length is 2,000,000 characters and maximum file size is 10 MB. Batch requests accept up to 100 text items per call.
Endpoints
| Method | Path | What it does |
|---|---|---|
GET | / | API metadata and root discovery endpoint. |
GET | /health | Liveness probe checking service status. |
POST | /count-text | Count words, characters, and lines for plain text input with optional rate calculation. |
POST | /count-docx | Extract text and count words, characters, and lines from an uploaded .docx document. |
POST | /count-pdf | Extract text layer and count words, characters, and lines from an uploaded .pdf document. |
POST | /quote | Generate an instant translation quote from plain text or an uploaded file with custom pricing rules. |
POST | /count-text/full | Full text analysis with readability metrics and multi-format output support (json, xml, yaml). |
POST | /count-docx/full | Extract text from a .docx file and return full counts plus readability scores. |
POST | /count-pdf/full | Extract text from a .pdf file and return full counts plus readability scores. |
POST | /batch | Analyze up to 100 text snippets in a single request. |
Quick start
curl -X POST "https://wordcount.p.rapidapi.com/count-text" \
-H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
-H "X-RapidAPI-Host: wordcount.p.rapidapi.com" \
-H "Content-Type: application/json" \
-d '{"text": "Hello world, this is a translation quote.", "rate_per_word": 0.12}'
FAQ
Are my uploaded documents stored or logged?
No. All files (.docx and .pdf) and text payloads are processed strictly in memory and are never persisted, logged, or shared.
What happens if I upload a scanned PDF without a text layer?
The API will return a zero word count with an informative warning message instead of raising a server error.
Can I get output formats other than JSON?
Yes. The full analysis endpoints (`/count-text/full`, `/count-docx/full`, `/count-pdf/full`, and `/batch`) support XML and YAML output formats via the `format` query parameter.
Is there a file size or text length limit?
Yes. The maximum text payload length is 2,000,000 characters, the maximum file upload size is 10 MB, and batch requests accept up to 100 text snippets per call.
Try Word Count Translation Quote Text DOCX PDF Readability free
Free tier on every plan. Get an API key and start calling in under a minute.
Open on RapidAPI