derhuerst / eco-counter-client

Fetch data about bicycle counters from the Eco Counter API.
https://github.com/derhuerst/eco-counter-client
ISC License
14 stars 2 forks source link

adapt package to changed Eco Counter API #15

Open lmouli opened 2 years ago

lmouli commented 2 years ago

Hi,

I try to obtain the same database as this article : https://www.pnas.org/content/118/15/e2024399118 that use eco-counter-client The code that is use can be found here : https://zenodo.org/record/4015974. It's the get_counter_data.js file.

When I run the code, I have the following error :

Error: Not Found at /Users/X/node_modules/eco-counter-client/lib/request.js:39:16 at processTicksAndRejections (internal/process/task_queues.js:95:5) { statusCode: 404 }

Any idea where the error might come from ? Moreover I use node node v14.17.6 and this is the npm list from eco-counter-client

├─┬ fetch-ponyfill@6.1.1 │ └─┬ node-fetch@2.6.3 │ └─┬ whatwg-url@5.0.0 │ ├── tr46@0.0.3 │ └── webidl-conversions@3.0.1 ├─┬ floordate@3.0.0 │ └── isnumber@1.0.0 ├─┬ pinkie-promise@2.0.1 │ └── pinkie@2.0.4 ├─┬ query-string@6.14.1 │ ├── decode-uri-component@0.2.0 │ ├── filter-obj@1.1.0 │ ├── split-on-first@1.1.0 │ └── strict-uri-encode@2.0.0 ├─┬ tap-min@2.0.0 │ ├─┬ chalk@2.4.2 │ │ ├─┬ ansi-styles@3.2.1 │ │ │ └─┬ color-convert@1.9.3 │ │ │ └── color-name@1.1.3 │ │ ├── escape-string-regexp@1.0.5 │ │ └─┬ supports-color@5.5.0 │ │ └── has-flag@3.0.0 │ ├── duplexer3@0.1.4 │ ├── hirestime@3.2.2 │ ├─┬ pretty-ms@4.0.0 │ │ └── parse-ms@2.1.0 │ ├─┬ readable-stream@3.6.0 │ │ ├── inherits@2.0.4 deduped │ │ ├─┬ string_decoder@1.3.0 │ │ │ └── safe-buffer@5.2.1 │ │ └── util-deprecate@1.0.2 │ └─┬ tap-parser@9.3.3 │ ├── events-to-array@1.1.2 │ ├─┬ minipass@2.9.0 │ │ ├── safe-buffer@5.2.1 deduped │ │ └── yallist@3.1.1 │ └─┬ tap-yaml@1.0.0 │ └── yaml@1.10.2 └─┬ tape@5.3.1 ├─┬ call-bind@1.0.2 │ ├── function-bind@1.1.1 │ └─┬ get-intrinsic@1.1.1 │ ├── function-bind@1.1.1 deduped │ ├── has@1.0.3 deduped │ └── has-symbols@1.0.2 deduped ├─┬ deep-equal@2.0.5 │ ├── call-bind@1.0.2 deduped │ ├─┬ es-get-iterator@1.1.2 │ │ ├── call-bind@1.0.2 deduped │ │ ├── get-intrinsic@1.1.1 deduped │ │ ├── has-symbols@1.0.2 deduped │ │ ├── is-arguments@1.1.1 deduped │ │ ├── is-map@2.0.2 │ │ ├── is-set@2.0.2 │ │ ├─┬ is-string@1.0.7 │ │ │ └── has-tostringtag@1.0.0 deduped │ │ └── isarray@2.0.5 deduped │ ├── get-intrinsic@1.1.1 deduped │ ├─┬ is-arguments@1.1.1 │ │ ├── call-bind@1.0.2 deduped │ │ └── has-tostringtag@1.0.0 deduped │ ├─┬ is-date-object@1.0.5 │ │ └── has-tostringtag@1.0.0 deduped │ ├── is-regex@1.1.4 deduped │ ├── isarray@2.0.5 │ ├── object-is@1.1.5 deduped │ ├── object-keys@1.1.1 │ ├── object.assign@4.1.2 deduped │ ├─┬ regexp.prototype.flags@1.3.1 │ │ ├── call-bind@1.0.2 deduped │ │ └── define-properties@1.1.3 deduped │ ├─┬ side-channel@1.0.4 │ │ ├── call-bind@1.0.2 deduped │ │ ├── get-intrinsic@1.1.1 deduped │ │ └── object-inspect@1.11.0 deduped │ ├─┬ which-boxed-primitive@1.0.2 │ │ ├─┬ is-bigint@1.0.4 │ │ │ └── has-bigints@1.0.1 │ │ ├─┬ is-boolean-object@1.1.2 │ │ │ ├── call-bind@1.0.2 deduped │ │ │ └── has-tostringtag@1.0.0 deduped │ │ ├─┬ is-number-object@1.0.6 │ │ │ └── has-tostringtag@1.0.0 deduped │ │ ├── is-string@1.0.7 deduped │ │ └─┬ is-symbol@1.0.4 │ │ └── has-symbols@1.0.2 deduped │ ├─┬ which-collection@1.0.1 │ │ ├── is-map@2.0.2 deduped │ │ ├── is-set@2.0.2 deduped │ │ ├── is-weakmap@2.0.1 │ │ └── is-weakset@2.0.1 │ └─┬ which-typed-array@1.1.7 │ ├── available-typed-arrays@1.0.5 │ ├── call-bind@1.0.2 deduped │ ├── es-abstract@1.18.6 deduped │ ├── foreach@2.0.5 │ ├── has-tostringtag@1.0.0 deduped │ └─┬ is-typed-array@1.1.8 │ ├── available-typed-arrays@1.0.5 deduped │ ├── call-bind@1.0.2 deduped │ ├── es-abstract@1.18.6 deduped │ ├── foreach@2.0.5 deduped │ └── has-tostringtag@1.0.0 deduped ├── defined@1.0.0 ├─┬ dotignore@0.1.2 │ └─┬ minimatch@3.0.4 │ └─┬ brace-expansion@1.1.11 │ ├── balanced-match@1.0.2 │ └── concat-map@0.0.1 ├─┬ for-each@0.3.3 │ └── is-callable@1.2.4 ├── get-package-type@0.1.0 ├─┬ glob@7.1.7 │ ├── fs.realpath@1.0.0 │ ├─┬ inflight@1.0.6 │ │ ├── once@1.4.0 deduped │ │ └── wrappy@1.0.2 │ ├── inherits@2.0.4 deduped │ ├── minimatch@3.0.4 deduped │ ├─┬ once@1.4.0 │ │ └── wrappy@1.0.2 deduped │ └── path-is-absolute@1.0.1 ├─┬ has@1.0.3 │ └── function-bind@1.1.1 deduped ├─┬ has-dynamic-import@2.0.0 │ └── call-bind@1.0.2 deduped ├── inherits@2.0.4 ├─┬ is-regex@1.1.4 │ ├── call-bind@1.0.2 deduped │ └─┬ has-tostringtag@1.0.0 │ └── has-symbols@1.0.2 deduped ├── minimist@1.2.5 ├── object-inspect@1.11.0 ├─┬ object-is@1.1.5 │ ├── call-bind@1.0.2 deduped │ └─┬ define-properties@1.1.3 │ └── object-keys@1.1.1 deduped ├─┬ object.assign@4.1.2 │ ├── call-bind@1.0.2 deduped │ ├── define-properties@1.1.3 deduped │ ├── has-symbols@1.0.2 │ └── object-keys@1.1.1 deduped ├─┬ resolve@2.0.0-next.3 │ ├─┬ is-core-module@2.6.0 │ │ └── has@1.0.3 deduped │ └── path-parse@1.0.7 ├─┬ resumer@0.0.0 │ └── through@2.3.8 deduped ├─┬ string.prototype.trim@1.2.4 │ ├── call-bind@1.0.2 deduped │ ├── define-properties@1.1.3 deduped │ └─┬ es-abstract@1.18.6 │ ├── call-bind@1.0.2 deduped │ ├─┬ es-to-primitive@1.2.1 │ │ ├── is-callable@1.2.4 deduped │ │ ├── is-date-object@1.0.5 deduped │ │ └── is-symbol@1.0.4 deduped │ ├── function-bind@1.1.1 deduped │ ├── get-intrinsic@1.1.1 deduped │ ├─┬ get-symbol-description@1.0.0 │ │ ├── call-bind@1.0.2 deduped │ │ └── get-intrinsic@1.1.1 deduped │ ├── has@1.0.3 deduped │ ├── has-symbols@1.0.2 deduped │ ├─┬ internal-slot@1.0.3 │ │ ├── get-intrinsic@1.1.1 deduped │ │ ├── has@1.0.3 deduped │ │ └── side-channel@1.0.4 deduped │ ├── is-callable@1.2.4 deduped │ ├── is-negative-zero@2.0.1 │ ├── is-regex@1.1.4 deduped │ ├── is-string@1.0.7 deduped │ ├── object-inspect@1.11.0 deduped │ ├── object-keys@1.1.1 deduped │ ├── object.assign@4.1.2 deduped │ ├─┬ string.prototype.trimend@1.0.4 │ │ ├── call-bind@1.0.2 deduped │ │ └── define-properties@1.1.3 deduped │ ├─┬ string.prototype.trimstart@1.0.4 │ │ ├── call-bind@1.0.2 deduped │ │ └── define-properties@1.1.3 deduped │ └─┬ unbox-primitive@1.0.1 │ ├── function-bind@1.1.1 deduped │ ├── has-bigints@1.0.1 deduped │ ├── has-symbols@1.0.2 deduped │ └── which-boxed-primitive@1.0.2 deduped └── through@2.3.8

