Search code examples
node.jscontentful

Can we limit or customize response data from contentful to reduce network traffic


Is there a way that we can limit response data coming from the contentful.

I did search on documentation but didn't fine anything on this. https://www.contentful.com/developers/docs/references/content-management-api/

Also i am using this node module https://www.npmjs.com/package/contentful-management


Solution

  • Currently there are only two possible ways of limiting the data returned by Contentful:

    1. Use the limit parameter to reduce the amount of resources. The default value here is 100. (see docs)

    2. Use the include=0 parameter to avoid including of linked items. The default value here is including one level of included items. (see docs)