{"uid":"cap_Lg6pGyruBU8Fln5o-uyzt","slug":"european-government-deficit-surplus-as-of-gdp-eurostat-8a33b944","name":"European Government Deficit/Surplus 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/deficit-ue-pago?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"pais":{"type":"string","description":"ISO code (ES, DE, FR...), EU, EA or omit for a ranking of all countries"},"anios":{"type":"integer"}}},"responseSchema":{"type":"json","example":{"pais":"ES","serie":[{"periodo":"2021","saldo_pct_pib":-6.7},{"periodo":"2022","saldo_pct_pib":-4.6},{"periodo":"2023","saldo_pct_pib":-3.3},{"periodo":"2024","saldo_pct_pib":-3.2},{"periodo":"2025","saldo_pct_pib":-2.4}],"fuente":"Eurostat (gov_10dd_edpt1, CC BY 4.0)","nombre":"Spain","ultimo":{"periodo":"2025","saldo_pct_pib":-2.4},"actualizado":"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_VkduwokJYvGEkweE-QGsA","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 a specified European country, or a ranking of all countries, sourced from official Eurostat data.","exampleAgentPrompt":"What is Spain's annual government deficit as a percentage of GDP for the last 5 years, using official Eurostat data?","exampleUseCases":[{"title":"Country fiscal health snapshot","prompt":"Can you pull the government deficit or surplus for Italy as a percentage of GDP from Eurostat and show me the trend over the past 5 years?"},{"title":"EU country fiscal ranking","prompt":"Give me a ranking of all European countries by their government deficit or surplus as a share of GDP — I want to see who's most and least fiscally disciplined."},{"title":"Eurozone deficit compliance check","prompt":"What is France's latest government deficit as a percentage of GDP according to Eurostat? I need to know if it's above or below the EU's 3% threshold."}],"resultDescription":"A JSON object containing the country ISO code, full country name, a time series of annual deficit/surplus values as % of GDP (each with a period label and numeric value), the most recent year's figure, the Eurostat data source citation, and the timestamp of the last update. If no country is specified, returns a ranking of all European countries.","failureModes":["Invalid or unsupported country ISO code returns an error or empty result","Requesting data for a non-European country not covered by Eurostat","Missing required 'input' wrapper in the request body causes a validation error","Eurostat data not yet published for the most recent year may return incomplete series","Network timeout or upstream Eurostat API unavailability"],"whenToPreferThis":"Choose this endpoint when you need official, Eurostat-sourced government fiscal balance data (deficit or surplus as % of GDP) for any European country or EU/Eurozone aggregate. Prefer it over general economic databases when you need reliable, citable government statistics with historical time series for European nations specifically. Ideal for compliance checks against EU fiscal rules, country comparisons, or trend analysis.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T12:40:22.194Z","isFirstParty":false,"canonicalSlug":"european-government-deficit-surplus-as-of-gdp-eurostat-8a33b944"}