Our Developer API exposes the same validation engine that powers Tools allowing you to build your own custom integrations and tools. Submit HTML pages over HTTP and receive the text content with source offsets.
Server
All programmatic access must target https://api.structuredtext.app.
> curl 'https://api.structuredtext.app/ok'
okAuthentication
For paid plans, create and authenticate using an Access Token for additional features and usage limits. Include these bearer tokens with the Authorization request header. Anonymous access is supported, but subject to IP-based usage limits.
POST /v1/document.process HTTP/1.1
Host: api.structuredtext.app
Authorization: Bearer {ACCESS_TOKEN}Create and revoke access tokens on the Access tokens page of your account. A token is shown once, when it is created. A request with an invalid, revoked, or non-Bearer Authorization header is rejected with HTTP 403 instead of falling back to anonymous access. API keys created before access tokens no longer work and are not listed on the Access tokens page; create a new token to replace each one.
Endpoints
- /v1/document.export — Tidy or convert a document to alternative text encodings.