---
title: "Content SDK GraphQL API"
slug: "content-sdk-graphql-api"
abstract: "The GraphQL API hosts your SitecoreAI data (such as layout and dictionary data) and lets you fetch it using GraphQL queries."
---
# Content SDK GraphQL API

The SitecoreAI GraphQL API is a generic GraphQL service platform on top of SitecoreAI. It hosts your data and presents it through GraphQL queries. The API supports real-time data using GraphQL subscriptions.

GraphQL enables production-grade APIs to power your front-end applications. Compared to traditional REST APIs, GraphQL is significantly easier to maintain, far more easily discoverable and queryable (thanks to built-in GUI tools), more bandwidth-efficient, and more powerful.

## The GraphQL endpoint

Content SDK applications use the [Experience Edge](https://doc.sitecore.com/sai/en/developers/sitecoreai/experience-edge.html) GraphQL endpoint. It includes a read-only [GraphQL schema](https://doc.sitecore.com/xmc/en/developers/xm-cloud/en/the-experience-edge-schema.html) designed to accommodate common front-end use cases for headless SitecoreAI development.

## Data available for GraphQL querying

The Content SDK offers a suit of services for retrieving data via GraphQL, such as:

- [The Layout service](https://github.com/Sitecore/content-sdk/blob/dev/ref-docs/content/layout/classes/LayoutService.md) - used to query the Layout API for layout-related data.
- [The Dictionary service](https://github.com/Sitecore/content-sdk/blob/dev/ref-docs/content/i18n/classes/DictionaryService.md) - used to query the Dictionary API for localization and dictionary content.
- Additional specialized services for fetching editor data, error pages, sitemaps, and so on.

The [`SitecoreClient` class](https://doc.sitecore.com/sai/en/developers/content-sdk/angular/1x/the-sitecoreclient-api.html "The SitecoreClient API") is the central point for interacting with SitecoreAI's headless APIs and services. It streamlines data access across all available GraphQL services.