{"uid":"cap_3JswoO3zXmC5vwDrvI3FB","slug":"eu-government-deficit-as-of-gdp-eurostat-138b9207","name":"EU Government Deficit as % of GDP (Eurostat)","description":"Annual government deficit (-) or surplus (+) as % of GDP for any European country; without a country, a ranking. Official Eurostat data.","url":"https://api.vextorium.com/v1/eu-government-deficit?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"years":{"type":"integer"},"country":{"type":"string","description":"ISO code (ES, DE, FR...), EU, EA or omit for a ranking of all countries"}}},"responseSchema":{"type":"json","example":{"last":{"period":"2025","balance_pct_gdp":-2.4},"name":"Spain","series":[{"period":"2021","balance_pct_gdp":-6.7},{"period":"2022","balance_pct_gdp":-4.6}],"source":"Eurostat (gov_10dd_edpt1, CC BY 4.0)","country":"ES","updated":"2026-04-22T11:00:00+0200"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NGqR10iLMZPbOR7QnHKsX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the annual government deficit or surplus as a percentage of GDP for any European country, or a ranking of all countries, using official Eurostat data.","exampleAgentPrompt":"What is Spain's annual government deficit as a percentage of GDP according to Eurostat — can you pull the last 5 years of data?","exampleUseCases":[{"title":"Country fiscal health check","prompt":"Can you get me Germany's government deficit or surplus as a percentage of GDP from Eurostat for the past 5 years? I want to see the trend."},{"title":"EU country deficit ranking","prompt":"Show me a ranking of all European countries by their latest annual government deficit as a percentage of GDP — I want to see which countries are most and least fiscally disciplined."},{"title":"Eurozone aggregate deficit","prompt":"What is the current Eurozone (EA) government deficit as a percentage of GDP according to Eurostat? Just give me the latest figure."}],"resultDescription":"Returns a JSON object containing the country name, ISO code, the latest period and balance_pct_gdp value, a historical time series of annual deficit/surplus percentages, the Eurostat data source citation, and the last updated timestamp. When no country is specified, returns a ranked list of all European countries.","failureModes":["Invalid country ISO code returns an error or empty result","Requesting a country outside the European statistical area may return no data","Very recent years may not yet be available in Eurostat's published dataset","Omitting required fields like 'type', 'method', or 'bodyType' in the input wrapper causes a schema validation error"],"whenToPreferThis":"Use this endpoint when you need official, Eurostat-sourced annual government deficit or surplus data expressed as a percentage of GDP for EU/EEA member states. Prefer this over general economic data APIs when you specifically need European fiscal balance figures with official provenance (CC BY 4.0). It also uniquely supports returning a cross-country ranking in a single call. For US federal deficit data, use the sibling endpoint covering US federal receipts and outlays instead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T12:37:54.997Z","isFirstParty":false,"canonicalSlug":"eu-government-deficit-as-of-gdp-eurostat-138b9207"}