0.0.6 • Published 3 years ago

marktguru v0.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Unofficial Marktguru library

A library to search for offers on marktguru.de.

Usage

import { search } from 'marktguru';

const doSearch = async () => {
    try {
        const query = 'Cola';
        const offers = await search(query, { limit: 10 });
    } catch (error) {
        // error is an axios error, see https://axios-http.com/docs/handling_errors for more infos
        console.error(error);
    }
}

SearchOptions

KeyDescriptionDefault
limitSet the limit of offers to receive1000
offsetSkip as many offers as offset is set0
allowedRetailersAn array of retailers. See here on line 2 for some retailers[]
zipCodeThe zip code of area/city where to search for offers60487

Offer

How an Offer object looks like, you can see here on line 77

Tests

$ npm run test
0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago