title: Getting Request method 'GET' not supported - Python
body: <p>So I've been trying to request an API using the following endpoint: 
  <code>http://viatorapi.viator.com/service/search/products?destId=684&amp;apiKey=98765687*****</code></p>
  
  <p>Using the following python code: </p>
  
  <pre><code>import requests
  import json
  
  resp_1 = requests.get("http://viatorapi.viator.com/service/search/products?destId=684&amp;apiKey=98765687*****")
  
  res = resp_1.json()
  
  print(res)
  </code></pre>
  
  <p>But I keep getting a <code>Request method 'GET' not supported</code> error even when I try the request directly from the browser.</p>
  
  <p>I've been looking at the documentation for a while now and it's says that It's supposed to be a POST request.</p>
  
  <p>Here: <a href="https://docs.viator.com/partner-api/affiliate/technical/#tag/Product-services/paths/~1search~1products/post" rel="nofollow noreferrer">https://docs.viator.com/partner-api/affiliate/technical/#tag/Product-services/paths/~1search~1products/post</a></p>
  
  <p>Any ideas on why this is happening and how to fix this?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Here's the new code I'm about to try:</p>
  
  <pre><code>import requests
  import json
  
  j="""{"destId": 684,"seoId": null,"catId": 3,"subCatId": 5318,"startDate": "2018-10-21","endDate": "2019-10-21","dealsOnly": false,"currencyCode": "EUR","topX": "1-3","sortOrder": "TOP_SELLERS"}"""
  
  resp_1 = requests.post("http://viatorapi.viator.com/service/search/products?apiKey=98765687*****", data=json.loads(j))
  
  res = resp_1.json()
  
  print(res)
  
  </code></pre>