rOpenGov / pxweb

R tools to access PX-WEB API
http://ropengov.github.io/pxweb
Other
69 stars 31 forks source link

Add APIs not listed in the API catalogue #254

Open MansMeg opened 1 year ago

MansMeg commented 1 year ago

There are APIs available that are currently not listed in the package. Several APIs listed here are not in our catalogue (yet): https://www.scb.se/en/services/statistical-programs-for-px-files/px-web/pxweb-examples/

pitkant commented 1 year ago

I went through the list:

PxWeb data bases in some countries/organisations

PxWeb examples in Sweden

It is also possible to use components of PxWeb together with selections from an SQL database. (These are maybe not attainable in this package but maybe it's worth exploring)


I also found some databases done in pxweb that were not in the list above:

Databases listed in the pxweb package catalogue but not included in the list on SCB website:

Other notes:

MansMeg commented 1 year ago

Great! Could you open up a PR with ehe ones that are missing?

pitkant commented 1 year ago

Entities that did not have API available:

Entities with broken APIs:

API works fine but produces a warning:

Error in curl::curl_fetch_memory(url, handle = handle) : 
  Could not resolve host: net-inter-eustat-45.ejgvdns

###

This is an old PXWEB API not supported by pxweb R package
(version PX-Web 2014 Dec R1 or later is supported): 
http://pxweb.orebro.se/api/v1/sv/

###

1: 34
Error: 
This is an old PXWEB API not supported by pxweb R package
(version PX-Web 2014 Dec R1 or later is supported): 
https://pxweb.instat-mali.com/PXWeb/api/v1/fr/BaseDeDonnees/

1: 34
Error: 
This is not a PXWEB API: 
https://pxweb.instat-mali.com/PXWeb/api/v1/fr/BaseDeDonnees/

==============================================================================
 R PXWEB: Content of 'pxweb.instat-mali.com'
==============================================================================
 [ 1 ] : v1
==============================================================================
Enter your choice:
('esc' = Quit, 'i' = Show id) 

###

http://px.rsv.is/PXWeb/api/v1/en
Error in curl::curl_fetch_memory(url, handle = handle) : 
  Timeout was reached: [px.rsv.is] Failed to connect to px.rsv.is port 80 after 10009 ms: Timeout was reached

http://px.rsv.is/PXWeb/api/v1/is
Error in curl::curl_fetch_memory(url, handle = handle) : 
  Timeout was reached: [px.rsv.is] Failed to connect to px.rsv.is port 80 after 10004 ms: Timeout was reached

###

Warning message:
PXWEB URL CHANGE:
 from: https://m02-http-pxwebb.login.sundsvall.se/PXWeb_Ext/api/v1/sv/
 to:   https://m02-http-pxwebb.login.sundsvall.se/PXWeb_Ext/api/v1/sv/ 
MansMeg commented 1 year ago

Strange warning from Sundsvall.

I think we can skip the ones that doesnt work. They can still use pxweb but we end up with unnessecary maintenance.