title: Prometheus Query and API call
body: <p>I am able to search directly from Prometheus UI for a query and it works fine:</p>
  
  <p><code>K_MacInfo{macAddr="B0:11:12:FD:D1:A8"} offset 5m.</code></p>
  
  <p>However, when I tried running it directly in the server using a curl command, I am getting the syntax wrong and getting error message.</p>
  
  <pre><code>curl http://localhost:9090/api/v1/queryquery=K_MacInfo{macAddr="B0:11:12:FD:D1:A8"}
  </code></pre>
  
  <p>Also not sure how to add the offset part here. Could you guide me to understand what I am doing wrong here?</p>