Craft CMS Element API

Official Craft CMS plugin that creates configurable JSON REST endpoints for any element type (entries, assets, categories, users). Endpoints are defined via a PHP configuration file mapping URL patterns to element queries with optional data transformation, pagination, and caching. Supports JSON Feed V1.1 and JSON:API serialization formats.

Documentation

API entry from apis.yml

apis.yml Raw ↑
aid: craft-cms:element-api
name: Craft CMS Element API
description: Official Craft CMS plugin that creates configurable JSON REST endpoints for any element type
  (entries, assets, categories, users). Endpoints are defined via a PHP configuration file mapping URL
  patterns to element queries with optional data transformation, pagination, and caching. Supports JSON
  Feed V1.1 and JSON:API serialization formats.
humanURL: https://github.com/craftcms/element-api
baseURL: https://example.craftcms.com
tags:
- REST
- JSON
- Elements
- Plugin
- CMS
properties:
- type: Documentation
  url: https://github.com/craftcms/element-api