npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

pinterest-downloader

v1.0.0

Published

A lightweight Pinterest video and image downloader client for the CEDDSDEV API.

Downloads

38

Readme

Pinterest Downloader

npm version license

A lightweight, zero-dependency Node.js client for the CEDDSDEV Pinterest Downloader API. Resolve Pinterest pins, videos, and images from regular Pinterest URLs or short pin.it links.

Requirements

  • Node.js 18 or newer

Install

npm install pinterest-downloader

Node.js usage

const pinterestDownloader = require('pinterest-downloader');

async function main() {
  const pin = await pinterestDownloader('https://pin.it/2MJmXlPzy');

  console.log('Title:', pin.title);
  console.log('Thumbnail:', pin.thumbnail);

  for (const download of pin.downloads ?? []) {
    console.log(`${download.type} (${download.quality ?? 'original'}):`);
    console.log(download.url);
  }
}

main().catch(console.error);

The returned value is the API's data object:

{
  source_url: 'https://pin.it/2MJmXlPzy',
  pin_id: '1063060687057329710',
  title: 'Pinterest Video Downloader- KlickPin',
  thumbnail: 'https://...',
  downloads: [
    {
      type: 'video',
      quality: 'hd',
      url: 'https://...',
      thumbnail: 'https://...'
    }
  ]
}

Options

const controller = new AbortController();

const pin = await pinterestDownloader(url, {
  timeout: 15_000,
  signal: controller.signal
});

| Option | Type | Default | Description | | --- | --- | --- | --- | | timeout | number | 30000 | Maximum request time in milliseconds. | | signal | AbortSignal | — | Abort the request from the caller. | | endpoint | string | CEDDSDEV API | Override the endpoint for a compatible API deployment. |

Error handling

Errors are instances of PinterestDownloaderError and include a stable code, with optional status and details fields:

try {
  const pin = await pinterestDownloader(url);
} catch (error) {
  console.error(error.code, error.message);
}

Possible error codes include:

  • INVALID_URL — missing, malformed, or unsupported URL.
  • INVALID_TIMEOUT — timeout is not a positive number.
  • TIMEOUT — the API did not respond before the timeout.
  • ABORTED — the caller cancelled the request.
  • HTTP_ERROR — the API returned a non-success HTTP status.
  • API_ERROR — the API could not process the Pinterest URL.
  • INVALID_RESPONSE — the API returned invalid JSON.
  • NETWORK_ERROR — the API could not be reached.

CLI

Print a formatted JSON response directly from the terminal:

npx pinterest-downloader "https://pin.it/2MJmXlPzy"

Or install it globally:

npm install --global pinterest-downloader
pinterest-downloader "https://pin.it/2MJmXlPzy"

API endpoint

This package calls the CEDDSDEV endpoint:

GET https://cedds-api.duckdns.org/downloader/pintedl?url=<encoded-pinterest-url>

The library returns the endpoint's data property and throws an error when the response is unsuccessful.

Responsible use

Use this package only for content you have permission to download. Follow Pinterest's terms of service, copyright laws, and the rights of content owners. The package does not bypass private pins, authentication, or access controls.

License

MIT © CEDDSDEV