See what's launched

The next gen Gatsby is here Performance, developer velocity, and scaling to meet Enterprise needs - See what’s launched

Sign Up for Free
Community Plugin
View plugin on GitHub


Source plugin for pulling documents into Gatsby from a Strapi API.


npm install --save gatsby-source-strapi

How to use

// In your gatsby-config.js
plugins: [
    resolve: `gatsby-source-strapi`,
    options: {
      apiURL: `http://localhost:1337`,
      queryLimit: 1000, // Default to 100
      contentTypes: [`article`, `user`],
      // Possibility to login with a strapi user, when content types are not publically available (optional).
      loginData: {
        identifier: "",
        password: "",

How to query

You can query Document nodes created from your Strapi API like the following:

  allStrapiArticle {
    edges {
      node {
© 2022 Gatsby, Inc.