How to use Shortcuts to enter data into an API

{
"name": "meelad",
"age": 29,
}
  • Open the Shortcut app and select “+” to create a new Shortcut
  • Give the Shortcut any name you like, e.g “Age from name?”
  • Add action “Ask for input” and switch “prompt” for something like “Enter the name of the person you would like to predict the age for”.
  • Add action “URL”, change the url text to “https://api.agify.io/?name=”
  • Add action “Get contents of URL”
  • Add action “Get dictionary from input”
  • Add action “Show Alert”

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store