This module adds a new option to the Feeds module that allows you to fetch data from HTTP endpoints requiring an "X-API-Key" in the request header for successful authentication. This is useful for importing data from APIs that use this specific header for authorization.
This simple module is based on Feeds HTTP Auth Fetcher and adds a new Fetcher type plugin for use in Feeds. If you need to fetch an HTTP endpoint (JSON/XML) but must specify an X API Key to get a successful response on your GET request then this is what you're looking for to make it work with Feeds imports.
To use:
- Add the module to your project. Hopefully using composer.
- Create or edit an existing Structure > Feed Type to use the newly provided Download From URL with X API Key option.
- Create or edit an existing Content > Feed to specify an X API Key for the Header below the URL.