ImageCollect Services
Authentication
Pictures
Events
Celebrities
Sales
Search events
/events/search.xml
Getting the list of events.
Arguments
- Q (Optional) - The search query
- year (Optional) - The year of event
- month (Optional) - The month of event
- day (Optional) - The day of event
- Page (Optional) - The page of results to return. If this argument is omitted, it defaults to 1.
- PerPage (Optional) - Number of items to return per page. If this argument is omitted, it defaults to 10.
The maximum allowed value is 50.
Example query
- GET /events/search.xml?Q=event&year=2011&month=1&AccessKeyId=0PN5X16HBGZHT7JJ3X82&Expires=1238598470&Signature=SF7y/ZXX8aSX5KnRjKnuOlP7S2k=
- Host: api.imagecollect.com
Example response
<?xml version="1.0" encoding="UTF-8"?> <response> <result name="response" numFound="52853" pageNumber="1693" perPage="30" onPage="30" pageCount="1762"/> <lst name="category"> <doc> <int name="id">0000069</int> <int name="title">2011 G'Day USA Australia Week LA Black Tie Gala</int> <str name="city"><![CDATA[Los Angeles]]></str> <str name="state"><![CDATA[CA]]></str> <str name="country"><![CDATA[USA]]></str> <int name="event_created">2011-01-23</int> <str name="venue"><![CDATA[]]></str> <str name="url"><![CDATA[http://imagecollect.com/events/2011-g-day-usa-australia-week-la-black-tie-gala-photos-0000069]]></str> <str name="thumbnails"><![CDATA[http://static1.imagecollect.com/thumbnail/118/1d7cbd693677b5b]]></str> <str name="preview"><![CDATA[http://static1.imagecollect.com/preview/118/1d7cbd693677b5b]]></str> </doc> <doc> <int name="id">0000072</int> <int name="title">2011 G'Day USA Australia Week LA Black Tie Gala</int> <str name="city"><![CDATA[Los Angeles]]></str> <str name="state"><![CDATA[CA]]></str> <str name="country"><![CDATA[USA]]></str> <int name="event_created">2011-01-23</int> <str name="venue"><![CDATA[]]></str> <str name="url"><![CDATA[http://imagecollect.com/events/2011-g-day-usa-australia-week-la-black-tie-gala-photos-0000072]]></str> <str name="thumbnails"><![CDATA[http://static1.imagecollect.com/thumbnail/118/59debdbfa54093e]]></str> <str name="preview"><![CDATA[http://static1.imagecollect.com/preview/118/59debdbfa54093e]]></str> </doc> </lst> </response>
Error codes
- ValueError Error validating input parameters
- AuthenticationError Invalid AccessKeyID or invalid SecretAccessKey or Expired out of date
- NoSuchPage Invalid page number