title: I seek clarifications about working with APIs
body: <p>The following code is from the <em>Python Crash Course</em> book. <strong>Chapter 17</strong>: <em>Working with APIs</em>.<br />
  Brief description: in the code below the Author requests data by using API CALL (Github's API, to be exact), sets the URL as a variable, sets a header, as well, as a variable, and more. This is all in a simple way to apply clickable/easy-to-understand to newcomers (to code).</p>
  <pre><code>import requests
  
  # Make an API call and store the response
  url = 'https://api.github.com/search/repositories?q=language:python&amp;sort=starts'
  headers = {'accept': 'application/vnd.github.v3+json'} # What does this do?
  r = requests.get(url, headers=headers) 
  print(f&quot;status code {r.status_code}&quot;)
  
  ...extra code snipped...
  </code></pre>
  <p>Is the headers-variable always necessary? matter of fact, why having header-variable in the first place? I'll cite the explanation from the book below as a quote.</p>
  <blockquote>
  <p>GitHub is currently on the third version of its API, so we define
  headers for the API call 3[refers to headers-variable] that ask explicitly to use this version of
  the API.</p>
  </blockquote>