title: Woocommerce cURL api to get json in php
body: <p>I want to use the Woocommerce REST API to get json data using PHP. How will i get that?</p>
  
  <p>The cURL code is : </p>
  
  <pre><code>curl https://example.com/wc-api/v3/products \
  -u consumer_key:consumer_secret
  </code></pre>
  
  <p>Node.js returns json but php api isn't? Is there php api to return json data?</p>
  
  <p><a href="http://woothemes.github.io/woocommerce-rest-api-docs/?shell#view-list-of-products" rel="nofollow">Find documentation for Woocommerce API here</a></p>