
Product
Introducing Reports: An Extensible Reporting Framework for Socket Data
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.
@originalfunko/shopify-collection-fetcher
Advanced tools
This library returns all products or ids from a Shopify collection using the GraphQL endpoint. It automatically handles pagination.
This library returns all products or ids from a Shopify collection using the GraphQL endpoint. It automatically handles pagination.
Inside of your project, do:
yarn add @originalfunko/shopify-collection-fetcher
Simply include the library:
const shopifyCollectionFetcher = require('shopify-collection-fetcher');
Initialize your config settings:
shopifyCollectionFetcher.init({
SHOPIFY_API_URI: '<API_URI>',
SHOPIFY_API_TOKEN: '<API_TOKEN>',
});
Then call it as needed:
let productsResult = await shopifyCollectionFetcher.fetchIt(id);
let productIds = await shopifyCollectionFetcher.parseIt(id, productsResult);
products = products.concat(productIds);
Beyond the SHOPIFY_API_URI and SHOPIFY_API_TOKEN settings (which will inherit process.env.SHOPIFY_API_URI and process.env.SHOPIFY_API_TOKEN if available), here is the complete list of settings:
shopifyCollectionFetcher.init({
SHOPIFY_API_URI: '<API_URI>',
SHOPIFY_API_TOKEN: '<API_TOKEN>',
SHOPIFY_API_RATE_LIMIT: 50,
SHOPIFY_API_GRAPHQL_PRODUCTS: 20,
});
FAQs
This library returns all products or ids from a Shopify collection using the GraphQL endpoint. It automatically handles pagination.
We found that @originalfunko/shopify-collection-fetcher demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.