Image Search - Web Service


Click here for a complete list of operations.

AdvancedSearch

Search the collection using the given advanced search query string and return the results complete with the metadata.

Test

The test form is only available for requests from the local machine.

SOAP

The following is a sample SOAP request and response. The placeholders shown need to be replaced with actual values.

POST /ImageSearch/2003/07/15/imagesearch.asmx HTTP/1.1
Host: webservices.indexstock.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://webservice.indexstock.com/imagesearch/2003/07/15/AdvancedSearch"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <AdvancedSearch xmlns="http://webservice.indexstock.com/imagesearch/2003/07/15/">
      <SearchSessionId>string</SearchSessionId>
      <SearchQueries>
        <ImageSearchQuery>
          <SearchQuery>string</SearchQuery>
          <Operator>OR or AND or AND_NOT</Operator>
        </ImageSearchQuery>
        <ImageSearchQuery>
          <SearchQuery>string</SearchQuery>
          <Operator>OR or AND or AND_NOT</Operator>
        </ImageSearchQuery>
      </SearchQueries>
      <RequestType>ADVANCED or FREETEXT or REFRESH or PAGENUMBER or NARROW or CURRENT</RequestType>
      <Filters>
        <ImageSearchFilter>
          <Field>RIGHTSMANAGED or ROYALTYFREE or HIRES or PREMIUM or EXCLUSIVE or PHOTOGRAPHY or ILLUSTRATED or COLOR or BLACKWHITE or PORTRAIT or LANDSCAPE or PANORAMIC or MODELRELEASE or PROPERTYRELEASE or SIMILAR</Field>
          <Operator>On or Off</Operator>
        </ImageSearchFilter>
        <ImageSearchFilter>
          <Field>RIGHTSMANAGED or ROYALTYFREE or HIRES or PREMIUM or EXCLUSIVE or PHOTOGRAPHY or ILLUSTRATED or COLOR or BLACKWHITE or PORTRAIT or LANDSCAPE or PANORAMIC or MODELRELEASE or PROPERTYRELEASE or SIMILAR</Field>
          <Operator>On or Off</Operator>
        </ImageSearchFilter>
      </Filters>
      <PageNumber>int</PageNumber>
      <PageSize>int</PageSize>
      <ImageSize>No_Image or Thumb_Link or EnlargedThumb_Link or CompSize_Link or Thumb_Binary</ImageSize>
      <SelectedOutputFields>
        <string>string</string>
        <string>string</string>
      </SelectedOutputFields>
      <UserID>string</UserID>
      <HashedPassword>string</HashedPassword>
      <PRCode>string</PRCode>
      <Timestamp>dateTime</Timestamp>
    </AdvancedSearch>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <AdvancedSearchResponse xmlns="http://webservice.indexstock.com/imagesearch/2003/07/15/">
      <AdvancedSearchResult>
        <SearchID>string</SearchID>
        <SearchSessionID>string</SearchSessionID>
        <SearchQuery>string</SearchQuery>
        <PageNumber>int</PageNumber>
        <PageSize>int</PageSize>
        <ResultCount>int</ResultCount>
        <TotalResultCount>long</TotalResultCount>
        <LastPage>boolean</LastPage>
        <Results>string</Results>
      </AdvancedSearchResult>
    </AdvancedSearchResponse>
  </soap:Body>
</soap:Envelope>