跳到主要内容

Strapi APIs to access your content

Once you've created and configured a Strapi project, created a data structure with the Content-Type Builder and started adding data through the Content Manager, you likely would like to access your content.

From a front-end application, your content can be accessed through Strapi's Content API, which is exposed:

REST and GraphQL APIs represent the top-level layers of the Content API exposed to external applications. Strapi also provides 2 lower-level APIs:

  • The Document Service API is the recommended API to interact with your application's database within the backend server or through plugins. The Document Service is the layer that handles documents as well as Strapi's complex data structures like components and dynamic zones.
  • The Query Engine API interacts with the database layer at a lower level and is used under the hood to execute database queries. It gives unrestricted internal access to the database layer, but is not aware of any advanced Strapi features that Strapi 5 can handle, like Draft & Publish, Internationalization, Content History, and more.
    ⚠️ In most, if not all, use cases, you should use the Document Service API instead.

This documentation section includes reference information about the following Strapi APIs and some integration guides with 3rd party technologies: