I went to URL: https://explorecalifornia.org/api/weather/city/ I did a CTRL+F and searched the exact term (quotation marks are included in the search): "name" It returned 7,322 results!! From Afghanistan to Gweru and everywhere in-between.
I'm trying to utilise a weather API of which I cannot find any documentation for. What I want to know is: how can I extract only specific data, i.e. "name" from the above URL?
I'm trying to fill a data table with a list of city names that the API uses so I can use them to search for weather forecast information later on.
I'm using Microsoft's Power Automate Desktop > Invoke a web service > and returning the data in JSON format.
I have tried reading in the whole data object. I expected it to take forever, it did. (not optimum for each time I want to run it) I'm new to power automate desktop, JSON data and invoking web services.
Edit: using regex, how would I find the next word, without quotation marks after: "name":
e.g. "name":"Feyzabad","name_ascii":"Feyzabad","name":"Pol-e Khomri","name_ascii":"Pol-e Khomri"
The only word out of anything I want is Feyzabad and Pol-e Khomri
(?<="name":")([^"]*)
I have no made it this far, How can I add the /g flag into power automate desktop?
SOLVED!
I changed the way I have been attempting it with the help of a friend on discord. Instead of extracting data from a webpage, I used a get data from webpage function and then a parse text function to parse the information I wanted using the regex expression above.
Not sure how to close a question on here