linkedin
  • Become a Seller

How to search for entries of multiple content types in Contentful?

AMIT AGGARWAL . Oct 09, 2024

A:

To search for entries of multiple content types in Contentful, you can use the ‘query’ method with the

content_type

field. However, Contentful does not support querying multiple content types directly in a single API call. You need to make separate requests for each content type and combine the results. Example for a single content type query:

For multiple content types, you would repeat the above for each type and merge the results in your code.

Oct 09, 2024

Was this helpful? upvote icon 0 downvote icon 0
img

Did not find the question you are looking for?

Get fast answers from real users and our software experts

menlaptop

Have a Question in Mind?

Get answers directly from verified users and our software experts

Software icon representing 20,000+ Software Listed 20,000+ Software Listed

Price tag icon for best price guarantee Best Price Guaranteed

Expert consultation icon Free Expert Consultation

Happy customer icon representing 2 million+ customers 2M+ Happy Customers