<commit_before># gatsby-source-shopify

Source plugin for pulling data into [Gatsby][gatsby] from [Shopify][shopify]
stores via the [Shopify Storefront API][shopify-storefront-api].

## Features

- Provides public shop data available via the [Shopify Storefront API][shopify-storefront-api]
- Supports `gatsby-transformer-sharp` and `gatsby-image` for product and
  article images

## Install

```sh
npm install --save gatsby-source-shopify
```

## How to use

```js
// In your gatsby-config.js
plugins: [
  /*
   * Gatsby's data processing layer begins with “source”
   * plugins. Here the site sources its data from Shopify.
   */
  {
    resolve: "gatsby-source-shopify",
    options: {
      // The domain name of your Shopify shop. This is required.
      // Example: 'gatsby-source-shopify-test-shop' if your Shopify address is
      // 'gatsby-source-shopify-test-shop.myshopify.com'.
      shopName: "gatsby-source-shopify-test-shop",<commit_msg>docs(gatsby-source-shopify): Add note about API permissions (#13037)<commit_after># gatsby-source-shopify

Source plugin for pulling data into [Gatsby][gatsby] from [Shopify][shopify]
stores via the [Shopify Storefront API][shopify-storefront-api].

## Features

- Provides public shop data available via the [Shopify Storefront API][shopify-storefront-api]
- Supports `gatsby-transformer-sharp` and `gatsby-image` for product and
  article images

## Install

```sh
npm install --save gatsby-source-shopify
```

## How to use

Ensure you have an access token for the [Shopify Storefront API][shopify-storefront-api]. The token should have the following permissions:

- Read products, variants, and collections
- Read product tags
- Read content like articles, blogs, and comments

Then in your `gatsby-config.js` add the following config to enable this plugin:

```js
plugins: [
  /*
   * Gatsby's data processing layer begins with “source”
   * plugins. Here the site sources its data from Shopify.
   */
  {
    resolve: "gatsby-source-shopify",
    options: {
      // The domain name of your Shopify shop. This is required.
      // Example: 'gatsby-source-shopify-test-shop' if your Shopify address is
      // 'gatsby-source-shopify-test-shop.myshopify.com'.
      shopName: "gatsby-source-shopify-test-shop",
{'fraction_non_alphanumeric': 0.11013215859030837, 'fraction_numerical': 0.0022026431718061676, 'mean_word_length': 3.7510460251046025, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7473998', 'n_tokens_mistral': 729, 'n_tokens_neox': 711, 'n_words': 227}