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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@scrapeit-cloud/shopify-api

v1.0.0

Published

Real-Time Shopify APIs

Downloads

16

Readme

Shopify is a powerful e-commerce platform that operates online and offline, providing businesses with the tools to create professional websites and robust online stores. Because of its widespread popularity, Shopify-based online stores often become prime targets for data scraping for strategic marketing & advertising decisions.

Our Shopify Node API offers a seamless solution, allowing you to get data from these Shopify stores without the need to navigate the complexities of web scraping, proxy configuration, or bypassing potential blocks.

With this Shopify API Node NPM you can focus on leveraging valuable data and maximizing the potential of your business.

Install

npm install @scrapeit-cloud/shopify-api

API Key

To use this NPM package, you need a Scrape-It.Cloud API key. Follow the steps below to get started:

  1. Visit the Scrape-It.Cloud website at https://scrape-it.cloud.
  2. Sign up to get your API key and some credits for free.

Now you can use this API key to work with Shopify NPM.

Use

Here's a simple example of using the library to get collection information in a Shopify store:

const  ShopifyAPI = require('@scrapeit-cloud/shopify-api');
const  shopifyApi = new  ShopifyAPI('INSERT_YOUR_API_KEY');

const  main = async () => {
  try {
    const result = await shopifyApi.collections({
      url: 'https://libertasbella.com',
    })

    console.log(result)
  } catch(e) {
    if (e.validationErrors) {
      console.log(e.validationErrors)
    }

    console.log(e.message)
  }
};

main();

The Shopify API NPM requires the following parameter:

  • url (string): The URL of the Shopify store.

You can also use our Shopify API to get product information:

const  ShopifyAPI = require('@scrapeit-cloud/shopify-api');
const  shopifyApi = new  ShopifyAPI('INSERT_YOUR_API_KEY');

const  main = async () => {
  try {
    const result = await shopifyApi.products({
      url: 'https://libertasbella.com',
      limit: 250,
      page: 1,
      collection: '1984'
    })

    console.log(result)
  } catch(e) {
    if (e.validationErrors) {
      console.log(e.validationErrors)
    }

    console.log(e.message)
  }
};

main();

Shopify API NPM provides the following optional parameters for getting products:

  • limit (number, optional): The maximum number of products to retrieve. This parameter is limited to a range between 1 and 250.
  • page (number, optional): The page number of the results to retrieve. This parameter is limited to a range starting from 1 and up to the maximum safe integer value.
  • collection (string, optional): The collection handle to filter the products. Provide the collection handle as a string.

Please refer to the API documentation for more detailed information about available methods.

How to use Shopify Node API for Scraping

We developed the Shopify API NodeJS to simplify scraping information from online Shopify stores. To use it, you must install the NPM package and use NodeJS to write a little code to save the data obtained with the API.

If you are not very good at programming but need to get data, you can use no-code Scrape-It.Cloud Shopify scraper. In this case, you won't need programming skills, and you'll get all the necessary data in a convenient format as a file.