title: How to send GET Request with path parameters in Python
body: <p>I'm having trouble with a GET request from the EatStreet Public API using Python. I've had success with other endpoints on the site, but I'm unsure of how to deal with path parameters in this instance. </p>
  
  <p>This curl request returns 200:</p>
  
  <p>curl -X GET \
   -H 'X-Access-Token: <strong>API_EXPLORER_AUTH_KEY</strong>' \
   '<a href="https://eatstreet.com/publicapi/v1/restaurant/90fd4587554469b1f15b4f2e73e761809f4b4bcca52eedca/menu?includeCustomizations=false" rel="nofollow noreferrer">https://eatstreet.com/publicapi/v1/restaurant/90fd4587554469b1f15b4f2e73e761809f4b4bcca52eedca/menu?includeCustomizations=false</a>'</p>
  
  <p>This is what I have currently, but I keep getting error code 404. I've tried multiple other ways messing around with the parameters and headers but nothing seems to work. </p>
  
  <pre><code>api_url = 'https://eatstreet.com/publicapi/v1/restaurant/
  90fd4587554469b1f15b4f2e73e761809f4b4bcca52eedca/menu'
  headers = {'X-Access-Token': apiKey}
  
  def get_restaurant_details():
  
          response = requests.request("GET", api_url, headers=headers)
          print(response.status_code)
  
          if response.status_code == 200:
                  return json.loads(response.content.decode('utf-8'))
          else:
                  return None
  </code></pre>
  
  <p>Here is a link to the EatStreet Public API: 
  <a href="https://developers.eatstreet.com/" rel="nofollow noreferrer">https://developers.eatstreet.com/</a></p>