|
HTTP GET Request:
GET GetImagesJSON.aspx?Callback=string&Key=string&Keywords=string &PageNumber=string&NumberPerPage=string&PagesAhead=string&Type=string
HTTP GET Request without API Key:
GET GetImagesJSON.aspx?Callback=string&Keywords=string&NumberPerPage=string&Type=string
Parameters:
Key - API Key.
Optional. Max 100 images will be returned if Empty.
We issue you an API Key per your request. When you have one - you will be able to navigate through pages and use our e-Commerce API.
You can use this Web Service without the API Key. A maximum of 100 images will be returned per your Search request.
Keywords - HTML encoded search string.
Optional. Most recent images will be returned if Empty.
PageNumber - your navigation page number.
Optional. Default value=1 will be set if Empty.
NumberPerPage - number of images on your page.
Optional. Default value=5 will be set if Empty.
PagesAhead - number of pages ahead if you use numeric navigation.
Optional. Default value=0 will be set if Empty.
If you use numeric type of navigation like:
Please set PagesAhead=number of available pages ahead.
In the example above you need to know only if the maximum 5 pages ahead are available.
If you send us this information - the search will be performed faster.
Set PagesAhead=-1 if you use a different type of navigation and need to return a total number of images.
Type - has 2 options. "IMAGE" - search for photos and illustrations, "CLIPART" - search for illustrations only.
Optional. "IMAGE" option will be set if Empty.
Callback - Javascript callback function name
JSON Response:
Error - check it first, and if empty - read the rest of the nodes
TotalImages - total available images will be returned if you set PagesAhead=0, 0 will be returned if you use a numeric type of navigation.
PageId - current page id
PagesAhead - number of available pages ahead
ImageId - ImageId in featurePics collection for further references
ImageFile - URL of image thumbnail
ImageName - Image name
ImagePage - URL of the Image page at FeaturePics.com
Width - thumbnail width
Height - thumbnail height
Example 1:
5 (by default) illustrations that match "cartoon girl" will be returned in JSON format and shown
by ShowImages function.
The call you need to make:
[hostname]/GetImagesJSON.aspx?Callback=ShowImages&Keywords=cartoon%20girl&Type=CLIPART
The results on your page will appear like this:
Example 2:
4 images matching "Dolphins" will be returned in JSON format and shown
by ShowImages function.
The call you need to make:
[hostname]/GetImagesJSON.aspx?Callback=ShowImages&Keywords=Dolphins&NumberPerPage=4
The results on your page will appear like this:
Example 3:
When you request an API key from us, you will be able to implement navigation on your site.
[hostname]/GetImagesJSON.aspx?Callback=[Your function]&Key=[YourKey]&Keywords=cartoon%20girl&PageNumber=11&PagesAhead=6&Format=XML&Type=CLIPART
JSON format example:
|