URL Decode API¶
Overview¶
The URL Decode API decodes percent-encoded text and returns the decoded result as a plain-text file. For example, hello%20world%3F decodes to hello world?.
Endpoint¶
| Method | URL |
|---|---|
POST | https://api.apidatatools.com/url-decode-api |
Authentication¶
Include your API key in the x-api-key request header:
x-api-key: YOUR_API_KEY
Input modes¶
This converter supports synchronous body mode.
Headers¶
| Header | Type | Required | Default / values | Description |
|---|---|---|---|---|
x-api-key | String | Yes | Your API key | Authenticates the request. |
x-source-type | String | No | Defaults to body; use body | Selects the input mode. This endpoint supports body mode. |
Request body¶
Send a non-empty text body containing the text to decode. Send the text as-is; do not JSON-encode it.
curl example¶
curl -X POST "https://api.apidatatools.com/url-decode-api" \
-H "x-api-key: YOUR_API_KEY" \
-H "x-source-type: body" \
--data-raw 'hello%20world%3F'
Success responses¶
A successful request returns HTTP 200 with a JSON response containing:
| Field | Description |
|---|---|
request_id | Identifier for the request. |
status | success when processing completes. |
file | Temporary download URL for the decoded .txt file. |
preview | Decoded text. |
Error handling¶
Errors use a JSON envelope with status, error, request_id, and details.message. The details object may include additional information.
| HTTP status | Error code | Description |
|---|---|---|
400 | EMPTY_BODY | The request body is empty. |
400 | INVALID_BODY_ENCODING | The request body could not be decoded from its transport encoding. |
400 | INVALID_SOURCE_TYPE | The source type is not supported. |
400 | INVALID_TEXT | The input must be a non-empty string. |
400 | URL_DECODE_ERROR | Decoding failed. |
401 | UNAUTHORIZED | Authentication is missing or invalid. |
404 | UNKNOWN_FUNCTION | The requested endpoint is not recognized. |
404 | USER_NOT_FOUND | The account associated with the request was not found. |
413 | PAYLOAD_TOO_LARGE | The request body exceeds the limit for the account’s plan. |
429 | QUOTA_EXCEEDED | The account’s request quota has been reached. |
429 | RATE_LIMITED | The request rate limit has been reached. |
500 | INTERNAL_ERROR | The request could not be processed. |
500 | PLAN_NOT_FOUND | Plan configuration could not be found. |
Notes¶
- Request-body size limits, quotas, and rate limits depend on your plan. See tool limits.
- The
filedownload URL is temporary; file retention depends on your plan.