title: Azure App Insights API to get traces using Query in c#
body: <p>I'm trying to use Azure App Insights API using <a href="https://dev.applicationinsights.io/" rel="nofollow noreferrer">https://dev.applicationinsights.io/</a>
  Got the metrics data using this &quot;https://api.applicationinsights.io/v1/apps/889f31e2-8281-4d8b-bb80-53a9f83d4a09/metrics/requests/duration?interval=PT1H&quot;, Passed the api key through headers.
  But not able to get the Query:
  Tried this:
  <a href="https://api.applicationinsights.io/v1/apps/889f31e2-8281-4d8b-bb80-53a9f83d4a09/Query/traces" rel="nofollow noreferrer">https://api.applicationinsights.io/v1/apps/889f31e2-8281-4d8b-bb80-53a9f83d4a09/Query/traces</a> | where operation_Id contains 62c5a318-c2cf-434e-a102-0e6efc0a84e7?interval=P7D</p>
  <p>Getting Status Code as NotFound.</p>
  <p>Any suggestions, Am I missing something?</p>