Want to learn more about curl? Learn curl by example.
curl -X GET \ -o "output.json" \ "https://echo.onlineornot.com"