{"id":32386,"date":"2026-11-30T22:08:04","date_gmt":"2026-11-30T22:08:04","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=32386"},"modified":"2026-11-30T22:08:04","modified_gmt":"2026-11-30T22:08:04","slug":"shell-bash-scripting-assignment-excercise-15","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/shell-bash-scripting-assignment-excercise-15\/","title":{"rendered":"Shell Bash Scripting: Assignment &amp; Excercise \u2013 15"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This exercise builds a Bash script that takes an IP address, sends it to the free ip-api.com geolocation API with <code>curl<\/code>, and uses <code>jq<\/code> to print the city, region and country. Below the original script you&#039;ll find a line-by-line explanation, fixes for its weak spots, a hardened version that you can run, and ideas for extending the exercise.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Write a Shell Bash Script for Get location of an IP address.<\/h2>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<script src=\"https:\/\/gist.github.com\/devops-school\/02fa98c5dfc21e333bd9956138aa0a1b.js\"><\/script>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">How the script above works<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The script is short, but it covers several core shell scripting patterns: checking dependencies, validating arguments, calling a REST API and parsing JSON. Here is what each part does.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Line or block<\/th><th>Purpose<\/th><\/tr><\/thead><tbody><tr><td><code>#!\/usr\/bin\/env bash<\/code><\/td><td>Finds <code>bash<\/code> on the user&#039;s <code>PATH<\/code>, so the script also works where Bash is not installed at <code>\/bin\/bash<\/code>.<\/td><\/tr><tr><td><code>command -v jq<\/code><\/td><td>Prints the path of <code>jq<\/code> if it is installed. <code>[ -x ... ]<\/code> checks that the path is executable, and the script exits if it isn&#039;t.<\/td><\/tr><tr><td><code>[[ $# -ne 1 ]]<\/code><\/td><td><code>$#<\/code> is the number of arguments. The script needs exactly one: the IP address.<\/td><\/tr><tr><td><code>curl $link -s<\/code><\/td><td>Sends a GET request to <code>http:\/\/ip-api.com\/json\/&lt;ip&gt;<\/code>. <code>-s<\/code> hides the progress meter.<\/td><\/tr><tr><td><code>jq &#039;.status&#039; -r<\/code><\/td><td>Reads the <code>status<\/code> field. <code>-r<\/code> prints raw strings without the JSON quotes.<\/td><\/tr><tr><td><code>if [[ $status == &quot;success&quot; ]]<\/code><\/td><td>ip-api.com returns <code>&quot;status&quot;:&quot;success&quot;<\/code> or <code>&quot;status&quot;:&quot;fail&quot;<\/code> in the response body.<\/td><\/tr><tr><td><code>jq &#039;.city&#039;<\/code>, <code>.regionName<\/code>, <code>.country<\/code><\/td><td>Pull out the three location fields and print them on one line.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">A successful response from ip-api.com is a flat JSON object. Besides the fields the script uses, it includes <code>countryCode<\/code>, <code>region<\/code>, <code>zip<\/code>, <code>lat<\/code>, <code>lon<\/code>, <code>timezone<\/code>, <code>isp<\/code>, <code>org<\/code>, <code>as<\/code> and <code>query<\/code> (the address that was looked up).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites and running the script<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You need Bash, <code>curl<\/code>, <code>jq<\/code> and outbound HTTP access to ip-api.com. Install the tools with your package manager:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-comment\"># Debian \/ Ubuntu<\/span>\nsudo apt-get install -y curl jq\n\n<span class=\"hljs-comment\"># RHEL \/ Rocky \/ Fedora<\/span>\nsudo dnf install -y curl jq\n\n<span class=\"hljs-comment\"># macOS (Homebrew)<\/span>\nbrew install jq<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<ol class=\"wp-block-list\">\n<li>Save the gist as <code>WhereIP.sh<\/code>.<\/li>\n\n\n<li>Make it executable: <code>chmod +x WhereIP.sh<\/code>.<\/li>\n\n\n<li>Run it with one IP address: <code>.\/WhereIP.sh 8.8.8.8<\/code>.<\/li>\n\n\n<li>Check the output. It should look similar to <code>Ashburn, Virginia in United States.<\/code> The exact location depends on the provider&#039;s current data.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> The error message in the original points to the old jq website. The jq project has since moved to the <code>jqlang<\/code> organisation on GitHub. Installing jq from your OS package manager is the simplest option.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Problems in the original script<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The script works for the happy path, but it has several issues that matter once you use it in real automation:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Silent failure.<\/strong> If the lookup fails, for example for a private address like <code>192.168.1.10<\/code>, the script prints nothing and exits with status 0. The API&#039;s <code>message<\/code> field, which explains the failure, is never shown.<\/li>\n\n\n<li><strong>Unquoted variables.<\/strong> <code>echo $data<\/code> and <code>curl $link<\/code> are subject to word splitting and glob expansion. Always quote expansions: <code>&quot;$data&quot;<\/code>.<\/li>\n\n\n<li><strong>No input validation.<\/strong> The argument goes straight into the URL, so input such as <code>1.1.1.1?fields=...<\/code> changes the request. Allow only characters that are valid in IPs and hostnames.<\/li>\n\n\n<li><strong>HTTP errors are hidden.<\/strong> <code>curl -s<\/code> alone hides network errors and still returns success on HTTP errors such as <code>429 Too Many Requests<\/code>. Use <code>-sS --fail<\/code> together with a timeout.<\/li>\n\n\n<li><strong><code>curl<\/code> is not checked.<\/strong> Only <code>jq<\/code> is tested, but the script needs both tools.<\/li>\n\n\n<li><strong>Errors go to stdout.<\/strong> Error and usage messages should go to stderr (<code>&gt;&amp;2<\/code>), so they don&#039;t mix with real output in pipelines.<\/li>\n\n\n<li><strong>Inefficient parsing.<\/strong> <code>jq<\/code> runs three times on the same data. One <code>jq<\/code> call with string interpolation is enough.<\/li>\n\n\n<li><strong>Typo.<\/strong> The comment <code>slient<\/code> should read <code>silent<\/code>.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Improved version of the script<\/h2>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-comment\">#!\/usr\/bin\/env bash<\/span>\n<span class=\"hljs-comment\"># whereip.sh - print the approximate location of an IP address or hostname<\/span>\n<span class=\"hljs-comment\"># Usage: .\/whereip.sh 8.8.8.8<\/span>\nset -euo pipefail\n\nAPI=<span class=\"hljs-string\">\"http:\/\/ip-api.com\/json\"<\/span>\nFIELDS=<span class=\"hljs-string\">\"status,message,query,city,regionName,country,isp\"<\/span>\n\n<span class=\"hljs-keyword\">die<\/span>() { <span class=\"hljs-keyword\">echo<\/span> <span class=\"hljs-string\">\"Error: $*\"<\/span> &gt;&amp;<span class=\"hljs-number\">2<\/span>; <span class=\"hljs-keyword\">exit<\/span> <span class=\"hljs-number\">1<\/span>; }\n\n<span class=\"hljs-keyword\">for<\/span> cmd in curl jq; <span class=\"hljs-keyword\">do<\/span>\n  command -v <span class=\"hljs-string\">\"$cmd\"<\/span> &gt;\/dev\/<span class=\"hljs-keyword\">null<\/span> <span class=\"hljs-number\">2<\/span>&gt;&amp;<span class=\"hljs-number\">1<\/span> || <span class=\"hljs-keyword\">die<\/span> <span class=\"hljs-string\">\"$cmd is not installed.\"<\/span>\ndone\n\n<span class=\"hljs-keyword\">if<\/span> &#91;&#91; $<span class=\"hljs-comment\"># -ne 1 ]]; then<\/span>\n  <span class=\"hljs-keyword\">echo<\/span> <span class=\"hljs-string\">\"Usage: $(basename \"<\/span>$<span class=\"hljs-number\">0<\/span><span class=\"hljs-string\">\") &lt;ip-address|hostname&gt;\"<\/span> &gt;&amp;<span class=\"hljs-number\">2<\/span>\n  <span class=\"hljs-keyword\">exit<\/span> <span class=\"hljs-number\">2<\/span>\nfi\n\ntarget=$<span class=\"hljs-number\">1<\/span>\n\n<span class=\"hljs-comment\"># Only allow characters valid in IPv4, IPv6 and hostnames<\/span>\n&#91;&#91; $target =~ ^&#91;A-Za-z0<span class=\"hljs-number\">-9.<\/span>:-]+$ ]] || <span class=\"hljs-keyword\">die<\/span> <span class=\"hljs-string\">\"invalid input: $target\"<\/span>\n\ndata=$(curl -sS --fail --max-time <span class=\"hljs-number\">10<\/span> <span class=\"hljs-string\">\"${API}\/${target}?fields=${FIELDS}\"<\/span>) \\\n  || <span class=\"hljs-keyword\">die<\/span> <span class=\"hljs-string\">\"request to ip-api.com failed (network error or rate limit)\"<\/span>\n\nstatus=$(jq -r <span class=\"hljs-string\">'.status'<\/span> &lt;&lt;&lt;<span class=\"hljs-string\">\"$data\"<\/span> <span class=\"hljs-number\">2<\/span>&gt;\/dev\/<span class=\"hljs-keyword\">null<\/span>) \\\n  || <span class=\"hljs-keyword\">die<\/span> <span class=\"hljs-string\">\"unexpected response: $data\"<\/span>\n\n<span class=\"hljs-keyword\">if<\/span> &#91;&#91; $status == <span class=\"hljs-string\">\"success\"<\/span> ]]; then\n  jq -r <span class=\"hljs-string\">'\"\\(.query): \\(.city), \\(.regionName) in \\(.country) (ISP: \\(.isp))\"'<\/span> &lt;&lt;&lt;<span class=\"hljs-string\">\"$data\"<\/span>\n<span class=\"hljs-keyword\">else<\/span>\n  <span class=\"hljs-keyword\">die<\/span> <span class=\"hljs-string\">\"lookup failed for $target: $(jq -r '.message \/\/ \"<\/span>unknown error<span class=\"hljs-string\">\"' &lt;&lt;&lt;\"<\/span>$data<span class=\"hljs-string\">\")\"<\/span>\nfi<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<ul class=\"wp-block-list\">\n<li><code>set -euo pipefail<\/code> stops the script when a command fails, when it uses an undefined variable, or when any command in a pipeline fails.<\/li>\n\n\n<li><code>die()<\/code> sends errors to stderr and exits with a non-zero code, so callers and CI jobs can detect a failure.<\/li>\n\n\n<li>The <code>fields<\/code> query parameter asks the API for only the fields you need, which keeps the response small.<\/li>\n\n\n<li><code>--fail<\/code> makes <code>curl<\/code> exit non-zero on HTTP 4xx\/5xx responses, and <code>--max-time 10<\/code> stops the script from hanging on a slow network.<\/li>\n\n\n<li><code>&lt;&lt;&lt;&quot;$data&quot;<\/code> (a here-string) passes the JSON to <code>jq<\/code> without an extra <code>echo<\/code> and keeps it quoted.<\/li>\n\n\n<li><code>jq<\/code> string interpolation (<code>\\(.field)<\/code>) formats the whole output line in a single call.<\/li>\n\n\n<li><code>.message \/\/ &quot;unknown error&quot;<\/code> uses jq&#039;s alternative operator in case <code>message<\/code> is missing.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Testing success and failure cases<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Test more than the happy path. These are the results to expect from the improved script:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Command<\/th><th>Expected result<\/th><th>Exit code<\/th><\/tr><\/thead><tbody><tr><td><code>.\/whereip.sh 8.8.8.8<\/code><\/td><td><code>8.8.8.8: &lt;city&gt;, &lt;region&gt; in &lt;country&gt; (ISP: ...)<\/code><\/td><td>0<\/td><\/tr><tr><td><code>.\/whereip.sh 192.168.1.10<\/code><\/td><td><code>Error: lookup failed for 192.168.1.10: private range<\/code><\/td><td>1<\/td><\/tr><tr><td><code>.\/whereip.sh 127.0.0.1<\/code><\/td><td><code>Error: lookup failed ...: reserved range<\/code><\/td><td>1<\/td><\/tr><tr><td><code>.\/whereip.sh not-a-host<\/code><\/td><td><code>Error: lookup failed ...: invalid query<\/code><\/td><td>1<\/td><\/tr><tr><td><code>.\/whereip.sh &#039;a b&#039;<\/code><\/td><td><code>Error: invalid input: a b<\/code><\/td><td>1<\/td><\/tr><tr><td><code>.\/whereip.sh<\/code><\/td><td>Usage message on stderr<\/td><td>2<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Use <code>echo $?<\/code> right after each run to check the exit code. Scripts that return correct exit codes can be chained safely with <code>&amp;&amp;<\/code> and <code>||<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Rate limits, HTTPS and privacy<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The free ip-api.com endpoint is limited to about 45 requests per minute from each client IP. Above that limit it returns HTTP 429. The <code>X-Rl<\/code> response header shows how many requests remain, and <code>X-Ttl<\/code> shows the seconds until the limit resets.<\/li>\n\n\n<li>The free tier supports only plain HTTP and is meant for non-commercial use. HTTPS and commercial use require a paid key. Check the provider&#039;s current terms before you use it at work.<\/li>\n\n\n<li>Every address you look up is sent to a third party over an unencrypted connection. Don&#039;t send internal or customer IP data without approval.<\/li>\n\n\n<li>IP geolocation is approximate. VPNs, proxies, mobile carriers and cloud providers often resolve to a data centre or a regional hub, not to the user&#039;s real location.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> Run <code>curl -sI http:\/\/ip-api.com\/json\/8.8.8.8<\/code> to see the rate-limit headers without the response body.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Extend the exercise<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Once the basic script works, try these extensions. The first one looks up a list of IPs from a file and slows down to stay within the free rate limit:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-comment\">#!\/usr\/bin\/env bash<\/span>\n<span class=\"hljs-comment\"># bulk-whereip.sh - look up every IP listed in a file (one per line)<\/span>\nset -uo pipefail\n\nfile=${<span class=\"hljs-number\">1<\/span>:?Usage: $<span class=\"hljs-number\">0<\/span> &lt;file-with-ips&gt;}\n\n<span class=\"hljs-keyword\">while<\/span> IFS= read -r ip; <span class=\"hljs-keyword\">do<\/span>\n  &#91;&#91; -z $ip || $ip == \\<span class=\"hljs-comment\">#* ]] &amp;&amp; continue   # skip blank lines and comments<\/span>\n  .\/whereip.sh <span class=\"hljs-string\">\"$ip\"<\/span> || <span class=\"hljs-keyword\">true<\/span>                 <span class=\"hljs-comment\"># keep going if one lookup fails<\/span>\n  sleep <span class=\"hljs-number\">1.5<\/span>                                  <span class=\"hljs-comment\"># ~40 requests\/minute<\/span>\ndone &lt; <span class=\"hljs-string\">\"$file\"<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<ul class=\"wp-block-list\">\n<li>If no argument is given, look up the caller&#039;s own public IP. Requesting <code>http:\/\/ip-api.com\/json\/<\/code> with no address returns details for your own IP.<\/li>\n\n\n<li>Add a <code>-j<\/code> flag that prints the raw JSON for use in other tools.<\/li>\n\n\n<li>Extract the source IPs from a web server access log with <code>awk &#039;{print $1}&#039; access.log | sort -u<\/code> and pass them to the bulk script.<\/li>\n\n\n<li>Cache results in a local file so the same IP is not looked up twice.<\/li>\n\n\n<li>Validate IPv4 addresses strictly, checking that each octet is between 0 and 255, before calling the API.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">For more practice, try the other exercises in this series, such as <a href=\"https:\/\/www.devopsschool.com\/blog\/test-your-shell-scripting-skills-program-4\/\">Assignment &amp; Exercise \u2013 3<\/a> and <a href=\"https:\/\/www.devopsschool.com\/blog\/test-your-shell-scripting-skills-program-12\/\">Assignment &amp; Exercise \u2013 7<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">How do I find the location of an IP address from the Linux command line?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Query a geolocation API with curl and parse the result with jq, for example <code>curl -s http:\/\/ip-api.com\/json\/8.8.8.8 | jq -r &#039;.city, .country&#039;<\/code>. The script on this page wraps that command in validation and error handling.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why does the script print nothing for 192.168.x.x addresses?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Private and reserved addresses have no public geolocation, so the API returns <code>status: fail<\/code> with a message such as <code>private range<\/code>. The original script ignores failures. The improved version prints the message and exits with code 1.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Is ip-api.com free to use in scripts?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Its free endpoint is meant for non-commercial use, is limited to roughly 45 requests per minute and works only over plain HTTP. HTTPS and commercial use require a paid plan, so check the provider&#039;s current terms.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why should variables like $data be quoted in Bash?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Unquoted expansions are split on whitespace and expanded as glob patterns, which can corrupt data or change how arguments are passed. Quoting them (<code>&quot;$data&quot;<\/code>) keeps the value exactly as it is.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How accurate is IP geolocation?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">It is usually reliable at country level and only approximate at city level. VPNs, proxies, mobile networks and cloud hosting often show a provider&#039;s data-centre location instead of the user&#039;s real location.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related tutorials<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/category\/programming\/shell-script\/\">More Shell Scripting tutorials<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/what-is-bash-and-use-cases-of-bash\/\">What is Bash and use cases of Bash?<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/top-50-interview-question-and-answers-of-bash-scripting\/\">Shell Bash Scripting Interview Questions and Answer \u2013 Part 4<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/test-your-shell-scripting-skills-program-4\/\">Shell Bash Scripting: Assignment &amp; Excercise \u2013 3<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>This exercise builds a Bash script that takes an IP address, sends it to the free ip-api.com geolocation API with curl, and uses jq to print the&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[454],"tags":[137,26301],"class_list":["post-32386","post","type-post","status-publish","format-standard","hentry","category-shell-script","tag-bash","tag-ip-addressing"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/32386","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=32386"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/32386\/revisions"}],"predecessor-version":[{"id":80460,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/32386\/revisions\/80460"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=32386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=32386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=32386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}