Thanks to visit codestin.com
Credit goes to github.com

Skip to content

An API used for fetching the prices of food products from online supermarkets in Singapore.

Notifications You must be signed in to change notification settings

jamesyeap/food-pricer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An API used for fetching the prices of food products from online supermarkets in Singapore (supports NTUC and Cold-Storage at the moment)

Searching from both NTUC and Cold-Storage

Request method API endpoint
POST https://food-pricer.herokuapp.com/
Sample input and output

Input

{
  "query" : "chicken breast"
}

Output (abbreviated for brevity)

{
    "results": [
        {
            "link": "https://www.fairprice.com.sg/product/kee-song-boneless-breast-300g-13097675",
            "measurement": "300g",
            "price": 2.85,
            "supermarket": "ntuc",
            "title": "Kee Song Fresh Chicken - Boneless Breast"
        },      
        {
            "link": "https://coldstorage.com.sg/h-fresh-chicken-breast-2-5034252",
            "measurement": "1PAK",
            "price": "3.9",
            "supermarket": "cold-storage",
            "title": "Fresh Chicken Breast 2 Pieces"
        }
  ]
}

Searching from NTUC only

Request method API endpoint
POST https://food-pricer.herokuapp.com/ntuc/
Sample input and output

Input

{
  "query" : "chicken breast"
}

Output (abbreviated for brevity)

{
    "results": [
        {
            "link": "https://www.fairprice.com.sg/product/kee-song-boneless-breast-300g-13097675",
            "measurement": "300g",
            "price": 2.85,
            "supermarket": "ntuc",
            "title": "Kee Song Fresh Chicken - Boneless Breast"
        }
  ]
}

Searching from Cold-Storage only

Request method API endpoint
POST https://food-pricer.herokuapp.com/cold-storage/
Sample input and output

Input

{
  "query" : "chicken breast"
}

Output (abbreviated for brevity)

{
    "results": [
        {
            "link": "https://coldstorage.com.sg/fresh-s-l-chkn-breast-4-5034255",
            "measurement": "1PAK",
            "price": "7.35",
            "supermarket": "cold-storage",
            "title": "Skinless Chicken Breast 4 Pieces"
        }
  ]
}

About

An API used for fetching the prices of food products from online supermarkets in Singapore.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages