Skip to main content
$ curl -s 'https://tools.keycdn.com/geo.json?host={18.205.6.240}' | jq -r '.data.geo.country_name'
United States

The jqjq expression .data.geo.country_name extracts the given item in the JSON document returned from the endpoint that you access with curl.

$ 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.

$ 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.

deleted 9 characters in body
Source Link
Kusalananda
  • 355.9k
  • 42
  • 735
  • 1.1k
$ curl "https-s 'https://tools.keycdn.com/geo.json?host={18.205.6.240}" 2>/dev/null' | 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.

$ curl "https://tools.keycdn.com/geo.json?host={18.205.6.240}" 2>/dev/null | 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.

$ 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.

Source Link
Kusalananda
  • 355.9k
  • 42
  • 735
  • 1.1k

$ curl "https://tools.keycdn.com/geo.json?host={18.205.6.240}" 2>/dev/null | 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.