https://github.com/agentcooper/albert-heijn
Albert Heijn (https://www.ah.nl/) API
https://github.com/agentcooper/albert-heijn
Last synced: about 1 year ago
JSON representation
Albert Heijn (https://www.ah.nl/) API
- Host: GitHub
- URL: https://github.com/agentcooper/albert-heijn
- Owner: agentcooper
- License: apache-2.0
- Created: 2016-12-31T13:38:23.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-09-30T17:18:48.000Z (over 7 years ago)
- Last Synced: 2025-04-26T07:07:44.340Z (about 1 year ago)
- Language: JavaScript
- Size: 48.8 KB
- Stars: 52
- Watchers: 4
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### albert-heijn [](https://circleci.com/gh/agentcooper/albert-heijn)
Albert Heijn (https://www.ah.nl/) API.
### Install
```
npm install albert-heijn
```
### Example
Run in [RunKit playground](https://npm.runkit.com/albert-heijn).
```js
const ah = require('albert-heijn');
const url = 'https://www.ah.nl/producten/product/wi33693/ah-halfvolle-melk';
ah.getNutritionFacts(url).then(console.log);
/*
{ Energie: '200 kJ (48 kcal)',
Vet: '1,5 g',
'Waarvan verzadigd': '1 g',
'Waarvan enkelvoudig onverzadigd': '0,5 g',
'Waarvan meervoudig onverzadigd': '0 g',
Koolhydraten: '4,5 g',
'Waarvan suikers': '4,5 g',
Voedingsvezel: '0 g',
Eiwitten: '3,5 g',
Zout: '0,1 g',
'Riboflavine/vitamine B2': '0,18 mg',
'Vitamine B12': '0,47 µg',
Calcium: '126 mg' }
*/
```
### Similar projects
- https://github.com/bartmachielsen/SupermarktConnector