$ curl -s 'https://tools.keycdn.com/geo.json?host={18.205.6.240}' | jq -r '.data.geo.country_name'
United States
The jq expression .data.geo.country_name extracts the given item in the JSON document returned from the endpoint that you access with curl.