Query content-entries based on a specific model type

Hi there,

we are playing around with the ContentAPI.

We want to fill our sitemap with the URIs of all available content entries that are based on page-model-types (not the default page-Model).

Unfortunately we only found a way to query content for known models, but no way to query: “Get all content, that uses a model, which has the page type”

Is there a way to achieve something like this?

Best regards

Hey @abehr, currently, there isn’t a way to query all content, that uses a model, which has the page type. We really appreciate user feedback, so I’m going to send this suggestion over to our product team!

Hi @kara,

thanks a lot

Has this been fixed? To me, it seems like the basic CMS capability of being able to list the pages available.

Hi @mrojas , with the Admin API you can query model schemas (see below) to get the model types then use that info to decide what model to pass to the Content API or your SDK.

query {
  models {
    name
    kind
  }
}
1 Like