• Products
    • Isadora
    • Get It
    • ADD-ONS
    • IzzyCast
    • Get It
  • Forum
  • Help
  • Werkstatt
  • Newsletter
  • Impressum
  • Dsgvo
  • Press
  • Isadora
  • Get It
  • ADD-ONS
  • IzzyCast
  • Get It
  • Press
  • Dsgvo
  • Impressum

Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags

    [ANSWERED] Retrieving live data from website

    How To... ?
    2
    12
    217
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pellemolde @bonemap last edited by

      @bonemap 

      Thank you very much @bonemap! I've opened your project and it makes a lot of sense what to do next but I have stumbled into another problem. I have found a free API on gold price which has given me a URL and an acces token. I have tried to use the "Get/post URL text" actor but i can't figure out where to paste the acces token. The website gives med the picture under but I don't know where to put it. Thanks!

      bonemap 1 Reply Last reply Reply Quote 0
      • bonemap
        bonemap Izzy Guru @pellemolde last edited by

        @pellemolde

        I was unable to get access using the authorization key in your image post. I did, however get access to https://metalpriceapi.com/docu... easily. I assume from reading about the 'x-access-token' of the goldapi.io data server it can't be used through the method available in Isadora. 

        Best Wishes

        Russell  

        http://bonemap.com | Australia
        Izzy STD 4.2 | USB 3.6 | + Beta
        MBP 14” 2022 M2 16GB | 15.7 Sequoia
        Mac Studio 2023 M2 Ultra 128GB | 15.7 Sequoia
        Mac Mini 2025 M4 Pro 64GB | 15.7 Sequoia
        A range of deployable older Macs

        P 1 Reply Last reply Reply Quote 0
        • P
          pellemolde @bonemap last edited by

          @bonemap

          Okay but how would I go about implementing the website you have linked in isadora?:)

          bonemap 1 Reply Last reply Reply Quote 0
          • bonemap
            bonemap Izzy Guru @pellemolde last edited by bonemap

            @pellemolde

            Hi @pellemolde,

            The website link I sent through provides a ‘quickstart’ suggestion that provides a url:

            https://api.metalpriceapi.com/v1/latest?api_key=[API_KEY]

            Once you have registered for the free subscription and received the api key you will be able to complete the url. Copy the api key you receive into the url where it has the place holder [API_KEY].

            In your Isadora Scene Editor, place a ‘Get URL Text’ actor module. Paste the url address from metalpriceapi.com into the ‘url’ input. Initiate the 'get' request by clicking the 'go' trigger input of the 'Get URL Text' actor module.


            If the request is successful you will get a stream of data in JSON format. To extract the data you want use the JSON Parser actor module in a cascade until the specific data arrives at an output. At this point you can then route the data to activate the other elements in the Scene Editor.

            You will notice in the screen shot here that the data is identified via a 3-4 letter symbol ie. AUD, DOGE, ETH. These are the id for exchange rates for Autralian Dollar, Doge Coin and Ethereum. If you look at the URL we have entered into the 'Get URL Text' - you will notice that it has the word 'latest' in the URL and then in the received JSON data the selector word 'rates' near the beginning of the data stream. I have copied the selector id name 'rates' into the JSON Parser actor module to isolate the data associated with that selector title. The next JSON Parser has identified 328 elements and these become the selector names on the input side of the JSON Parser actor module, these are the individual data points each identified by an acronym or symbol - I have chosen just three of the available selector names to access their individual data. 

            Go back to the metalpriceapi website and you will find guides and other URL request options - I think I saw mention of a gold price URL there.

            You will have to spend time to understand the acronyms and symbols used in the data stream to identify the information that you want to use.

            To get a clearer idea of what data you are working with you can copy the entire data stream from the Get URL Text actor module and past it into a Comment actor module to expose it and visually find the selector element names/symbols and other id information. Below is a partial screen grab of the data streams from metalpriceapi copied into Comment actor modules. The column on the left is from a request URL: 

            https://api.metalpriceapi.com/v1/symbols?api_key=[API_KEY]

            and the column on the right is from a request URL:

            https://api.metalpriceapi.com/v1/latest?api_key=[API_KEY]

            http://bonemap.com | Australia
            Izzy STD 4.2 | USB 3.6 | + Beta
            MBP 14” 2022 M2 16GB | 15.7 Sequoia
            Mac Studio 2023 M2 Ultra 128GB | 15.7 Sequoia
            Mac Mini 2025 M4 Pro 64GB | 15.7 Sequoia
            A range of deployable older Macs

            P 2 Replies Last reply Reply Quote 2
            • P
              pellemolde @bonemap last edited by

              @bonemap
              thank you I Will try that

              1 Reply Last reply Reply Quote 1
              • P
                pellemolde @bonemap last edited by

                @bonemap

                I have tried to figure it out but when I use this method I just get this message "User did not supply an access key or supplied an invalid access key. Please sign up for a FREE API Key at metalpriceapi.com"?

                bonemap 1 Reply Last reply Reply Quote 0
                • bonemap
                  bonemap Izzy Guru @pellemolde last edited by bonemap

                  @pellemolde

                  Sorry to hear you are having difficulty getting a successful data stream. I am going to assume you have indeed signed up for the Metalpriceapi.com subscription. When I signed up the access URL was preconfigured in the notification process and required copying and pasting into the ‘Get URL text’ actor module. BUT the URL success is sensitive to additional spaces, gaps and invisible characters in the address string. The following screen grabs demonstrate how unseen gaps and spaces may need to be deleted to 'tighten up' the URL address before use after copying from the Metalpriceapi.com website.

                  1. Below is a screen grab of the metalpriceapi.com dashboard that provides my api_key. The grey box outlined in red is preconfigured with my api_key in the dashboard so I can directly copy the address string here.


                  2. BUT when cut and paste it also includes spaces and gaps and hidden elements that appear to make the copied text unsuccessful.


                  3. It will work if you clean up the address by deleting any spaces including extra tab or return spaces at the end of the address string.

                  http://bonemap.com | Australia
                  Izzy STD 4.2 | USB 3.6 | + Beta
                  MBP 14” 2022 M2 16GB | 15.7 Sequoia
                  Mac Studio 2023 M2 Ultra 128GB | 15.7 Sequoia
                  Mac Mini 2025 M4 Pro 64GB | 15.7 Sequoia
                  A range of deployable older Macs

                  P 2 Replies Last reply Reply Quote 0
                  • P
                    pellemolde @bonemap last edited by

                    @bonemap

                    What do you mean by the notification process?

                    bonemap 1 Reply Last reply Reply Quote 0
                    • P
                      pellemolde @bonemap last edited by

                      @bonemap

                      It worked!!! Thank you very much!

                      1 Reply Last reply Reply Quote 1
                      • bonemap
                        bonemap Izzy Guru @pellemolde last edited by

                        @pellemolde

                        Hopefully the previous steps assist in getting you a successful request from metalpriceapi.com?

                        http://bonemap.com | Australia
                        Izzy STD 4.2 | USB 3.6 | + Beta
                        MBP 14” 2022 M2 16GB | 15.7 Sequoia
                        Mac Studio 2023 M2 Ultra 128GB | 15.7 Sequoia
                        Mac Mini 2025 M4 Pro 64GB | 15.7 Sequoia
                        A range of deployable older Macs

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post