SOLVED
OECD API connection
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
juan_diego
6 - Meteoroid
‎07-06-2017
08:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Labels:
- Labels:
- API
5 REPLIES 5
mborriero
11 - Bolide
‎07-07-2017
01:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @juan_diego, just now. Please find sample attached.
‎07-07-2017
05:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
mborriero
11 - Bolide
‎07-07-2017
07:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@juan_diegounfortunately it is a bit more complicated that that.
Each JSON files can be structured in a different way, depending from the source.
The attached workflow should give you the data that you need.
I am not sure about the column "order" that I have created.
Hope it helps.
‎07-07-2017
10:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@mbrriero thousan thanks!!!
This workflow was very useful
fabianrudolf
5 - Atom
‎01-25-2022
07:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
for future reference: one could also connect to the API via Python Tool integration downloading files directly as csv for some datasets, e.g. with the following code snippet adapted from this discussion on stackoverflow.
import pandas as pd def oecd_request(sdmx_query): return pd.read_csv(f"https://stats.oecd.org/SDMX-JSON/data/{sdmx_query}?contentType=csv")
sdmx_query = "MEI_FIN/IRLT.AUS.M/OECD"
result = oecd_request(sdmx_query) Alteryx.write(result, "#1")
Like this, you can now avoid parsing any JSON.
Kind regards,
