api.service.search.doMarketSearch

api.service.search::doMarketSearch

Searches EDS market sectors and returns a list of available market sectors.

The values returned from this call can then be passed to the doEmailSearch method to constrain the results by market sector.

Note: There are currently 136 market sectors, but this number will be reduced to ~100 market sectors as we consolidate and retire old market sectors.

Service

api.service.search

Arguments

api-key (Required) : Your API application key.

term (Optional): Constrains the result set to those matching the specified text. Wildcards are supported.

Example Response

Request:
http://api.emaildatasource.com/service/2.0.0/rest/api.service.search?method=doMarketSearch

  1. <?xml version="1.0" encoding="utf-8"?>  
  2. <response status="success">  
  3. <format>rest-xml</format>  
  4. <version>2.0</version>  
  5. <num-results>136</num-results>  
  6. <list-values>  
  7. <list-value>Adoption*</list-value>  
  8. <list-value>Automobile</list-value>  
  9. </list-values>  
  10. </response>  
<?xml version="1.0" encoding="utf-8"?>
<response status="success">
<format>rest-xml</format>
<version>2.0</version>
<num-results>136</num-results>
<list-values>
<list-value>Adoption*</list-value>
<list-value>Adult</list-value>
</list-values>
</response>

 

Error Codes

440: Too Many Results: The search returned too many results

441: Invalid Search Parameter: One of the specified search parameters was invalid

442: Invalid Search Query: The search query (term) is not valid