derhuerst commented 2 years ago

Thanks for reporting!

This seems to be a bug, as the CI reports the same Not Found error.

I assume that this is because Eco Counter restructured their API. We'll have to adapt this package.

derhuerst commented 2 years ago

These are up-to-date API requests obtained from the Berlin bicycle counters page:

curl 'https://www.eco-visio.net/api/aladdin/1.0.0/pbl/publicwebpageplus/4728?withNull=true' \
-X 'GET' \
-H 'Accept: text/plain, */*; q=0.01' \
-H 'Origin: https://data.eco-counter.com' \
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Host: www.eco-visio.net' \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Safari/605.1.15' \
-H 'Accept-Language: en-gb' \
-H 'Referer: https://data.eco-counter.com/' \
-H 'Connection: keep-alive'
[
    {
        "token": null,
        "id_pdc_img": 0,
        "idPdc": 100024661,
        "lat": 52.5140658632566,
        "lon": 13.41775102070807,
        "nom": "Jannowitzbrücke",
        "publicMessage": null,
        "photo": [
            {
                "lien": "https://filer.eco-counter-tools.com/file/9d/2410bb4ecfee8352f976be158c8819bfa24370309857bab03cb9e7cec3d2d19d/14677966316060.jpg"
            }
        ],
        "lienPublic": "100024661",
        "pratique": [
            {
                "pratique": 2,
                "id": 101024661
            },
            {
                "pratique": 2,
                "id": 102024661
            }
        ],
        "mainPratique": 2,
        "filtre": null,
        "formule_site": null,
        "fin": null,
        "debut": "01/01/2016",
        "finPeriode": null,
        "debutPeriode": "01/01/2021",
        "current_year_default": 1,
        "externalUrl": "https://www.berlin.de/sen/uvk/verkehr/verkehrsplanung/radverkehr/weitere-radinfrastruktur/zaehlstellen-und-fahrradbarometer/",
        "nomOrganisme": "Verkehrsmanagement Berlin",
        "logo": "https://filer.eco-counter-tools.com/file/39/e59253e440fe77f9cdd5f738e31748861e1913bb2b72c5a035c71aa7039df539/B_SEN_UVK_Logo_DE_H_PW_4C.png",
        "pays": "de",
        "sig": 1,
        "pictoPublic": null,
        "today": "21/09/2021",
        "total": 1959119,
        "lastDay": 10736,
        "moyD": 7449,
        "totalLY": null,
        "lastDay8": null,
        "moyDLY": null,
        "nbDays": null,
        "nbDaysLY": null
    },
    {
        "token": null,
        "id_pdc_img": 0,
        "idPdc": 100032152,
        "lat": 52.52718,
        "lon": 13.37202,
        "nom": "Invalidenstraße",
        "publicMessage": null,
        "photo": [
            {
                "lien": "https://filer.eco-counter-tools.com/file/aa/2178bee7ba6814def33b13ac3efab6df809a57dc23de9445b95fa75cfb1653aa/14688318519550.jpg"
            }
        ],
        "lienPublic": "100032152",
        "pratique": [
            {
                "pratique": 2,
                "id": 101032152
            },
            {
                "pratique": 2,
                "id": 102032152
            }
        ],
        "mainPratique": 2,
        "filtre": null,
        "formule_site": null,
        "fin": null,
        "debut": "01/01/2016",
        "finPeriode": null,
        "debutPeriode": "01/01/2021",
        "current_year_default": 1,
        "externalUrl": "https://www.berlin.de/sen/uvk/verkehr/verkehrsplanung/radverkehr/weitere-radinfrastruktur/zaehlstellen-und-fahrradbarometer/",
        "nomOrganisme": "Verkehrsmanagement Berlin",
        "logo": "https://filer.eco-counter-tools.com/file/39/e59253e440fe77f9cdd5f738e31748861e1913bb2b72c5a035c71aa7039df539/B_SEN_UVK_Logo_DE_H_PW_4C.png",
        "pays": "de",
        "sig": 1,
        "pictoPublic": null,
        "today": "21/09/2021",
        "total": 1207287,
        "lastDay": 6426,
        "moyD": 4590,
        "totalLY": null,
        "lastDay8": null,
        "moyDLY": null,
        "nbDays": null,
        "nbDaysLY": null
    },
    {
        "token": null,
        "id_pdc_img": 0,
        "idPdc": 100032154,
        "lat": 52.51373867977201,
        "lon": 13.474367159238705,
        "nom": "Frankfurter Allee",
        "publicMessage": null,
        "photo": [
            {
                "lien": "https://filer.eco-counter-tools.com/file/cf/5da7985776acd86c553a800e8cb5ec0e6e487eab2bdd29b1fb5c59a9ce0494cf/14679059294920.jpg"
            }
        ],
        "lienPublic": "100032154",
        "pratique": [
            {
                "pratique": 2,
                "id": 101032154
            },
            {
                "pratique": 2,
                "id": 102032154
            }
        ],
        "mainPratique": 2,
        "filtre": null,
        "formule_site": null,
        "fin": null,
        "debut": "01/01/2016",
        "finPeriode": null,
        "debutPeriode": "01/01/2021",
        "current_year_default": 1,
        "externalUrl": "https://www.berlin.de/sen/uvk/verkehr/verkehrsplanung/radverkehr/weitere-radinfrastruktur/zaehlstellen-und-fahrradbarometer/",
        "nomOrganisme": "Verkehrsmanagement Berlin",
        "logo": "https://filer.eco-counter-tools.com/file/39/e59253e440fe77f9cdd5f738e31748861e1913bb2b72c5a035c71aa7039df539/B_SEN_UVK_Logo_DE_H_PW_4C.png",
        "pays": "de",
        "sig": 1,
        "pictoPublic": null,
        "today": "21/09/2021",
        "total": 964449,
        "lastDay": 3583,
        "moyD": 3667,
        "totalLY": null,
        "lastDay8": null,
        "moyDLY": null,
        "nbDays": null,
        "nbDaysLY": null
    },
    {
        "token": null,
        "id_pdc_img": 0,
        "idPdc": 100032155,
        "lat": 52.56681,
        "lon": 13.41217,
        "nom": "Berliner Straße",
        "publicMessage": null,
        "photo": [
            {
                "lien": "https://filer.eco-counter-tools.com/file/64/1e3fc2f7800aa32e01b87bbb3709024b6ce508f5a91141d46687eb47b8f9d664/14679060486370.jpg"
            }
        ],
        "lienPublic": "100032155",
        "pratique": [
            {
                "pratique": 2,
                "id": 101032155
            },
            {
                "pratique": 2,
                "id": 102032155
            }
        ],
        "mainPratique": 2,
        "filtre": null,
        "formule_site": null,
        "fin": null,
        "debut": "01/01/2016",
        "finPeriode": null,
        "debutPeriode": "01/01/2021",
        "current_year_default": 1,
        "externalUrl": "https://www.berlin.de/sen/uvk/verkehr/verkehrsplanung/radverkehr/weitere-radinfrastruktur/zaehlstellen-und-fahrradbarometer/",
        "nomOrganisme": "Verkehrsmanagement Berlin",
        "logo": "https://filer.eco-counter-tools.com/file/39/e59253e440fe77f9cdd5f738e31748861e1913bb2b72c5a035c71aa7039df539/B_SEN_UVK_Logo_DE_H_PW_4C.png",
        "pays": "de",
        "sig": 1,
        "pictoPublic": null,
        "today": "21/09/2021",
        "total": 1537943,
        "lastDay": 8133,
        "moyD": 5848,
        "totalLY": null,
        "lastDay8": null,
        "moyDLY": null,
        "nbDays": null,
        "nbDaysLY": null
    },
    {
        "token": null,
        "id_pdc_img": 0,
        "idPdc": 100032159,
        "lat": 52.54884,
        "lon": 13.40037,
        "nom": "Schwedter Steg",
        "publicMessage": null,
        "photo": [
            {
                "lien": "https://filer.eco-counter-tools.com/file/41/4c00415cc0dca6e1117960e5952336b9fc0e6d0039f9121998b14e66418cd941/14679068159880.jpg"
            }
        ],
        "lienPublic": "100032159",
        "pratique": [
            {
                "pratique": 2,
                "id": 101032159
            },
            {
                "pratique": 2,
                "id": 102032159
            }
        ],
        "mainPratique": 2,
        "filtre": null,
        "formule_site": null,
        "fin": null,
        "debut": "01/01/2016",
        "finPeriode": null,
        "debutPeriode": "01/01/2021",
        "current_year_default": 1,
        "externalUrl": "https://www.berlin.de/sen/uvk/verkehr/verkehrsplanung/radverkehr/weitere-radinfrastruktur/zaehlstellen-und-fahrradbarometer/",
        "nomOrganisme": "Verkehrsmanagement Berlin",
        "logo": "https://filer.eco-counter-tools.com/file/39/e59253e440fe77f9cdd5f738e31748861e1913bb2b72c5a035c71aa7039df539/B_SEN_UVK_Logo_DE_H_PW_4C.png",
        "pays": "de",
        "sig": 1,
        "pictoPublic": null,
        "today": "21/09/2021",
        "total": 674163,
        "lastDay": 3145,
        "moyD": 2563,
        "totalLY": null,
        "lastDay8": null,
        "moyDLY": null,
        "nbDays": null,
        "nbDaysLY": null
    },
    {
        "token": null,
        "id_pdc_img": 0,
        "idPdc": 100032161,
        "lat": 52.533665,
        "lon": 13.198963,
        "nom": "Klosterstraße",
        "publicMessage": null,
        "photo": [
            {
                "lien": "https://filer.eco-counter-tools.com/file/53/8ad28550c1bb9eccd1e1170b947c72e92f3399ea768d8d309bd02138ba2e2153/14679070049730.jpg"
            }
        ],
        "lienPublic": "100032161",
        "pratique": [
            {
                "pratique": 2,
                "id": 101032161
            },
            {
                "pratique": 2,
                "id": 102032161
            }
        ],
        "mainPratique": 2,
        "filtre": null,
        "formule_site": null,
        "fin": null,
        "debut": "01/01/2016",
        "finPeriode": null,
        "debutPeriode": "01/01/2021",
        "current_year_default": 1,
        "externalUrl": "https://www.berlin.de/sen/uvk/verkehr/verkehrsplanung/radverkehr/weitere-radinfrastruktur/zaehlstellen-und-fahrradbarometer/",
        "nomOrganisme": "Verkehrsmanagement Berlin",
        "logo": "https://filer.eco-counter-tools.com/file/39/e59253e440fe77f9cdd5f738e31748861e1913bb2b72c5a035c71aa7039df539/B_SEN_UVK_Logo_DE_H_PW_4C.png",
        "pays": "de",
        "sig": 1,
        "pictoPublic": null,
        "today": "21/09/2021",
        "total": 413928,
        "lastDay": 2206,
        "moyD": 1574,
        "totalLY": null,
        "lastDay8": null,
        "moyDLY": null,
        "nbDays": null,
        "nbDaysLY": null
    },
    {
        "token": null,
        "id_pdc_img": 0,
        "idPdc": 100032163,
        "lat": 52.46676,
        "lon": 13.30916,
        "nom": "Breitenbachplatz",
        "publicMessage": null,
        "photo": [
            {
                "lien": "https://filer.eco-counter-tools.com/file/96/8dec8df97daf8481ba67a36e26f35468208fc4c3fe5b751d3bf6ebc21dffec96/14679072545730.jpg"
            }
        ],
        "lienPublic": "100032163",
        "pratique": [
            {
                "pratique": 2,
                "id": 101032163
            },
            {
                "pratique": 2,
                "id": 102032163
            }
        ],
        "mainPratique": 2,
        "filtre": null,
        "formule_site": null,
        "fin": null,
        "debut": "01/01/2016",
        "finPeriode": null,
        "debutPeriode": "01/01/2021",
        "current_year_default": 1,
        "externalUrl": "https://www.berlin.de/sen/uvk/verkehr/verkehrsplanung/radverkehr/weitere-radinfrastruktur/zaehlstellen-und-fahrradbarometer/",
        "nomOrganisme": "Verkehrsmanagement Berlin",
        "logo": "https://filer.eco-counter-tools.com/file/39/e59253e440fe77f9cdd5f738e31748861e1913bb2b72c5a035c71aa7039df539/B_SEN_UVK_Logo_DE_H_PW_4C.png",
        "pays": "de",
        "sig": 1,
        "pictoPublic": null,
        "today": "21/09/2021",
        "total": 641442,
        "lastDay": 3178,
        "moyD": 2439,
        "totalLY": null,
        "lastDay8": null,
        "moyDLY": null,
        "nbDays": null,
        "nbDaysLY": null
    },
    {
        "token": null,
        "id_pdc_img": 0,
        "idPdc": 100032165,
        "lat": 52.48812,
        "lon": 13.36979,
        "nom": "Monumentenstraße",
        "publicMessage": null,
        "photo": [
            {
                "lien": "https://filer.eco-counter-tools.com/file/f2/41d5501464ab24a900ff5cb9c7b63c4d678addbe3944e4c71a15cbccde7704f2/14679074195240.jpg"
            }
        ],
        "lienPublic": "100032165",
        "pratique": [
            {
                "pratique": 2,
                "id": 101032165
            },
            {
                "pratique": 2,
                "id": 102032165
            }
        ],
        "mainPratique": 2,
        "filtre": null,
        "formule_site": null,
        "fin": null,
        "debut": "01/01/2016",
        "finPeriode": null,
        "debutPeriode": "01/01/2021",
        "current_year_default": 1,
        "externalUrl": "https://www.berlin.de/sen/uvk/verkehr/verkehrsplanung/radverkehr/weitere-radinfrastruktur/zaehlstellen-und-fahrradbarometer/",
        "nomOrganisme": "Verkehrsmanagement Berlin",
        "logo": "https://filer.eco-counter-tools.com/file/39/e59253e440fe77f9cdd5f738e31748861e1913bb2b72c5a035c71aa7039df539/B_SEN_UVK_Logo_DE_H_PW_4C.png",
        "pays": "de",
        "sig": 1,
        "pictoPublic": null,
        "today": "21/09/2021",
        "total": 990874,
        "lastDay": 5039,
        "moyD": 3768,
        "totalLY": null,
        "lastDay8": null,
        "moyDLY": null,
        "nbDays": null,
        "nbDaysLY": null
    },
    {
        "token": null,
        "id_pdc_img": 0,
        "idPdc": 100032169,
        "lat": 52.55819,
        "lon": 13.36494,
        "nom": "Markstraße",
        "publicMessage": null,
        "photo": [
            {
                "lien": "https://filer.eco-counter-tools.com/file/4c/0223bf7e46d0c101a452187addcf5d4b319a13873ad4593dac491838bf39f24c/14679084718520.jpg"
            }
        ],
        "lienPublic": "100032169",
        "pratique": [
            {
                "pratique": 2,
                "id": 101032169
            },
            {
                "pratique": 2,
                "id": 102032169
            }
        ],
        "mainPratique": 2,
        "filtre": null,
        "formule_site": null,
        "fin": null,
        "debut": "01/01/2016",
        "finPeriode": null,
        "debutPeriode": "01/01/2021",
        "current_year_default": 1,
        "externalUrl": "https://www.berlin.de/sen/uvk/verkehr/verkehrsplanung/radverkehr/weitere-radinfrastruktur/zaehlstellen-und-fahrradbarometer/",
        "nomOrganisme": "Verkehrsmanagement Berlin",
        "logo": "https://filer.eco-counter-tools.com/file/39/e59253e440fe77f9cdd5f738e31748861e1913bb2b72c5a035c71aa7039df539/B_SEN_UVK_Logo_DE_H_PW_4C.png",
        "pays": "de",
        "sig": 1,
        "pictoPublic": null,
        "today": "21/09/2021",
        "total": 369214,
        "lastDay": 2085,
        "moyD": 1404,
        "totalLY": null,
        "lastDay8": null,
        "moyDLY": null,
        "nbDays": null,
        "nbDaysLY": null
    },
    {
        "token": null,
        "id_pdc_img": 0,
        "idPdc": 100032236,
        "lat": 52.49311815915883,
        "lon": 13.429149248667873,
        "nom": "Maybachufer",
        "publicMessage": null,
        "photo": [
            {
                "lien": "https://filer.eco-counter-tools.com/file/6c/347cc604523367efdf1c8f899417fe1dad9052924bb05f96618752e93e29b06c/14682452064800.jpg"
            }
        ],
        "lienPublic": "100032236",
        "pratique": [
            {
                "pratique": 2,
                "id": 101032236
            },
            {
                "pratique": 2,
                "id": 102032236
            }
        ],
        "mainPratique": 2,
        "filtre": null,
        "formule_site": null,
        "fin": null,
        "debut": "01/01/2016",
        "finPeriode": null,
        "debutPeriode": "01/01/2021",
        "current_year_default": 1,
        "externalUrl": "https://www.berlin.de/sen/uvk/verkehr/verkehrsplanung/radverkehr/weitere-radinfrastruktur/zaehlstellen-und-fahrradbarometer/",
        "nomOrganisme": "Verkehrsmanagement Berlin",
        "logo": "https://filer.eco-counter-tools.com/file/39/e59253e440fe77f9cdd5f738e31748861e1913bb2b72c5a035c71aa7039df539/B_SEN_UVK_Logo_DE_H_PW_4C.png",
        "pays": "de",
        "sig": 1,
        "pictoPublic": null,
        "today": "21/09/2021",
        "total": 1270755,
        "lastDay": 4316,
        "moyD": 4832,
        "totalLY": null,
        "lastDay8": null,
        "moyDLY": null,
        "nbDays": null,
        "nbDaysLY": null
    },
    {
        "token": null,
        "id_pdc_img": 0,
        "idPdc": 100032237,
        "lat": 52.45775788047353,
        "lon": 13.519359601285744,
        "nom": "Kaisersteg",
        "publicMessage": null,
        "photo": [
            {
                "lien": "https://filer.eco-counter-tools.com/file/95/eb35c0fb94f9bbfa448bfc195e26f39097dac30e9a580b2b89fb7cbdc042ad95/14682452952270.jpg"
            }
        ],
        "lienPublic": "100032237",
        "pratique": [
            {
                "pratique": 2,
                "id": 101032237
            },
            {
                "pratique": 2,
                "id": 102032237
            }
        ],
        "mainPratique": 2,
        "filtre": null,
        "formule_site": null,
        "fin": null,
        "debut": "01/01/2016",
        "finPeriode": null,
        "debutPeriode": "01/01/2021",
        "current_year_default": 1,
        "externalUrl": "https://www.berlin.de/sen/uvk/verkehr/verkehrsplanung/radverkehr/weitere-radinfrastruktur/zaehlstellen-und-fahrradbarometer/",
        "nomOrganisme": "Verkehrsmanagement Berlin",
        "logo": "https://filer.eco-counter-tools.com/file/39/e59253e440fe77f9cdd5f738e31748861e1913bb2b72c5a035c71aa7039df539/B_SEN_UVK_Logo_DE_H_PW_4C.png",
        "pays": "de",
        "sig": 1,
        "pictoPublic": null,
        "today": "21/09/2021",
        "total": 327110,
        "lastDay": 1812,
        "moyD": 1244,
        "totalLY": null,
        "lastDay8": null,
        "moyDLY": null,
        "nbDays": null,
        "nbDaysLY": null
    },
    {
        "token": null,
        "id_pdc_img": 0,
        "idPdc": 100033035,
        "lat": 52.50025,
        "lon": 13.47438,
        "nom": "Paul- und Paula-Uferweg",
        "publicMessage": null,
        "photo": [
            {
                "lien": "https://filer.eco-counter-tools.com/file/f7/6df1a99977416791d8c60bbfe5321b6d01c02babfb288e95cad4f81dbfe047f7/14715293355830.jpg"
            }
        ],
        "lienPublic": "100033035",
        "pratique": [
            {
                "pratique": 2,
                "id": 101033035
            },
            {
                "pratique": 2,
                "id": 102033035
            }
        ],
        "mainPratique": 2,
        "filtre": null,
        "formule_site": null,
        "fin": null,
        "debut": "01/01/2016",
        "finPeriode": null,
        "debutPeriode": "01/01/2021",
        "current_year_default": 1,
        "externalUrl": "https://www.berlin.de/sen/uvk/verkehr/verkehrsplanung/radverkehr/weitere-radinfrastruktur/zaehlstellen-und-fahrradbarometer/",
        "nomOrganisme": "Verkehrsmanagement Berlin",
        "logo": "https://filer.eco-counter-tools.com/file/39/e59253e440fe77f9cdd5f738e31748861e1913bb2b72c5a035c71aa7039df539/B_SEN_UVK_Logo_DE_H_PW_4C.png",
        "pays": "de",
        "sig": 1,
        "pictoPublic": null,
        "today": "21/09/2021",
        "total": 813825,
        "lastDay": 3983,
        "moyD": 3094,
        "totalLY": null,
        "lastDay8": null,
        "moyDLY": null,
        "nbDays": null,
        "nbDaysLY": null
    },
    {
        "token": null,
        "id_pdc_img": 0,
        "idPdc": 100033037,
        "lat": 52.4925,
        "lon": 13.55849,
        "nom": "Alberichstraße",
        "publicMessage": null,
        "photo": [
            {
                "lien": "https://filer.eco-counter-tools.com/file/d4/2818d41489c414e56915efd002e97209ff05f71e1148f103e8f41272c99aead4/14715294424050.jpg"
            }
        ],
        "lienPublic": "100033037",
        "pratique": [
            {
                "pratique": 2,
                "id": 101033037
            },
            {
                "pratique": 2,
                "id": 102033037
            }
        ],
        "mainPratique": 2,
        "filtre": null,
        "formule_site": null,
        "fin": null,
        "debut": "01/01/2016",
        "finPeriode": null,
        "debutPeriode": "01/01/2021",
        "current_year_default": 1,
        "externalUrl": "https://www.berlin.de/sen/uvk/verkehr/verkehrsplanung/radverkehr/weitere-radinfrastruktur/zaehlstellen-und-fahrradbarometer/",
        "nomOrganisme": "Verkehrsmanagement Berlin",
        "logo": "https://filer.eco-counter-tools.com/file/39/e59253e440fe77f9cdd5f738e31748861e1913bb2b72c5a035c71aa7039df539/B_SEN_UVK_Logo_DE_H_PW_4C.png",
        "pays": "de",
        "sig": 1,
        "pictoPublic": null,
        "today": "21/09/2021",
        "total": 141489,
        "lastDay": 841,
        "moyD": 538,
        "totalLY": null,
        "lastDay8": null,
        "moyDLY": null,
        "nbDays": null,
        "nbDaysLY": null
    },
    {
        "token": null,
        "id_pdc_img": 0,
        "idPdc": 100033038,
        "lat": 52.49199,
        "lon": 13.37412,
        "nom": "Yorckstraße",
        "publicMessage": null,
        "photo": [
            {
                "lien": "https://filer.eco-counter-tools.com/file/1b/94511591185cef75900ee02f50a2b3f1e0f823f9fb0440e41c319e45ee62351b/14715295652770.jpg"
            }
        ],
        "lienPublic": "100033038",
        "pratique": [
            {
                "pratique": 2,
                "id": 101033038
            },
            {
                "pratique": 2,
                "id": 102033038
            }
        ],
        "mainPratique": 2,
        "filtre": null,
        "formule_site": null,
        "fin": null,
        "debut": "01/01/2016",
        "finPeriode": null,
        "debutPeriode": "01/01/2021",
        "current_year_default": 1,
        "externalUrl": "https://www.berlin.de/sen/uvk/verkehr/verkehrsplanung/radverkehr/weitere-radinfrastruktur/zaehlstellen-und-fahrradbarometer/",
        "nomOrganisme": "Verkehrsmanagement Berlin",
        "logo": "https://filer.eco-counter-tools.com/file/39/e59253e440fe77f9cdd5f738e31748861e1913bb2b72c5a035c71aa7039df539/B_SEN_UVK_Logo_DE_H_PW_4C.png",
        "pays": "de",
        "sig": 1,
        "pictoPublic": null,
        "today": "21/09/2021",
        "total": 1432468,
        "lastDay": 7139,
        "moyD": 5447,
        "totalLY": null,
        "lastDay8": null,
        "moyDLY": null,
        "nbDays": null,
        "nbDaysLY": null
    },
    {
        "token": null,
        "id_pdc_img": 0,
        "idPdc": 100033039,
        "lat": 52.49058,
        "lon": 13.33308,
        "nom": "Prinzregentenstraße",
        "publicMessage": null,
        "photo": [
            {
                "lien": "https://filer.eco-counter-tools.com/file/9f/cabe8058eba8ae6168ed44e53664607115ce1143981b704416fa1b7ebbfbf79f/14715296670160.jpg"
            }
        ],
        "lienPublic": "100033039",
        "pratique": [
            {
                "pratique": 2,
                "id": 101033039
            },
            {
                "pratique": 2,
                "id": 102033039
            }
        ],
        "mainPratique": 2,
        "filtre": null,
        "formule_site": null,
        "fin": null,
        "debut": "01/01/2016",
        "finPeriode": null,
        "debutPeriode": "01/01/2021",
        "current_year_default": 1,
        "externalUrl": "https://www.berlin.de/sen/uvk/verkehr/verkehrsplanung/radverkehr/weitere-radinfrastruktur/zaehlstellen-und-fahrradbarometer/",
        "nomOrganisme": "Verkehrsmanagement Berlin",
        "logo": "https://filer.eco-counter-tools.com/file/39/e59253e440fe77f9cdd5f738e31748861e1913bb2b72c5a035c71aa7039df539/B_SEN_UVK_Logo_DE_H_PW_4C.png",
        "pays": "de",
        "sig": 1,
        "pictoPublic": null,
        "today": "21/09/2021",
        "total": 385063,
        "lastDay": 2266,
        "moyD": 1464,
        "totalLY": null,
        "lastDay8": null,
        "moyDLY": null,
        "nbDays": null,
        "nbDaysLY": null
    },
    {
        "token": null,
        "id_pdc_img": 0,
        "idPdc": 100053586,
        "lat": 52.50177512317563,
        "lon": 13.445688884934567,
        "nom": "Oberbaumbrücke",
        "publicMessage": "wegen Baustelle seit Juni 2019 außer Betrieb",
        "photo": [
            {
                "lien": "https://filer.eco-counter-tools.com/file/f6/4c396eff068b9eae5b98afb13063f55775bd9f51b36d6b0d5e79a12ff5e4b5f6/15632708376440.jpg"
            }
        ],
        "lienPublic": "100053586",
        "pratique": [
            {
                "pratique": 2,
                "id": 101053586
            },
            {
                "pratique": 2,
                "id": 102053586
            }
        ],
        "mainPratique": 2,
        "filtre": null,
        "formule_site": null,
        "fin": null,
        "debut": "01/01/2016",
        "finPeriode": null,
        "debutPeriode": "01/01/2021",
        "current_year_default": 1,
        "externalUrl": "https://www.berlin.de/sen/uvk/verkehr/verkehrsplanung/radverkehr/weitere-radinfrastruktur/zaehlstellen-und-fahrradbarometer/",
        "nomOrganisme": "Verkehrsmanagement Berlin",
        "logo": "https://filer.eco-counter-tools.com/file/39/e59253e440fe77f9cdd5f738e31748861e1913bb2b72c5a035c71aa7039df539/B_SEN_UVK_Logo_DE_H_PW_4C.png",
        "pays": "de",
        "sig": 1,
        "pictoPublic": null,
        "today": "21/09/2021",
        "total": 0,
        "lastDay": 0,
        "moyD": 0,
        "totalLY": null,
        "lastDay8": null,
        "moyDLY": null,
        "nbDays": null,
        "nbDaysLY": null
    },
    {
        "token": null,
        "id_pdc_img": 0,
        "idPdc": 100064714,
        "lat": 52.43852296779607,
        "lon": 13.387829068100944,
        "nom": "Mariendorfer Damm",
        "publicMessage": null,
        "photo": [
            {
                "lien": "https://filer.eco-counter-tools.com/file/4d/0d39e49313f52aa8f83c81ff994394783837a8590970e436668e39f0fe6f0d4d/16030381473600.jpg"
            }
        ],
        "lienPublic": "100064714",
        "pratique": [
            {
                "pratique": 2,
                "id": 101064714
            },
            {
                "pratique": 2,
                "id": 102064714
            }
        ],
        "mainPratique": 2,
        "filtre": null,
        "formule_site": null,
        "fin": null,
        "debut": "01/01/2016",
        "finPeriode": null,
        "debutPeriode": "01/01/2021",
        "current_year_default": 1,
        "externalUrl": "https://www.berlin.de/sen/uvk/verkehr/verkehrsplanung/radverkehr/weitere-radinfrastruktur/zaehlstellen-und-fahrradbarometer/",
        "nomOrganisme": "Verkehrsmanagement Berlin",
        "logo": "https://filer.eco-counter-tools.com/file/39/e59253e440fe77f9cdd5f738e31748861e1913bb2b72c5a035c71aa7039df539/B_SEN_UVK_Logo_DE_H_PW_4C.png",
        "pays": "de",
        "sig": 1,
        "pictoPublic": null,
        "today": "21/09/2021",
        "total": 497717,
        "lastDay": 2694,
        "moyD": 1892,
        "totalLY": null,
        "lastDay8": null,
        "moyDLY": null,
        "nbDays": null,
        "nbDaysLY": null
    },
    {
        "token": null,
        "id_pdc_img": 0,
        "idPdc": 300019043,
        "lat": 52.51293017936524,
        "lon": 13.326764702796938,
        "nom": "Straße des 17. Juni",
        "publicMessage": null,
        "photo": [
            {
                "lien": "https://filer.eco-counter-tools.com/file/8c/9128b860b9ae3d2e4cf8029276089a3296dda486505f975340fa53155747278c/Berlin2.jpg"
            }
        ],
        "lienPublic": "300019043",
        "pratique": [
            {
                "pratique": 2,
                "id": 353277806
            },
            {
                "pratique": 2,
                "id": 353277807
            }
        ],
        "mainPratique": 2,
        "filtre": null,
        "formule_site": null,
        "fin": null,
        "debut": "01/01/2016",
        "finPeriode": null,
        "debutPeriode": "01/01/2021",
        "current_year_default": 1,
        "externalUrl": "https://www.berlin.de/sen/uvk/verkehr/verkehrsplanung/radverkehr/weitere-radinfrastruktur/zaehlstellen-und-fahrradbarometer/",
        "nomOrganisme": "Verkehrsmanagement Berlin",
        "logo": "https://filer.eco-counter-tools.com/file/39/e59253e440fe77f9cdd5f738e31748861e1913bb2b72c5a035c71aa7039df539/B_SEN_UVK_Logo_DE_H_PW_4C.png",
        "pays": "de",
        "sig": 1,
        "pictoPublic": null,
        "today": "21/09/2021",
        "total": 369922,
        "lastDay": 6521,
        "moyD": 6606,
        "totalLY": null,
        "lastDay8": null,
        "moyDLY": null,
        "nbDays": null,
        "nbDaysLY": null
    }
]
curl 'https://www.eco-visio.net/api/aladdin/1.0.0/pbl/publicwebpageplus/data/100024661?idOrganisme=4728&idPdc=100024661&fin=21%2F09%2F2021&debut=01%2F01%2F2021&interval=4&flowIds=101024661%3B102024661' \
-X 'GET' \
-H 'Accept: text/plain, */*; q=0.01' \
-H 'Origin: https://data.eco-counter.com' \
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Host: www.eco-visio.net' \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Safari/605.1.15' \
-H 'Accept-Language: en-gb' \
-H 'Referer: https://data.eco-counter.com/' \
-H 'Connection: keep-alive'
[
    [
        "01/01/2021",
        "1288"
    ],
    [
        "01/02/2021",
        "2491"
    ],
    [
        "01/03/2021",
        "814"
    ],
    [
        "01/04/2021",
        "3287"
    ],
    [
        "01/05/2021",
        "4191"
    ],
    [
        "01/06/2021",
        "3907"
    ],
    [
        "01/07/2021",
        "4476"
    ],
    [
        "01/08/2021",
        "4432"
    ],
    [
        "01/09/2021",
        "2817"
    ],
    [
        "01/10/2021",
        "2678"
    ],
    [
        "01/11/2021",
        "4686"
    ],
    [
        "01/12/2021",
        "3848"
    ],
    [
        "01/13/2021",
        "4561"
    ],
    [
        "01/14/2021",
        "4619"
    ],
    [
        "01/15/2021",
        "4227"
    ],
    [
        "01/16/2021",
        "2617"
    ],
    [
        "01/17/2021",
        "2050"
    ],
    [
        "01/18/2021",
        "3956"
    ],
    [
        "01/19/2021",
        "3794"
    ],
    [
        "01/20/2021",
        "5409"
    ],
    [
        "01/21/2021",
        "6204"
    ],
    [
        "01/22/2021",
        "5395"
    ],
    [
        "01/23/2021",
        "1933"
    ],
    [
        "01/24/2021",
        "1707"
    ],
    [
        "01/25/2021",
        "5019"
    ],
    [
        "01/26/2021",
        "5377"
    ],
    [
        "01/27/2021",
        "5585"
    ],
    [
        "01/28/2021",
        "4819"
    ],
    [
        "01/29/2021",
        "4767"
    ],
    [
        "01/30/2021",
        "1885"
    ],
    [
        "01/31/2021",
        "2069"
    ],
    [
        "02/01/2021",
        "3712"
    ],
    [
        "02/02/2021",
        "4027"
    ],
    [
        "02/03/2021",
        "3545"
    ],
    [
        "02/04/2021",
        "4096"
    ],
    [
        "02/05/2021",
        "3928"
    ],
    [
        "02/06/2021",
        "1721"
    ],
    [
        "02/07/2021",
        "429"
    ],
    [
        "02/08/2021",
        "864"
    ],
    [
        "02/09/2021",
        "801"
    ],
    [
        "02/10/2021",
        "1147"
    ],
    [
        "02/11/2021",
        "1473"
    ],
    [
        "02/12/2021",
        "1944"
    ],
    [
        "02/13/2021",
        "1379"
    ],
    [
        "02/14/2021",
        "1062"
    ],
    [
        "02/15/2021",
        "2200"
    ],
    [
        "02/16/2021",
        "2025"
    ],
    [
        "02/17/2021",
        "3209"
    ],
    [
        "02/18/2021",
        "5165"
    ],
    [
        "02/19/2021",
        "5399"
    ],
    [
        "02/20/2021",
        "4590"
    ],
    [
        "02/21/2021",
        "5046"
    ],
    [
        "02/22/2021",
        "6506"
    ],
    [
        "02/23/2021",
        "7558"
    ],
    [
        "02/24/2021",
        "8383"
    ],
    [
        "02/25/2021",
        "8448"
    ],
    [
        "02/26/2021",
        "5634"
    ],
    [
        "02/27/2021",
        "4170"
    ],
    [
        "02/28/2021",
        "2911"
    ],
    [
        "03/01/2021",
        "6654"
    ],
    [
        "03/02/2021",
        "7742"
    ],
    [
        "03/03/2021",
        "8191"
    ],
    [
        "03/04/2021",
        "6374"
    ],
    [
        "03/05/2021",
        "6678"
    ],
    [
        "03/06/2021",
        "3548"
    ],
    [
        "03/07/2021",
        "2484"
    ],
    [
        "03/08/2021",
        "4359"
    ],
    [
        "03/09/2021",
        "7270"
    ],
    [
        "03/10/2021",
        "7783"
    ],
    [
        "03/11/2021",
        "4203"
    ],
    [
        "03/12/2021",
        "5746"
    ],
    [
        "03/13/2021",
        "2390"
    ],
    [
        "03/14/2021",
        "1998"
    ],
    [
        "03/15/2021",
        "5376"
    ],
    [
        "03/16/2021",
        "6585"
    ],
    [
        "03/17/2021",
        "6444"
    ],
    [
        "03/18/2021",
        "6444"
    ],
    [
        "03/19/2021",
        "6541"
    ],
    [
        "03/20/2021",
        "3936"
    ],
    [
        "03/21/2021",
        "2613"
    ],
    [
        "03/22/2021",
        "6125"
    ],
    [
        "03/23/2021",
        "7220"
    ],
    [
        "03/24/2021",
        "8026"
    ],
    [
        "03/25/2021",
        "6919"
    ],
    [
        "03/26/2021",
        "7141"
    ],
    [
        "03/27/2021",
        "2885"
    ],
    [
        "03/28/2021",
        "2828"
    ],
    [
        "03/29/2021",
        "6637"
    ],
    [
        "03/30/2021",
        "8170"
    ],
    [
        "03/31/2021",
        "8152"
    ],
    [
        "04/01/2021",
        "6816"
    ],
    [
        "04/02/2021",
        "4037"
    ],
    [
        "04/03/2021",
        "3878"
    ],
    [
        "04/04/2021",
        "3295"
    ],
    [
        "04/05/2021",
        "1426"
    ],
    [
        "04/06/2021",
        "4465"
    ],
    [
        "04/07/2021",
        "4727"
    ],
    [
        "04/08/2021",
        "5304"
    ],
    [
        "04/09/2021",
        "6564"
    ],
    [
        "04/10/2021",
        "3807"
    ],
    [
        "04/11/2021",
        "4950"
    ],
    [
        "04/12/2021",
        "6001"
    ],
    [
        "04/13/2021",
        "7525"
    ],
    [
        "04/14/2021",
        "7460"
    ],
    [
        "04/15/2021",
        "7334"
    ],
    [
        "04/16/2021",
        "7805"
    ],
    [
        "04/17/2021",
        "5161"
    ],
    [
        "04/18/2021",
        "2427"
    ],
    [
        "04/19/2021",
        "7939"
    ],
    [
        "04/20/2021",
        "9849"
    ],
    [
        "04/21/2021",
        "9979"
    ],
    [
        "04/22/2021",
        "8219"
    ],
    [
        "04/23/2021",
        "8666"
    ],
    [
        "04/24/2021",
        "6464"
    ],
    [
        "04/25/2021",
        "4427"
    ],
    [
        "04/26/2021",
        "7711"
    ],
    [
        "04/27/2021",
        "9473"
    ],
    [
        "04/28/2021",
        "9999"
    ],
    [
        "04/29/2021",
        "6415"
    ],
    [
        "04/30/2021",
        "8007"
    ],
    [
        "05/01/2021",
        "6159"
    ],
    [
        "05/02/2021",
        "2422"
    ],
    [
        "05/03/2021",
        "7769"
    ],
    [
        "05/04/2021",
        "6872"
    ],
    [
        "05/05/2021",
        "6737"
    ],
    [
        "05/06/2021",
        "8299"
    ],
    [
        "05/07/2021",
        "4633"
    ],
    [
        "05/08/2021",
        "7144"
    ],
    [
        "05/09/2021",
        "7504"
    ],
    [
        "05/10/2021",
        "10942"
    ],
    [
        "05/11/2021",
        "11332"
    ],
    [
        "05/12/2021",
        "8307"
    ],
    [
        "05/13/2021",
        "1875"
    ],
    [
        "05/14/2021",
        "5548"
    ],
    [
        "05/15/2021",
        "6190"
    ],
    [
        "05/16/2021",
        "3936"
    ],
    [
        "05/17/2021",
        "8459"
    ],
    [
        "05/18/2021",
        "8769"
    ],
    [
        "05/19/2021",
        "10690"
    ],
    [
        "05/20/2021",
        "10292"
    ],
    [
        "05/21/2021",
        "9827"
    ],
    [
        "05/22/2021",
        "5661"
    ],
    [
        "05/23/2021",
        "4229"
    ],
    [
        "05/24/2021",
        "7103"
    ],
    [
        "05/25/2021",
        "7930"
    ],
    [
        "05/26/2021",
        "8553"
    ],
    [
        "05/27/2021",
        "7738"
    ],
    [
        "05/28/2021",
        "8596"
    ],
    [
        "05/29/2021",
        "8222"
    ],
    [
        "05/30/2021",
        "7363"
    ],
    [
        "05/31/2021",
        "11186"
    ],
    [
        "06/01/2021",
        "12049"
    ],
    [
        "06/02/2021",
        "12076"
    ],
    [
        "06/03/2021",
        "12880"
    ],
    [
        "06/04/2021",
        "11368"
    ],
    [
        "06/05/2021",
        "10184"
    ],
    [
        "06/06/2021",
        "7356"
    ],
    [
        "06/07/2021",
        "12191"
    ],
    [
        "06/08/2021",
        "13109"
    ],
    [
        "06/09/2021",
        "13664"
    ],
    [
        "06/10/2021",
        "13766"
    ],
    [
        "06/11/2021",
        "13120"
    ],
    [
        "06/12/2021",
        "7761"
    ],
    [
        "06/13/2021",
        "6193"
    ],
    [
        "06/14/2021",
        "12564"
    ],
    [
        "06/15/2021",
        "13870"
    ],
    [
        "06/16/2021",
        "13880"
    ],
    [
        "06/17/2021",
        "13241"
    ],
    [
        "06/18/2021",
        "11629"
    ],
    [
        "06/19/2021",
        "7972"
    ],
    [
        "06/20/2021",
        "5897"
    ],
    [
        "06/21/2021",
        "12023"
    ],
    [
        "06/22/2021",
        "11965"
    ],
    [
        "06/23/2021",
        "12792"
    ],
    [
        "06/24/2021",
        "9482"
    ],
    [
        "06/25/2021",
        "11849"
    ],
    [
        "06/26/2021",
        "10081"
    ],
    [
        "06/27/2021",
        "6988"
    ],
    [
        "06/28/2021",
        "11777"
    ],
    [
        "06/29/2021",
        "11452"
    ],
    [
        "06/30/2021",
        "4368"
    ],
    [
        "07/01/2021",
        "4904"
    ],
    [
        "07/02/2021",
        "10426"
    ],
    [
        "07/03/2021",
        "9162"
    ],
    [
        "07/04/2021",
        "6790"
    ],
    [
        "07/05/2021",
        "9689"
    ],
    [
        "07/06/2021",
        "12399"
    ],
    [
        "07/07/2021",
        "7614"
    ],
    [
        "07/08/2021",
        "10132"
    ],
    [
        "07/09/2021",
        "6487"
    ],
    [
        "07/10/2021",
        "8119"
    ],
    [
        "07/11/2021",
        "6591"
    ],
    [
        "07/12/2021",
        "10613"
    ],
    [
        "07/13/2021",
        "12105"
    ],
    [
        "07/14/2021",
        "11575"
    ],
    [
        "07/15/2021",
        "10452"
    ],
    [
        "07/16/2021",
        "9645"
    ],
    [
        "07/17/2021",
        "7772"
    ],
    [
        "07/18/2021",
        "6255"
    ],
    [
        "07/19/2021",
        "10036"
    ],
    [
        "07/20/2021",
        "11412"
    ],
    [
        "07/21/2021",
        "11333"
    ],
    [
        "07/22/2021",
        "11404"
    ],
    [
        "07/23/2021",
        "10704"
    ],
    [
        "07/24/2021",
        "8019"
    ],
    [
        "07/25/2021",
        "4832"
    ],
    [
        "07/26/2021",
        "9408"
    ],
    [
        "07/27/2021",
        "12115"
    ],
    [
        "07/28/2021",
        "11922"
    ],
    [
        "07/29/2021",
        "11883"
    ],
    [
        "07/30/2021",
        "11257"
    ],
    [
        "07/31/2021",
        "8414"
    ],
    [
        "08/01/2021",
        "5384"
    ],
    [
        "08/02/2021",
        "10570"
    ],
    [
        "08/03/2021",
        "12001"
    ],
    [
        "08/04/2021",
        "11830"
    ],
    [
        "08/05/2021",
        "11429"
    ],
    [
        "08/06/2021",
        "10313"
    ],
    [
        "08/07/2021",
        "8135"
    ],
    [
        "08/08/2021",
        "6144"
    ],
    [
        "08/09/2021",
        "11924"
    ],
    [
        "08/10/2021",
        "13425"
    ],
    [
        "08/11/2021",
        "15064"
    ],
    [
        "08/12/2021",
        "15264"
    ],
    [
        "08/13/2021",
        "13270"
    ],
    [
        "08/14/2021",
        "9663"
    ],
    [
        "08/15/2021",
        "7096"
    ],
    [
        "08/16/2021",
        "10848"
    ],
    [
        "08/17/2021",
        "9604"
    ],
    [
        "08/18/2021",
        "12368"
    ],
    [
        "08/19/2021",
        "12681"
    ],
    [
        "08/20/2021",
        "10786"
    ],
    [
        "08/21/2021",
        "8988"
    ],
    [
        "08/22/2021",
        "3896"
    ],
    [
        "08/23/2021",
        "8775"
    ],
    [
        "08/24/2021",
        "13895"
    ],
    [
        "08/25/2021",
        "12619"
    ],
    [
        "08/26/2021",
        "9314"
    ],
    [
        "08/27/2021",
        "8248"
    ],
    [
        "08/28/2021",
        "7224"
    ],
    [
        "08/29/2021",
        "2843"
    ],
    [
        "08/30/2021",
        "7228"
    ],
    [
        "08/31/2021",
        "10811"
    ],
    [
        "09/01/2021",
        "12377"
    ],
    [
        "09/02/2021",
        "13471"
    ],
    [
        "09/03/2021",
        "12442"
    ],
    [
        "09/04/2021",
        "8818"
    ],
    [
        "09/05/2021",
        "6185"
    ],
    [
        "09/06/2021",
        "12459"
    ],
    [
        "09/07/2021",
        "13767"
    ],
    [
        "09/08/2021",
        "14130"
    ],
    [
        "09/09/2021",
        "13994"
    ],
    [
        "09/10/2021",
        "10800"
    ],
    [
        "09/11/2021",
        "7850"
    ],
    [
        "09/12/2021",
        "6082"
    ],
    [
        "09/13/2021",
        "11899"
    ],
    [
        "09/14/2021",
        "13812"
    ],
    [
        "09/15/2021",
        "10154"
    ],
    [
        "09/16/2021",
        "11659"
    ],
    [
        "09/17/2021",
        "9900"
    ],
    [
        "09/18/2021",
        "6506"
    ],
    [
        "09/19/2021",
        "5263"
    ],
    [
        "09/20/2021",
        "10736"
    ]
]
h2o-commits commented 2 years ago

