API Documentation

Integrate SwiftConvert file conversion into your applications using our REST API.

Base URL

https://www.swiftdownlod.online/api

Endpoints

POST /api/upload

Upload a file for conversion.

Request: multipart/form-data with file field

curl -X POST https://www.swiftdownlod.online/api/upload \
  -F "file=@myfile.json"

Response:

{
  "success": true,
  "file_info": {
    "filename": "myfile.json",
    "path": "/tmp/uploads/abc123/myfile.json",
    "size": 1024,
    "format": "json"
  }
}

POST /api/convert

Convert an uploaded file to a specified format.

Request Body:

{
  "file_path": "/tmp/uploads/abc123/myfile.json",
  "output_format": "csv",
  "auto_fix": true
}

Response:

{
  "success": true,
  "output_file": "/tmp/converted/myfile.csv",
  "output_filename": "myfile.csv",
  "metadata": {
    "format": "json",
    "records": 100,
    "fields": ["id", "name", "email"]
  }
}

GET /api/download/{filename}

Download a converted file.

curl -O https://www.swiftdownlod.online/api/download/myfile.csv

Output Formats

Format Value
JSON Lines jsonl
CSV csv
JSON json
XML xml
YAML yaml

Error Responses

{
  "success": false,
  "error": "Error message describing what went wrong"
}

Rate Limits

Free tier: 10 requests per minute

Premium: 100 requests per minute