title: How to send rest API (Google Vision's API) request with python?
body: <p>I guess my question is relatively simple and naive, but I'm new to use REST APIs so I would be grateful for any help or hint.</p>
  
  <p>I'm trying to send a request with urllib (or another Python's library that I no need to install).
  Based on their <a href="https://cloud.google.com/vision/docs/auth" rel="nofollow noreferrer">guide</a>, The format is:</p>
  
  <pre><code>POST https://vision.googleapis.com/v1/images:annotate?key=YOUR_API_KEY
  </code></pre>
  
  <p>and the <a href="https://cloud.google.com/vision/docs/request#json_request_format" rel="nofollow noreferrer">JSON request format</a> is:</p>
  
  <pre><code>{
    "requests":[
      {
        "image":{
          "content":"/9j/7QBEUGhvdG9...image contents...eYxxxzj/Coa6Bax//Z"
        },
        "features":[
          {
            "type":"LABEL_DETECTION",
            "maxResults":1
          }
        ]
      }
    ]
  }
  </code></pre>
  
  <p>When I try to send the following text (just for test) in the URL line in my browser:</p>
  
  <pre><code>https://vision.googleapis.com/v1/images:{
    "requests":[
      {
        "image":{
          "content":"/9j/7QBEUGhvdG9eYxxxzj/Coa6Bax//Z"
        },
        "features":[
          {
            "type":"LABEL_DETECTION",
            "maxResults":1
          }
        ]
      }
    ]
  }?key=my_api_key
  </code></pre>
  
  <p>I get unfortunately a 404 error.</p>
  
  <p>What should I do? Should I use any library in order to generate the request? Or should I to place the JSON request in another place in the URL?</p>