How To Connect Mongodb To Shopify With Limited Api Calls?

- 1 answer

Shopify has limited number of API calls. I have an e-commerce website where each seller will be using an external application on node.js to store data in MongoDB external to Shopify. Now, this data has to be stored in the Shopify database but the API calls are limited. Is there a way to club these calls before throwing it to Shopify?



API call limitations are documented in details in Shopify Docs for API Limits

The default settings are as follows:

  • Bucket size: 40
  • Leak rate: 2/second

Shopify Plus

  • Bucket size: 80
  • Leak rate: 4/second

You can use Shopify API Node.js Module to send Shopify API requests. This module provides you the options like autolimit that automatically takes care of Shopify API limits.

Example code:

const Shopify = require('shopify-api-node');

const shopify = new Shopify({
  shopName: 'your-shop-name',
  apiKey: 'your-api-key',
  password: 'your-app-password',
  autoLimit: true

// call Shopify api