Unofficial Node.js wrapper for the Pinterest v5 REST API (0.0.10, last updated 2021). Supports ES5/6/8, TypeScript, async-await, promises, and callbacks. Provides coverage for Ads, Pins, Boards, Catalogs, User Account endpoints. No official Pinterest SDK for Node exists; this is a community-maintained alternative. Release cadence is low; relies on access token authentication.
npm install pinterest-node-apiNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates how to import the factory, instantiate with an access token from env, and call user_account.get().
Update to version 0.0.10 via npm install pinterest-node-api@0.0.10
After calling a method, use response.data to get the JSON body.
Use import or const pinterest = require('pinterest-node-api')('TOKEN');Use async/await instead of callbacks.
const pinterest = require('pinterest-node-api')('YOUR_TOKEN');Set a valid PINTEREST_USER_TOKEN environment variable or pass token to factory.
Access .data on the result, e.g., const data = (await pinterest.user_account.get()).data;
Run npm install pinterest-node-api --save in your project directory.