Skip to content

rpidanny/gr-api-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gr-api-proxy

GoodReads API Proxy implemented as an AWS Lambda function.

Reason for API proxy

  • Hide API key
  • Convert XML response from goodreads to JSON

Requirements

Installation

  • clone repository
  • run cd lambda
  • run npm i

Deployment

  • 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

Usage

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.