After curl i get an error message. Even with "--output -" i get an binary output.

Warning: Binary output can mess up your terminal. Use "--output -" to tell Warning: curl to output it to your terminal anyway, or consider "--output Warning: " to save to a file.

derhuerst commented 2 years ago

After curl i get an error message. Even with "--output -" i get an binary output.

Please post the full command you used.

h2o-commits commented 2 years ago

!/bin/sh

curl 'https://www.eco-visio.net/api/aladdin/1.0.0/pbl/publicwebpageplus/4728?withNull=true' \ -X 'GET' \ -H 'Accept: text/plain, /; q=0.01' \ -H 'Origin: https://data.eco-counter.com' \ -H 'Accept-Encoding: gzip, deflate, br' \ -H 'Host: www.eco-visio.net' \ -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Safari/605.1.15' \ -H 'Accept-Language: en-gb' \ -H 'Referer: https://data.eco-counter.com/' \ -H 'Connection: keep-alive' \ --output -

derhuerst commented 2 years ago

Ah, now I understand what's going on. I assume you took the curl command from above?

I had copied the curl command from the browser's dev tools. Because the browser requested compressed data (via Accept-Encoding: gzip, deflate, br), the server responded with it (via Content-Encoding: gzip), and the browser decoded it automatically, the copied curl command doesn't make sense: We tell curl to request compressed data from the server, but we don't tell it to decompress it.

If you replace -H 'Accept-Encoding: gzip, deflate, br' with --compressed, it will output (decompressed) JSON.

derhuerst commented 2 months ago

Note to self: This API client, that is unfortunately closed-source for now, implements their current API: https://github.com/mobidata-bw/ecocounter-harvester/blob/bbf3bbd86fadae545b5430165d6a758d362a5c43/v2/harvest_ecocounter.py