Closed pitkant closed 2 years ago
But will it affect the pxweb web API? It just looks like differences on the website? The pxweb web API has not changed according to my dialogue with the pxweb developers. I get:
Error: 'https://statfin.stat.fi/PXWeb/pxweb/fi/StatFin/' is not a PXWEB API. See pxweb_api_catalogue() for available PXWEB APIs.
The path to Statistics Finlands APi is (english version):
https://pxnet2.stat.fi/PXWeb/api/v1/en
I changed the API-adress to the new path. That apparently will change.
Isn't that "is not a PXWEB API" message printed when the URL is not included in inst/extdata/api.json file? Therefore it would print the message for station.stat.fi since it is not included in the file. And yes, this change should affect API:
"The renewal influences the structure of the StatFin database, publishing of database tables and communicating about tables, browsing of tables and all links in the database. Changing of links has an effect especially on interface (API) use"
It actually checks if the parh is a pxweb api in general, by pinging the ?config . Hence it worked with the new api path even though it was not in the catalogue.
It seem to work with the new API (but is now much more cumbersome I think).
Yes. I changed the API path.
Heads-up of an upcoming change:
"The links in Statistics Finland's StatFin database will be renewed on 5.4.2022. The change also affects the use of the interface.
Highlights:
The database address changes. before: https://pxnet2.stat.fi/PXWeb/pxweb/en/StatFin/ in the future: https://statfin.stat.fi/PXWeb/pxweb/fi/StatFin/
Because the database no longer shows the topic level, the combination of letters describing the topic is removed from the table links.
Saved searches are automatically corrected in Statistics Finland.
Old links and interface calls work until July, but they lead to a frozen version of the database.
More information: https://stat.fi/ajk/verkkosivu-uudistus/uudistuksen-vaikutukset-statfin-tietokantaan_en.html"