Skip to content

Instantly share code, notes, and snippets.

@mtboren
Last active July 28, 2022 22:43
Show Gist options
  • Save mtboren/dba5c339b0c0269a0e410bc8d4d658ec to your computer and use it in GitHub Desktop.
Save mtboren/dba5c339b0c0269a0e410bc8d4d658ec to your computer and use it in GitHub Desktop.
Mars Rovers:
https://api.nasa.gov/api.html#MarsPhotos, https://github.com/chrisccerami/mars-photo-api
(irm "https://api.nasa.gov/mars-photos/api/v1/rovers?api_key=DEMO_KEY").rovers
- what are the rovers, when were they launched, when did they land, how long was their journey, how many pictures have they taken?
https://images.nasa.gov/docs/images.nasa.gov_api_docs.pdf
Apollo 11 moon landing pictures
irm "https://images-api.nasa.gov/search?q=apollo%2011&description=moon%20landing&media_type=image&year_end=1970"
irm https://images-api.nasa.gov/album/apollo
get Near Earth Objects
https://api.nasa.gov/api.html#neows-swagger
https://api.nasa.gov/neo/rest/v1/neo/browse?page=0&size=20&api_key=DEMO_KEY
https://api.nasa.gov/neo/rest/v1/feed/today?detailed=true&api_key=DEMO_KEY
Space Weather: https://api.nasa.gov/api.html#DONKI
Coronal Mass Ejections, Geomagnetic Storms, Solar Flares, etc.
Quote of the Day
https://quotes.rest/#!/qod/get_qod
https://quotes.rest/#!/qod/get_qod_categories
http://quotes.rest/qod.json?category=funny
$oQuoteOfTheDay = Invoke-RestMethod http://quotes.rest/qod.json?category=inspire
$oQuoteOfTheDay.contents.quotes.quote
$oChuckNorrisFact = Invoke-RestMethod https://api.chucknorris.io/jokes/random?category=science
$oChuckNorrisFact.value
Invoke-RestMethod -Body @{text = "Master Obiwan has lost a planet."} -Uri https://api.funtranslations.com/translate/yoda.json -Method Post -OutVariable oTranslatedInfo
Invoke-RestMethod -Body @{text = $oQuoteOfTheDay.contents.quotes.quote} -Uri https://api.funtranslations.com/translate/yoda.json -Method Post -OutVariable oTranslatedInfo
# https://en.wikipedia.org/w/api.php?action=query&format=json&list=search&srsearch=Roanoke%20Colony
# https://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=Roanoke%20Colony&utf8=&format=json&inprop=url
# (irm "https://en.wikipedia.org/w/api.php?action=query&formatversion=2&prop=pageimages%7Cpageterms&titles=Roanoke%20Colony&format=json")
Invoke-RestMethod "https://en.wikipedia.org/w/api.php?action=query&titles=Roanoke%20Colony&prop=info%7Cpageimages%7Cpageterms&inprop=url%7Ctalkid&format=json"
Invoke-RestMethod -Headers @{Accept = "application/json"} -Uri "https://www.foaas.com/ratsarse/Big%20Matt"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment