Skip to content

About

AWS Lambda + SAM template for ShopSavvy Data API - product search, price comparison, and scheduled price monitoring

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

AWS Lambda + ShopSavvy

An AWS Lambda function template with SAM for product search, price comparison, and scheduled price monitoring using the ShopSavvy Data API.

Setup

  1. Install dependencies:
npm install
  1. Set your API key in the SAM template or as an environment variable:
# For local testing
export SHOPSAVVY_API_KEY=ss_live_your_key_here
# Get a key at shopsavvy.com/data
  1. Build and deploy:
sam build
sam deploy --guided

Functions

ProductAPI

HTTP API Gateway endpoints for product search and price lookup.

  • GET /search?q=airpods - Search for products
  • GET /price/{id} - Get current offers for a product
  • GET /deals - Browse current shopping deals

PriceMonitor

Scheduled function that runs on a cron schedule to check prices for monitored products. Configure the product identifiers in the MONITOR_PRODUCTS environment variable (comma-separated).

Default schedule: every 6 hours.

Local Development

sam build
sam local start-api

Then visit http://localhost:3000/search?q=iphone.

Configuration

Edit template.yaml to customize:

  • API Gateway routes
  • Lambda memory/timeout
  • Cron schedule for price monitoring
  • Environment variables

License

MIT

About

AWS Lambda + SAM template for ShopSavvy Data API - product search, price comparison, and scheduled price monitoring

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages