Retrieving Contentful data via Data Query integration (instead of fetcher)

I can’t figure out why I’m unable to retreive Contentful data via Data Query integration (instead of the Contentful fetcher).

For the screenshot, I crossed out my API code (“Bearer: XXX”), but I’m using my actual API code in the real integration.

It seems like Plasmic connects without mistake, but Contentful only returns a strange object (their website??).
Is my issue related to needing to define a space and environment in the header/base URL?
When I tried it, it wasn’t returning anything.

Please advise :sweat_smile:


Hey @leafer_design

It looks like you’ve set up the call incorrectly. Contentful is returning that because you’re not sending the correct format.

Are you trying to use their GraphQL API or their Content Delivery API?

Your base URL is using https://cdn.contentful.com that is for their Content Delivery API, yet you have GraphQL selected in the source of your screenshot.

If you want to use Contentfuls GraphQL API ensure you use https://graphql.contentful.com as your Base URL and continue following the steps here

2 Likes

Thank you for answering!

I feel so dumb (first time trying to connect to Contentful) haha

I saw they had several different APIs but didn’t realize the GraphQL API was its own separate one!

1 Like