Playground

Test our API without writing any code

Configuration

import requests

response = requests.post(
    'https://api.pdfshift.io/v3/convert/pdf',
    auth=('api', 'sk_xxxxxxxxxx'),
    json={
        "source": "https://en.wikipedia.org/wiki/PDF",
        "format": "pdf"
    }
)

response.raise_for_status()

with open('output.pdf', 'wb') as f:
    f.write(response.content)