What it does
Sanity is a headless content management system that stores blog posts, pages and other structured content in a hosted database. Your site reads it over HTTP with the GROQ query language, and other endpoints change documents, upload assets and manage projects; answers are JSON. Free plan with up to 20 users, 2 public datasets, 10,000 documents, 250,000 API requests and 1 million CDN requests a month. An official MCP server at https://mcp.sanity.io lets AI agents work with your content.
At a glance
- API key
- Needed, free · More APIs with a free key
- Pricing
- Free plan with up to 20 users, 2 public datasets, 10,000 documents, 250,000 API requests and 1 million CDN requests a month.
- Formats
- JSON
- Interface
- REST, HTTP-GET, Webhooks, MCP
- Provider
- sanity.io
More information: https://www.sanity.io/docs/http-reference
Is this your service? Show that it is listed
Put this badge on your website or in your README; it links to this page. About the badge
Example request
curl
curl 'https://api.sanity.io/v2021-06-07/projects' \
-H 'Authorization: Bearer YOUR_API_KEY'
JavaScript
const response = await fetch("https://api.sanity.io/v2021-06-07/projects", {
headers: {
"Authorization": "Bearer YOUR_API_KEY",
},
});
const data = await response.json();
console.log(data);
Python
import requests
response = requests.get(
"https://api.sanity.io/v2021-06-07/projects",
headers={
"Authorization": "Bearer YOUR_API_KEY",
},
timeout=30,
)
print(response.json())
Replace YOUR_API_KEY with your own key.