Skip to content
moosecast
All help articles

Content

Data from APIs and spreadsheets

Show numbers, lists and tables from an API, a Google spreadsheet, a CSV file or XML, when Moosecast has no app of its own for it.

The Data from API app fetches data from an address and shows it as a big number, a list, a table or one row at a time. It is for when Moosecast has no app of its own for what you want to show.

Get started

  1. Add Data from API (in the Smart home and data folder) and enter the address.
  2. Click Fetch and show fields. You see what the response holds: lists with their number of rows, numbers and texts.
  3. Click a list or a number to choose it. For a list, then click the fields to show.
  4. Choose Display, and if you like the number format, decimals and how often the data is refreshed.

Google Sheets and CSV

Share the spreadsheet with "Anyone with the link" and paste the link; the first sheet is fetched. For another sheet, open that sheet first and copy the link. The first row is used as field names. CSV files with commas or semicolons work too.

APIs with a key

  • Add the key under Connection, as REST API. It is stored encrypted and never shown again.
  • By default the key is sent in the Authorization header. Write for example "Bearer …" in front of it if the API needs that.
  • Fill in Header name if the API wants the key in another header, parameter in the address if it goes in the address, or username for sign-in with username and password.
  • Some APIs want a POST request with a body. Choose it under Request and write the body as JSON.

Numbers that stand out

For a big number you can set Red below and Green above. The number then changes colour when it passes the limits, for example stock running low.

Didn't find what you were looking for? Write to us.