GoodReads API Proxy implemented as an AWS Lambda function.
- Hide API key
- Convert XML response from goodreads to JSON
- clone repository
- run
cd lambda
- run
npm i
- Create a lambda function on AWS
- Update
deploy.sh
with you function name - Add
GR_KEY
environment variable on your lambda function - Run
./deploy.sh
- Create an
API Gateway
to trigger the lambda function - Setup CORS on your API gateway to restrict access
Once your lambda function is setup with API gateway, you can call all the APIs of Goodreads by just replacing www.goodreads.com
with your API gateway URL. You don't need to send the key
query parameter.