I am trying to access the ProPublic API> I have the API key. I am trying to get authorization to work. The documentation says to use -H “X-API-Key: PROPUBLICA_API_KEY” for authentication. Which authorization do I use?
The lines below are from the ProPublica documentation:
Authentication
To use the Congress API, you must sign up for an API key. Usage is limited to 5000 requests per day (rate limits are subject to change). The API key must be included in all API requests to the server, as a header:
X-API-Key: PROPUBLICA_API_KEY
To authorize, use this code:
With shell, you can just pass the correct header with each request
curl "api_endpoint_here"
-H "X-API-Key: PROPUBLICA_API_KEY"
Make sure to replace PROPUBLICA_API_KEY with your API key.
I tried your suggestion and I got an error message: Missing Authentication Token". This is the message I have been getting. I think it needs something for the Authentication section.
Entering the correct session number (current congress session is 117)
Entering the correct group (house or senate)
Adding /members.json at the end of the URL
To use the settings used in the screenshot, feel free to copy and paste the snippet below into your flow. parabola:cb:db335a08-8721-494d-8a66-66b7a6277ba7
Note: The step might show a 500 error once you paste in the step. Adding in your API key as the “Header Value” again should resolve the error.