Mediawiki parse json data on page in php
===

I just started using Mediawiki. I'm trying to parse json data from a wiki article in a page.


    $jsonurl = "http://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvlimit=1&rvprop=content&format=json&titles=Snowy_Owl";
    $json = file_get_contents($jsonurl,0,null,null);
    
    var_dump(json_decode($json));


I get

 

>    Message:
> file_get_contents(http://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvlimit=1&rvprop=content&format=json&titles=Snowy_Owl)
> [function.file-get-contents]: failed to open stream: HTTP request
> failed! HTTP/1.0 403 Forbidden


I'm not sure why I get this.