|
HTTP GET Request:
GET GetImages.asmx/SearchResults?Key=string&Keywords=string&PageNumber=string &NumberPerPage=string&PagesAhead=string&Type=string
GET GetImages.asmx/SearchResults1?Keywords=string
GET GetImages.asmx/SearchResults2?Keywords=string&NumberPerPage=string
GET GetImages.asmx/SearchResults3?Keywords=string&NumberPerPage=string&Type=string
Parameters:
Key - API Key.
Optional. Max 100 images will be returned if Empty.
FeaturePics issues 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 max 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.
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 XML format
[hostname]/GetImages.asmx/SearchResults3?Keywords=cartoon%20girl&NumberPerPage=5&Type=CLIPART
4 images matching "Dolphins" will be returned in XML format
[hostname]/GetImages.asmx/SearchResults3?Keywords=Dolphins&NumberPerPage=4&Type=Image
Example 3:
When you request an API key from us, you will be able to implement navigation on your site.
[hostname]/GetImages.asmx/SearchResults?Key=[YourKey]&Keywords=cartoon%20girl&PageNumber=11&PagesAhead=6&Type=CLIPART
C# Code Example:
|