xtract.bot
POST /api/url-decode

URL-decode percent-encoded strings (`%20` → space, `%2F` → `/`, etc.). Optional `+ → space` translation for application/x-www-form-urlencoded bodies.

Reverses URL percent-encoding: `%20` → space, `%2F` → `/`, `%E2%9C%93` → `✓`. Output is plain text in UTF-8. Set `plusToSpace: true` if the input came from an HTML form body or query string (where space is encoded as `+`).

Inputs

NameTypeDefaultDescription
input*stringPercent-encoded text.
scopeenum (component | form)"component"`component` (plain percent-decode) or `form` (also translates `+` to space).

Response

Modes: json, text. Cache: yes (24h TTL).

Code samples

Built from the search example.


curl -X POST https://api.xtract.bot/api/url-decode \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "X-Account-Id: $XTRACT_ACCOUNT_ID" \
  -H "X-Api-Key: $XTRACT_API_KEY" \
  -d '{
  "input": "hello%20world%20%26%20foo%3Dbar",
  "scope": "component"
}'