POST /api/extract
Extract readable text from a public Terms of Service or Privacy Policy URL.
Request
http
POST https://themys.ca/api/extract
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
json
{
"url": "https://example.com/terms"
}
The URL must point to a public page.
Response
json
{
"text": "Terms of Service ...",
"wordCount": 4823
}
| Field | Description |
|---|---|
text | Readable text extracted from the requested page |
wordCount | Number of words in the extracted text |
Errors
The API returns an error when the URL is invalid, requires sign-in, or cannot be read. Check that the page is public and points directly to the legal document, then try again.