Created
February 27, 2023 23:10
-
-
Save farukcan/390cb44bebef103fbc0779c74abef58e to your computer and use it in GitHub Desktop.
Visual Powershell - Useful Rest APIs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Name": "Useful Rest APIs", | |
"Author": "farukcan", | |
"Website": "https://farukcan.net", | |
"Commands": [ | |
{ | |
"Name": "Currency Converter", | |
"Scripts": [ | |
"Invoke-RestMethod \"https://cdn.jsdelivr.net/gh/fawazahmed0/currency-api@1/latest/currencies/{text:Currency From (3 character format,lower case)}/{text:Currency To}.json\"" | |
] | |
}, | |
{ | |
"Name": "URL Shortener", | |
"Scripts": [ | |
"Invoke-RestMethod \"https://api.shrtco.de/v2/shorten?url={text:URL}\" | ForEach-Object {echo $_.result}", | |
"Invoke-RestMethod \"https://short-link-api.vercel.app/?query={text:URL}\"" | |
] | |
}, | |
{ | |
"Name": "Fake Mail Detector (kickbox.com)", | |
"Scripts": [ | |
"Invoke-RestMethod \"https://open.kickbox.com/v1/disposable/{text:Emai}\"" | |
] | |
}, | |
{ | |
"Name": "Pick Random Number", | |
"Scripts": [ | |
"Invoke-RestMethod \"http://numbersapi.com/random?min={text:Minimum}&max={text:Maximum}\"" | |
] | |
}, | |
{ | |
"Name": "IP to Location", | |
"Scripts": [ | |
"Invoke-RestMethod \"http://ip-api.com/json/{text:IP Address (empty for your ip)}\"" | |
] | |
}, | |
{ | |
"Name": "Random Address", | |
"Scripts": [ | |
"Invoke-RestMethod \"https://fakerapi.it/api/v1/addresses?_quantity=1\" | ForEach-Object {echo $_.data}" | |
] | |
}, | |
{ | |
"Name": "Random Book", | |
"Scripts": [ | |
"Invoke-RestMethod \"https://fakerapi.it/api/v1/books?_quantity=1\" | ForEach-Object {echo $_.data}" | |
] | |
}, | |
{ | |
"Name": "Random Company", | |
"Scripts": [ | |
"Invoke-RestMethod \"https://fakerapi.it/api/v1/companies?_quantity=1\" | ForEach-Object {echo $_.data}" | |
] | |
}, | |
{ | |
"Name": "Random Person", | |
"Scripts": [ | |
"Invoke-RestMethod \"https://fakerapi.it/api/v1/persons?_quantity=1\" | ForEach-Object {echo $_.data}" | |
] | |
}, | |
{ | |
"Name": "Random Text", | |
"Scripts": [ | |
"Invoke-RestMethod \"https://fakerapi.it/api/v1/texts?_quantity=1&_characters=500\" | ForEach-Object {echo $_.data}" | |
] | |
}, | |
{ | |
"Name": "Random Pokemon", | |
"Scripts": [ | |
"Invoke-RestMethod \"https://fakerapi.it/api/v1/custom?_quantity=1&customfiled1=pokemon\" | ForEach-Object {echo $_.data}" | |
] | |
}, | |
{ | |
"Name": "Random UUID", | |
"Scripts": [ | |
"Invoke-RestMethod \"https://fakerapi.it/api/v1/custom?_quantity=1&customfiled1=uuid\" | ForEach-Object {echo $_.data}" | |
] | |
}, | |
{ | |
"Name": "Random Useless Facts", | |
"Scripts": [ | |
"Invoke-RestMethod \"https://uselessfacts.jsph.pl/api/v2/facts/random\"" | |
] | |
}, | |
{ | |
"Name": "USGS Last Hour Earthquakes (2.5+)", | |
"Scripts": [ | |
"Invoke-RestMethod \"https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_hour.geojson\" | ForEach-Object {$_.features.properties}" | |
] | |
}, | |
{ | |
"Name": "Spaceflight News API", | |
"Scripts": [ | |
"Invoke-RestMethod \"https://api.spaceflightnewsapi.net/v3/articles\"" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment