API resources

API-related guides, starters, plugins, and more. Learn how to use Sanity’s rich APIs and connect with other API-based services to improve workflows and ship better content experiences.

14 APIs tools

View all

Vimeo Browser

Disclaimer: This plugin is very WIP and its API might change in the future. The UI is not finished yet. A plugin to browse, select and upload vimeo videos directly from the Sanity studio.

Jesper Paulsen
Go to Vimeo Browser

sanity-algolia

Official(made by Sanity team)

Helpful code for automating indexing your Sanity content in Algolia

Rune Botten
Go to sanity-algolia

Snipcart Orders

A dashboard widget for displaying recent orders from Snipcart. This plugin is a part of the Steel headless commerce sudo framework.

Jacob Størdahl
Go to Snipcart Orders

Next.js Sanity Image

Utility for using responsive images hosted on the Sanity.io CDN with the Next.js image component.

Lorenzo de Jong
Go to Next.js Sanity Image

1 APIs starter

Commerce Layer Starter

A multi-country ecommerce starter built with Sanity Studio, Commerce Layer, Next.js, and deployed to Netlify.

Go to Commerce Layer Starter

6 APIs guides

Build an e-commerce site with the Stripe API

In this tutorial, we'll make a no-frills "merch store" for a personal blog using the Stripe API, Next.js, and Sanity. We'll leverage Stripe's fantastic checkout platform to redirect our customers to Stripe's servers for their checkout process.

Joe Holmes
Go to Build an e-commerce site with the Stripe API

GraphQL vs REST: which API is best for your web app?

Are you planning to build an API for your web application and you don't know what architectural approach to take? In this article, we will describe REST and GraphQL APIs. We will see their features, advantages, disadvantages, and use cases.

Facundo Giuliani
Go to GraphQL vs REST: which API is best for your web app?

Form submission using Gatsby, SANITY, Netlify and React Hook Form

A walk through of creating a contact form in Gatsby that submits to both an email address and a backend database using SANITY. The form itself will be built using React Hook Form and also integrate with Netlify forms.

This is an external link at:www.erichowey.dev
Eric Howey
Go to Form submission using Gatsby, SANITY, Netlify and React Hook Form

How to query JSON docs in the Terminal with GROQ

Official(made by Sanity team)

JSON docs are everywhere, but they’re rarely structured the way you want it. Learn to use GROQ in the CLI to get JSON doc data into the shape you need it.

This is an external link at:css-tricks.com
Magnus Holm
Go to How to query JSON docs in the Terminal with GROQ

17 APIs projects made with Sanity

View all

Jamstack Explorers

Jamstack Explorers is a free learning platform created by the team at Netlify to chart a course through the amazing offerings in the Jamstack ecosystem

Go to Jamstack Explorers

Why Mums Don't Jump

Podcast website, plus blog and custom player. Built with Gatsby with a custom source plugin for TransistorFM.

Paul Brickles
Go to Why Mums Don't Jump

Baggu

A Shopify Multi-Site flowing into a single Sanity instance and back out into 2 unique frontend experiences.

Kevin Green
Go to Baggu

Allkinds

Craft a unique online experience that is reflective of the fun and uniqueness of this child focused reusable, compostable, refillable brand.

Kevin Green
Go to Allkinds

OEM

Headless eCommerce experience for a new kind of healthcare company.

Thomas Kim
Go to OEM

Blueland
- has 6 likes

Redesign & headless build for Blueland, a revolutionary cleaning brand on a mission to end single-use plastic 🧼

Mike Wagz
Go to Blueland

3 APIs schemas

Choose a starter
OR install Sanity with:
λ npm install -g @sanity/cli
λ sanity init

Other contribution categories