From d61060e0cee705bf8361f9add4c192c5b1b30f0b Mon Sep 17 00:00:00 2001 From: firstdata-dev Date: Wed, 4 Mar 2026 17:00:57 +0800 Subject: [PATCH 1/2] fix: update broken api_url links for imf-data, unctad, china-nbs - imf-data: datahelp.imf.org domain unreachable (000), replaced with official IMF DataMapper API endpoint (HTTP 200) - unctad: /EN/api.html returns 404, replaced with UNCTAD Data Centre which is the current API access point (HTTP 200) - china-nbs: data.stats.gov.cn/api.htm returns 404, replaced with data.stats.gov.cn root which hosts the NBS API (HTTP 200) Note: OECD api_url and CDC website return 403 (likely bot protection), not a data quality issue - left unchanged pending manual verification. --- firstdata/sources/china/national/nbs.json | 4 ++-- firstdata/sources/international/economics/imf.json | 4 ++-- firstdata/sources/international/trade/unctad.json | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/firstdata/sources/china/national/nbs.json b/firstdata/sources/china/national/nbs.json index 9b71575..db475fb 100644 --- a/firstdata/sources/china/national/nbs.json +++ b/firstdata/sources/china/national/nbs.json @@ -11,7 +11,7 @@ }, "website": "http://www.stats.gov.cn", "data_url": "https://www.stats.gov.cn/sj/", - "api_url": "http://data.stats.gov.cn/api.htm", + "api_url": "https://data.stats.gov.cn/", "country": "CN", "domains": [ "economics", @@ -58,4 +58,4 @@ ] }, "authority_level": "government" -} \ No newline at end of file +} diff --git a/firstdata/sources/international/economics/imf.json b/firstdata/sources/international/economics/imf.json index b5d483b..aa6a186 100644 --- a/firstdata/sources/international/economics/imf.json +++ b/firstdata/sources/international/economics/imf.json @@ -11,7 +11,7 @@ }, "website": "https://www.imf.org", "data_url": "https://data.imf.org", - "api_url": "https://datahelp.imf.org/knowledgebase/articles/667681-using-json-restful-web-service", + "api_url": "https://www.imf.org/external/datamapper/api/v1/", "country": null, "domains": [ "economics", @@ -54,4 +54,4 @@ ] }, "authority_level": "international" -} \ No newline at end of file +} diff --git a/firstdata/sources/international/trade/unctad.json b/firstdata/sources/international/trade/unctad.json index 09276a8..ea6fa98 100644 --- a/firstdata/sources/international/trade/unctad.json +++ b/firstdata/sources/international/trade/unctad.json @@ -10,7 +10,7 @@ }, "website": "https://unctad.org", "data_url": "https://unctadstat.unctad.org", - "api_url": "https://unctadstat.unctad.org/EN/api.html", + "api_url": "https://unctadstat.unctad.org/datacentre/", "country": null, "domains": [ "trade", @@ -50,4 +50,4 @@ ] }, "authority_level": "international" -} \ No newline at end of file +} From 9da8b545f5a7ef079416553364931a18d104c844 Mon Sep 17 00:00:00 2001 From: firstdata-dev Date: Wed, 4 Mar 2026 17:05:21 +0800 Subject: [PATCH 2/2] fix: update unctad api_url to official API endpoint unctadstat-api.unctad.org returns HTTP 200 with 'Api Works', confirmed as the correct REST API endpoint. --- firstdata/sources/international/trade/unctad.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firstdata/sources/international/trade/unctad.json b/firstdata/sources/international/trade/unctad.json index ea6fa98..9836b69 100644 --- a/firstdata/sources/international/trade/unctad.json +++ b/firstdata/sources/international/trade/unctad.json @@ -10,7 +10,7 @@ }, "website": "https://unctad.org", "data_url": "https://unctadstat.unctad.org", - "api_url": "https://unctadstat.unctad.org/datacentre/", + "api_url": "https://unctadstat-api.unctad.org/", "country": null, "domains": [ "trade",