Have you tried the EONET by NASA or also known as Earth Observatory Natural Event Tracker connector in Power Automate yet?
First steps into space
Visit the NASA API site to get your api key. Within minutes you will receive youyr key. So if you don’t then you might want to check your junk folders.
Then you can add an EONET By Nasa action to your flow and the first time you do this you will have to supply the key that was emailed to you.

I’m going to start with the Get categories action. This action returns the categories of the events.

You might notice in the above that i’m getting text that looks like json returned rather than json.
I needed to steps to sort this out.
Two compose action. The first compose takes the body of the previous action but with [ and ] around it in text
![add and to create an array Add [ and ] to create an array](https://sharepains.com/wp-content/uploads/2021/10/add-and-to-create-an-array.png)
The second action uses:
json(base64ToString( first(outputs('Compose'))?['$content']))And now we get proper json returned:

Now we can use the above result from the second compose to get our events,
Getting events for categories
To get events for each of the catefgories, all we have to do is set the Apply to each to use the following code:
outputs('Compose_2')?['categories']and in the Category
items('Apply_to_each')?['id']
And now we will get back our events:

Ah no events happening at the moment.
But as I step though the different categories, we have an event in the category seaLakeIce. We have an Iceberg A78 there.

Other categories that events are reported for are:
- Drought
- Dust and Haze
- Earthquakes
- Floods
- Landslides
- Manmade
- Sea and Lake Ice
- Severe Storms
- Snow
- Temperature Extremes
- Volcanoes
- Water Color
- Wildfires
Ok, not really a space event, but still , this connector is nice to get all sorts of event reported wihtin your flow or Power App.
Frequently asked questions
How does the example connect to the NASA event service?
The author obtains an API key from NASA and supplies it when creating the EONET connector connection.
How did the article turn the category response into usable JSON?
The historical example wraps the response and uses Compose actions to decode its content and parse it as JSON.
How are events retrieved for each category?
The flow loops over the returned categories and supplies each category ID to the event action.

