# How to integrate cockpit with gatsby static query / page query

**URL:** <https://discourse.getcockpit.com/t/how-to-integrate-cockpit-with-gatsby-static-query-page-query/2104>\
**Category:** Uncategorized\
**Created:** [October 15, 2021, 1:00pm UTC](https://discourse.getcockpit.com/t/how-to-integrate-cockpit-with-gatsby-static-query-page-query/2104 "2021-10-15T13:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vivekm.puh](https://avatars.discourse-cdn.com/v4/letter/v/a8b319/32.png) [@vivekm.puh](https://discourse.getcockpit.com/u/vivekm.puh)\
**Post date:** [October 15, 2021, 1:00pm UTC](https://discourse.getcockpit.com/t/how-to-integrate-cockpit-with-gatsby-static-query-page-query/2104/1 "2021-10-15T13:00:00Z")

</div>

Hi

im using cockpit as CMS for my project, for frontend iam using gatsby as static site generator,  
How do i make a static query to fetch data from cockpit cms.

which plugin should i use and how to make the query

---

<div class="post-metadata">

**Author:** ![abernh](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/abernh/32/859_2.png) [@abernh](https://discourse.getcockpit.com/u/abernh)\
**Post date:** [October 16, 2021, 12:14pm UTC](https://discourse.getcockpit.com/t/how-to-integrate-cockpit-with-gatsby-static-query-page-query/2104/2 "2021-10-16T12:14:48Z")

</div>

Seems as if indeed there is a plugin for that

> **[gatsby-plugin-cockpit](https://www.gatsbyjs.com/plugins/gatsby-plugin-cockpit/)**
>
> gatsby-plugin-cockpit This source plugin pulls Cockpit Headless CMS data to aGatsbyJS, a static site generator for React. Resources Example…
