Link Search Menu Expand Document

Convert Excel to CSV - Python

XLS / XLSX to CSV sample in Python demonstrating ‘Convert Excel to CSV’
import requests
import json

# Your API endpoint URL.
url = ""

# Your API Key.
api_key = "Your API Key"

# The URL of the Excel file you want to convert.
input_file_url = ""

headers = {
    "x-api-key": api_key,
    "Content-Type": "application/json"

data = {
    "url": input_file_url,
    "async": False

response =, headers=headers, json=data)

if response.status_code == 200:
    # The request was successful.
    # Parse the json response.
    data = response.json()

    # Extract the CSV file URL from the response.
    csv_url = data.get('url', '')
    print("CSV file is available at: ", csv_url)
    # There was an error with the request.
    print("Error: ", response.status_code) Web API: the Web API with a set of tools for documents manipulation, data conversion, data extraction, splitting and merging of documents. Includes image recognition, built-in OCR, barcode generation and barcode decoders to decode bar codes from scans, pictures and pdf.

Get your API key here!

Download Source Code (.zip)

return to the previous page explore XLS / XLSX to CSV endpoint