Appearance
Quick start with Node.js
Learn how to send your first request using Node.js.
This guide shows how to integrate Doppio's API into your Node.js application to generate PDFs or screenshots.
❶ Prerequisites
To get the most out of this guide, you’ll need to sign up for Doppio.
Go to the dashboard and copy your API key. Don't worry: the free plan is free forever.


❷ Send a request
The easiest way to generate a PDF from https://www.spacejam.com/1996/ and save it locally is to use the direct download method.
Render PDF
Direct method
The direct method returns the PDF itself in the response, which is useful when the client should download the file immediately.
Synchronous method
The synchronous method returns a JSON payload containing fields such as documentUrl. This is useful if your application needs to store the hosted URL or process it further.
That's it.
The Asynchronous Approach
If your project needs webhook-based response handling, take a look at our asynchronous method.
It is a good fit when document generation should run in the background, especially for large batches, automated workflows, or flows where the user should not wait for the render to finish.
Need more?
Are you looking for a specific framework? Check out our quick starts by category.