API generates CSV files using “.” as a decimal character. You should choose “United States” regional configuration so Google Spreadsheet reads properly the file, or any other compatible region.
Alternatively, you can ask the API to change the decimal character using decimal
parameter.
IMPORTDATA()
function takes the API call URL and gets data to the spreadsheet.
Time index can be seen as a number first time data is imported. You can select the entire column and choose the format to visualize date values.
Once you have imported a table for the first time, you can modify parameters to change the query. The table will be updated each time.
“Data” > “New query” > “From other sources” > “From web”
API generates CSV files using “Unicode UTF-8” encoding, which is not default in Excel. Click in “Origin” > “File origin” > Choose “Unicode UTF-8”.
Excel can read wrong column types if the decimal separator is not “.”. You should use advanced editor to correct column data types. (You can also use decimal
parameter to change the decimal separator)
In the same advanced editor, regional configurations should be changed at the end to be “en-US” and accepts “.” as a decimal separator (unless decimal
parameter is used).
For last, you can click in “Close and load” and the query will be configured in an Excel table that can be updated.