A Node.js wrapper around Marketo's REST API with support for leads, lists, bulk extract, and streaming. Version 0.12.2, stable and unmaintained since 2022. Offers promise-based pagination helpers and streamify functions, unlike simpler request-only clients. Requires Node >=14.17.6 for Corepack compatibility.
npm install node-marketo-restNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a Marketo client using environment variables for OAuth credentials and fetches leads by ID.
Update Node to >=14.17.6 or use an older version of the library.
Consider migrating to a maintained alternative such as @marketo/marketo-rest-client.
Always check data.nextPageToken before calling data.nextPage().
Ensure OAuth credentials are correct and that you're using a valid Marketo instance: const marketo = new Marketo({...}) with all four fields.Run npm install node-marketo-rest and ensure it's in node_modules.
Only call data.nextPage() if data.nextPageToken exists. Example: if (data.nextPageToken) { return data.nextPage(); }