// native api
Run JavaScript natively inside any HTTP request. Pass your code inline or save reusable functions on the platform. On top of that, ready-made endpoints handle PDFs, screenshots, and scraping so you don't have to write any code at all.
Dedicated APIs for the most common jobs. Call them directly, no JavaScript required.
Ready-to-use presets to create, merge, compress, and convert files.
Get your API key. Learn how →
Choose your execution mode. Inline vs. Stored →
Make your first request:
curl -X POST 'https://e.customjs.io/__js1-YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-H 'customjs-origin: inline/pdf-generator' \
--data-raw '{
"input": { "html": "Hello World" },
"code": "const { HTML2PDF } = require(\"./utils\"); return HTML2PDF(input.html);",
"returnBinary": "true"
}' > output.pdf