https://github.com/verbb/consume
A Craft CMS plugin to create HTTP requests in your Twig templates to consume JSON, XML or CSV content.
https://github.com/verbb/consume
Last synced: about 1 month ago
JSON representation
A Craft CMS plugin to create HTTP requests in your Twig templates to consume JSON, XML or CSV content.
- Host: GitHub
- URL: https://github.com/verbb/consume
- Owner: verbb
- License: other
- Created: 2023-02-06T21:40:15.000Z (over 3 years ago)
- Default Branch: craft-5
- Last Pushed: 2026-04-30T14:18:00.000Z (about 1 month ago)
- Last Synced: 2026-04-30T16:13:38.412Z (about 1 month ago)
- Language: PHP
- Size: 177 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README

Consume for Craft CMS
Consume is a Craft CMS plugin for making HTTP requests in your Twig templates. Integrates with the [Auth](https://github.com/verbb/auth) module to make it possible to use OAuth clients without having to worry about refresh tokens, token management, etc.
It's your complete solution to fetch and consume data from third-party API providers.
## Features
- Create OAuth or Credential clients to make requests with. Save settings in the control panel to use in your templates.
- Create [Guzzle](https://docs.guzzlephp.org/en/stable/) requests in your Twig templates for on-demand data fetching.
- Parse JSON, XML and CSV responses from endpoints into arrays. Also supports HTML and raw text!
- Automatic cache control to save requests, or control it yourself with `{% cache %}` tags.
- Create your own OAuth or Credential clients with our `Generic` clients.
- Provides events to write your own clients.
## Supports
Consume supports 80+ popular OAuth-based API providers for you to create clients for.
- Amazon
- Apple
- Auth0
- Aweber
- Azure
- Basecamp
- Bitbucket
- Box
- Buddy
- Buffer
- ConstantContact
- Deezer
- DeviantArt
- Discord
- Disqus
- Docusign
- Dribbble
- Drip
- Dropbox
- Envato
- Etsy
- Eventbrite
- Facebook
- Fitbit
- Foursquare
- FreshBooks
- GitHub
- GitLab
- Google
- GoToWebinar
- Gumroad
- Harvest
- Heroku
- HubSpot
- Imgur
- Infusionsoft
- Instagram
- Jira
- Line
- LinkedIn
- Linode
- Mailchimp
- Mailru
- Marketo
- Mastodon
- Meetup
- Microsoft
- Mollie
- Odnoklassniki
- PayPal
- Pinterest
- Pipedrive
- Reddit
- Salesforce
- Shopify
- Slack
- Snapchat
- SoundCloud
- Spotify
- Square
- StackExchange
- Strava
- Stripe
- Sugarcrm
- TikTok
- Trello
- Trustpilot
- Tumblr
- Twitch
- Twitter
- Uber
- Unsplash
- Vend
- Vimeo
- Vkontakte
- WeChat
- Weibo
- Yahoo
- Yelp
- Zendesk
- Zoho
We also provide a "Generic" OAuth client in case your provider isn't in the list above.
## Documentation
Visit the [Consume Plugin page](https://verbb.io/craft-plugins/consume) for all documentation, guides, pricing and developer resources.
## Support
Get in touch with us via the [Consume Support page](https://verbb.io/craft-plugins/consume/support) or by [creating a Github issue](https://github.com/verbb/consume/issues)