All API tools
Formatters
XML Minifier API
GET
/v1/xml-minifier Free tier1 credit / callAuthentication
Send your API key as a bearer token. Create one free in the dashboard.
Authorization: Bearer $TOOLSXPO_KEYParameters
Passed as query-string parameters. Example values shown.
| Name | Example |
|---|---|
| xml | <root><item>1</item></root> |
| removeComments | false |
Example request
curl "https://api.toolsxpo.com/v1/xml-minifier?xml=%3Croot%3E%3Citem%3E1%3C%2Fitem%3E%3C%2Froot%3E&removeComments=false" \
-H "Authorization: Bearer $TOOLSXPO_KEY"Response
A standard JSON envelope: { ok, data, meta }. The result is in data (text); meta.credits reports what the call cost.