phpでpixtabay apiで遊んでみる その1

<?php

$apikey = "hoge";
$query = "apple+watch";
$type = "photo"; 
//  "all", "photo", "illustration", "vector" 
$cate = "fashion";
// fashion, nature, backgrounds, science, education, people, feelings, religion, health, places, animals, industry, food, computer, sports, transportation, travel, buildings, business, music
$orientation = "";
//"all", "horizontal", "vertical" 
$per_page = "";
//Accepted values: 3 - 200 
$order = "";
//"popular", "latest" 
$per_page = "";
//Accepted values: 3 - 200 

$baseurl = "https://pixabay.com/api/?key=". $apikey."&q="."&image_type=".$type."&category=".$cate."";

$json = file_get_contents($baseurl);
$obj = json_decode($json);

print_r('<pre>');
var_dump($obj);
print_r('</pre>');

“webformatURL”だと、600x420pxですね。