title: How to integrate weather api in wordpress
body: <p>Please anyone help me how to integrate a api in wordpress api is in json formate</p>
  
  <p><a href="https://samples.openweathermap.org/data/2.5/weather?q=London,uk&amp;appid=b6907d289e10d714a6e88b30761fae22" rel="nofollow noreferrer">https://samples.openweathermap.org/data/2.5/weather?q=London,uk&amp;appid=b6907d289e10d714a6e88b30761fae22</a></p>
  
  <p>Iam using this code but im not able to display temprature </p>
  
  <pre><code> &lt;?php 
  
   $url = 'https://samples.openweathermap.org/data/2.5/weather?q=London,uk&amp;appid=b6907d289e10d714a6e88b30761fae22';
  
  $response = wp_remote_get( $url  );
  if( is_array($response) ) {
    $header = $response['headers']; // array of http header lines
    $body = $response['body']; // use the content
  
    print_r(($body));
  
  }
   ?&gt;
  </code></pre>