World Bank Open Data provides free and open access to various global development data. This release contains tax revenue (% of GDP) for all countries in the world. The data is available from year 1972. Tax revenue refers to compulsory transfers to the central government for public purposes. Certain compulsory transfers such as fines, penalties, and most social security contributions are excluded. Refunds and corrections of erroneously collected tax revenue are treated as negative revenue.
Tax revenue refers to compulsory transfers to the central government for public purposes. Certain compulsory transfers such as fines, penalties, and most social security contributions are excluded. Refunds and corrections of erroneously collected tax revenue are treated as negative revenue. This release contains tax revenue (% of GDP) for all countries in the world.
The original publisher of this data is The World Bank. This content is published as World Bank Open Data and provides free and open access to global development data. This work is licensed under a Creative Commons Attribution 4.0 (CC-BY 4.0). This data is anonymized/aggregated.
CloudFormation template that setups up automatic revision updates plus AWS analytics services such as AWS Glue and Amazon Athena (cloudformation.yaml)
AWS Lambda code for revision updates (post-processing-code.zip)
Please note, in the post processing code, we use a Lambda layer that extends the AWS Python SDK (boto3) that is built into the Lambda Python runtime by adding the AWS Data Exchange and AWS Marketplace Catalog API SDKs as of November 13, 2019. Once the public SDKs are updated to include AWS Data Exchange APIs, we will update the code to remove this Lambda layer.
Deploy CloudFormation template to set up automatic revision updates and AWS Analytics services
Assuming you have subscribed to this product listing, below are the detailed steps to deploy CloudFormation template:
(Please note that you will need IAM permissions for CloudFormation, AWS Data Exchange, IAM, Lambda, Glue, Athena and QuickSight, in order to deploy the CloudFormation template.)
Under the product listing, scroll down to Data sets section and click on the Data set name
Under the Revisions section, click on the most recent revision
Under Assets, checkmark tax-revenue/automation/post-processing-code.zip and click Export to S3
Choose the S3 Bucket where you would like to store the dataset. Make sure you only choose the S3 bucket. The asset comes with a pre-defined directory structure
Under Assets, checkmark tax-revenue/automation/cloudformation.yaml and click either Export to S3 or Export to computer
If you exported the cloudformation.yaml to S3, go to the S3 UI on the AWS console and navigate to the location where the cloudformation.yaml is stored. In S3, click on the cloudformation.yaml and copy the url from the Object URL
Now, from your AWS Management Console, log onto Amazon CloudFormation UI and click Create Stack
Under Choose a template either provide the template via uploading from local computer or specify the S3 object url and click Next
Provide a friendly stack name in the Stack name text box
In the SourceS3Bucket field, input the S3 bucket name that you chose earlier to store the tax-revenue/automation/post-processing-code.zip file
Leave rest of the fields as is
Click Next
In the Options screen, click Next
Tick mark the I acknowledge that AWS CloudFormation might create IAM resources. box
Click Create
At a high level, CloudFormation will setup following resources automatically.
Lambda function to setup automatic AWS Data Exchange revision updates for this dataset
CloudWatch Event rule that will automatically trigger the Lambda function every time a new revision update is published
Another Lambda function to setup AWS Glue and Amazon Athena
Necessary IAM roles and permissions
If you are interested in looking at the AWS Lambda code or the CloudFormation template, feel free to inspect files inside tax-revenue/automation/post-processing-code.zip and tax-revenue/automation/cloudformation.yaml
Analytics & Visualizations
Apart from the source data, what we are also providing in this product listing is an easy way to interact and extract value out of the dataset. Native AWS Analytics services such as AWS Glue, Amazon Athena and Amazon QuickSight provide different ways to interact and visualize the data. The included AWS CloudFormation template sets up AWS Glue and Amazon Athena automatically in your AWS account.
Using AWS Glue and Amazon Athena to run interactive queries against the dataset
Once the CloudFormation template is successfully deployed, the data is immediately searchable, queryable, and available on Athena. You can go to the Athena UI from the AWS Management Console and run SQL queries on the dataset.
Here are some sample Athena SQL queries you can try on the dataset.
# list tax revenue % of GDP for all countries for year 2017
SELECT "country_name", "2017" FROM "tax_revenue"."data";
# list yearly tax revenue % of GDP for "united states"
SELECT * FROM "tax_revenue"."data" WHERE "country_name" = 'united states';
# compare interest rate spread for "united states" between year "2000" and "2017"
SELECT "country_name", "2000", "2017" FROM "tax_revenue"."data" WHERE "country_name" = 'united states';
# compare tax revenue % of GDP between "united states" and "united kingdom"
SELECT * FROM "tax_revenue"."data" WHERE "country_name" IN ('united states', 'united kingdom');
Setup Amazon QuickSight to create visualizations on the dataset
Below are the detailed steps to analyze dataset using Amazon QuickSight
From your AWS Management Console, log onto Amazon QuickSight
Click Manage data
Click New data set
If you ran the provided CloudFormation template, you should already have your database and table with schema created in AWS Glue and Athena
Click on Athena to connect to your data source
Provide a name for your QuickSight Data source name and click Create data source
In the Database: contain sets of table dropdown, choose database as tax_revenue and under Tables: contain the data you can visualize, choose table as data
At this point, you can Edit/Preview data if you like
You can then click on Select
In the Finish data set creation screen, you can select Visualize to finish the creation of data set process
Visualize the data set by selecting the Horizontal bar chart from the Visual types
Drag country_name field to the Y axis in Field wells and for e.g. drag 2017 field in the Value block to chart the data
You are now ready to start analyzing and visualizing the dataset.
Contact Information
If you have questions about the source data, please contact data@worldbank.org. If you have any questions about the CloudFormation stack, Lambda code or any of the AWS services being used, please contact data@rearc.io.
About Rearc
Rearc is a cloud, software and services company. We believe that empowering engineers drives innovation. Cloud-native architectures, modern software and data practices, and the ability to safely experiment can enable engineers to realize their full potential. We have partnered with several enterprises and startups to help them achieve agility. Our approach is simple — empower engineers with the best tools possible to make an impact within their industry.
AWS Marketplace now accepts line of credit payments through the PNC Vendor Finance program. This program is available to select AWS customers in the US, excluding NV, NC, ND, TN, & VT.
This listing uses a single free pricing dimension called Product Access (Units). It grants you access to the dataset as a subscriber. There are no tiers, usage charges, or size-based options to compare. You subscribe once and gain access to the data at no cost. The vendor publishes free, publicly available datasets on AWS for subscribers to consume in a consistent way, removing the work of sourcing and processing the data yourself.
Top-of-mind questions for buyers
What does the Product Access (Units) dimension actually give me?
It grants you subscriber access to this dataset at no cost. You subscribe once and can consume the data through AWS. There are no charges tied to how much data you pull or how often you access it.
Does my cost change if I use the dataset more heavily?
No. This listing has a single free access dimension with no usage-based metering. Accessing the data more often or pulling larger volumes does not add software charges. Underlying AWS service fees for storage or transfer may still apply separately.
What form is the data delivered in for subscribers?
The vendor publishes free, publicly available datasets on AWS for subscribers to consume in a consistent way. The vendor handles sourcing and processing, so you access prepared data without doing that work yourself. Contact the vendor for specific format and update details.
www.rearc.io
Helpful?
Vendor refund policy
Refunds Not Applicable
How can we make this page better?
Tell us how we can improve this page, or report an issue with this product.
Give us feedbackReport a problem with this product or seller
Legal
Vendor terms and conditions
Upon subscribing to this product, you must acknowledge and agree to the terms and conditions outlined in the vendor's End User License Agreement (EULA).
Content disclaimer
Vendors are responsible for their product descriptions and other product content. AWS does not warrant that vendors' product descriptions or other product content are accurate, complete, reliable, current, or error-free.
Avalara automates tax compliance, simplifying sales tax, returns, e-Invoicing, and cross-border transactions. With 1,200+ signed partner integrations, we streamline tax so you can focus on growth.
Avalara simplifies tax compliance with automation, helping businesses manage sales tax returns, reporting, and purchasing compliance. Our solutions support business growth, cross-border sales, and vendor management while helping to ensure accuracy and efficiency. We connect with top ERPs, ecommerce platforms, and accounting systems like Shopify, Adobe Commerce, WooCommerce, BigCommerce, NetSuite, SAP, Workday, Acumatica, and more. Avalara enables seamless tax compliance, allowing businesses to focus on operations and global expansion while reducing complexity and risk of audits.
Avalara AvaTax is the global tax engine at the heart of our agentic compliance platform - delivering highly accurate, real-time tax calculations for both sales and purchasing workflows across jurisdictions and tax types.
AvaTax integrates with over 1,400 business systems including ERP, ecommerce, and POS platforms to calculate tax directly in your workflow. It tracks economic nexus thresholds, supports product taxability, and handles complex scenarios like exempt sales and cross-border transactions. AvaTax is built for scale, delivering 20 millisecond average calculation speed and processing billions of API calls annually. It's SOC 2 Type 2 compliant and trusted by governments and enterprises alike. As part of Avalara's compliance platform, AvaTax helps businesses reduce audit risk, improve accuracy, and stay tax-compliant anywhere they sell.
Hyperbots Sales Tax Verification Co-Pilot reads every invoice line, tags each item to the right tax category for its origin-to-destination ZIP codes, double-checks the math against live rates, and even suggests the exact withholding your payer-recipient combo requires, then syncs with the Invoice Processing Co-Pilot so the whole flow stays friction-free.