// native api

Overview

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.

Core endpoints

Dedicated APIs for the most common jobs. Call them directly, no JavaScript required.

More PDF tools

Ready-to-use presets to create, merge, compress, and convert files.

Quick setup

1

Get your API key. Learn how →

2

Choose your execution mode. Inline vs. Stored →

3

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

// get started

One API, everything you need.