Last active
December 12, 2022 16:28
-
-
Save clementbiron/14fe80a88c4a2e33e73964434b537710 to your computer and use it in GitHub Desktop.
OpenFisca web API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fetch('https://api.demo.openfisca.org/latest/parameter/taxes.income_tax_rate') | |
.then(response => response.json()) | |
.then(historicalTaxRates => { | |
for (const [date, taxRate] of Object.entries(historicalTaxRates.values)) { | |
console.log(`On ${date}, if you earned 100, you paid ${100 * taxRate} in income revenue tax`) | |
}}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment