← All integrations
Import.io + Node.js

Import.io data in Node.js

Fetch the Import.io extractor’s latest-run JSON endpoint, split on newlines and you have every row. No client library required.

Connects via
EndpointREST API
Setup
5 min
Available on
Endpoints: every planAPI: every plan
Category
Code & API
Node 18+
const res = await fetch(process.env.IMPORTIO_JSON_URL); // Integrate tab → JSON from latest run
const rows = (await res.text())
  .split('\n')
  .filter(Boolean)
  .map((line) => JSON.parse(line));

console.log(rows.length, rows[0]);

How it connects.

Source

The web

Any public page, rendered, through managed proxies

Engine

Import.io

Rendering, proxy routing, captcha handling, extraction

Path

Data endpoint

Latest successful run, CSV or JSON

Destination

Node.js

Fetch extractor results in Node with the built-in fetch.

Also connects via the REST API.

What teams do with it.

Refresh app data on deploy

Pull the latest product or listing data into your build.

Webhook receivers

Handle Import.io’s run-complete POST in an Express or serverless handler.

Orchestrate runs

Start extractors and poll runs from a Node worker.

Set it up.

  1. Copy “JSON from latest successful run” from the extractor’s Integrate tab into IMPORTIO_JSON_URL.
  2. Fetch it with Node 18+ fetch.
  3. Split the NDJSON body on newlines and parse each line.

Questions.

Why not res.json()?

Import.io JSON output is NDJSON, one object per line, so the whole body is not a single JSON document.

Do endpoint downloads count as queries?

No. The latest-run CSV, JSON and Google Sheets endpoints return data your extractor already collected, so they don’t count toward your plan. Only the Live Query API runs an extraction per request.

How fresh is the data?

As fresh as your schedule. Run the extractor hourly, daily or weekly and the endpoint always serves the latest successful run.

How do I authenticate?

Pass your API key as the _apikey query parameter. Copy it from account settings at app.import.io.

Is the API on every plan?

Yes. The trial and Standard include rate-limited API access. Professional and Advanced include full API access and webhooks.

Build on
the live web.