/v1/archive-extractor

Extract ZIP/RAR/7Z archives.

Tool Usage Notes

Accepts one or multiple archive URLs.
If exactly one file is extracted from one archive, you get a single file.
Otherwise, extracted content is returned as ZIP.
Important: current extractor reliably supports ZIP archives; non-ZIP formats may fail.

Estimate Before Processing

Use the estimate endpoint to preview token cost and validate your input URLs before starting conversion.

curl -X POST https://filemazing.com/v1/archive-extractor/estimate \
  -H "Authorization: Bearer fm_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "inputs": ["https://example.com/file"],
    "response_type": "json"
  }'
{
  "ok": true,
  "tool": "archive-extractor",
  "mode": "estimate",
  "estimated_tokens": 1,
  "available_tokens": 10,
  "enough_tokens": true,
  "shortfall_tokens": 0
}

Example Request

Select extraction mode based on desired output.

curl -X POST https://filemazing.com/api/v1/archive-extractor \
  -H "Authorization: Bearer fm_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "inputs": ["https://example.com/archive.zip"],
    "mode": "all",
    "response_type": "json"
  }'

Request Parameters Breakdown

Parameter Required Type Options Default Example
inputs Yes array<string> HTTP/HTTPS URL(s) to archive files none (required) ["https://example.com/archive.zip"]
Provide one or more archive URLs.
mode Yes string all, images, documents none (required) all
Filters extracted files by type.
response_type No string json, xml, text json json
Controls API response payload format.
promo_code No string Any active promo code empty SPRING25
Optional; applies discount rules when valid.

Example Response

Extraction output is returned as downloadable bundle.

{
  "ok": true,
  "tool": "archive-extractor",
  "mode": "sync",
  "status": "completed",
  "download_url": "https://filemazing.com/tool/archive-extractor/jobs/.../download",
  "estimated_tokens": 2,
  "final_tokens": 2
}

Response Fields Breakdown

Field Type Always Returned Example
ok boolean Yes true
Indicates success/failure.
tool string Yes archive-extractor
Tool identifier.
mode string Yes sync
Current execution mode.
status string Yes completed
Processing state.
download_url string Yes https://filemazing.com/tool/archive-extractor/jobs/.../download
Single file or ZIP download URL.
estimated_tokens integer Yes 2
Estimated reserved tokens.
final_tokens integer Yes 2
Final charged tokens.