Get list of companies/contacts that match criteria

post

/api/v4/search

This shows search results for companies/contacts that only contain those attributes for which a value exists.

Versions Supported:

v4
Full List of Company Attributes: Company Attributes
Full List of Contact Attributes: Contact Attributes

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json; charset=UTF-8 ()
The SearchRequest entity holding the search request

Example XML:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<searchRequest>
	<facetLimit>10</facetLimit>
	<filterFields>
		<name>info.organization_name</name>
		<operator>EQ</operator>
		<value>oracle</value>
	</filterFields>
	<filterFields>
		<name>location.country</name>
		<operator>EQ</operator>
		<value>USA</value>
	</filterFields>
	<filterFields>
		<name>company.ees_total</name>
		<operator>GT</operator>
		<value>100</value>
	</filterFields>
	<filterFields>
		<name>company.sales_volume</name>
		<operator>LTE</operator>
		<value>150000000</value>
	</filterFields>
	<limit>10</limit>
	<objectType>Companies</objectType>
	<offset>0</offset>
	<orderByDirection>DESC</orderByDirection>
	<rangeFilters>
		<name>company.ees_total</name>
		<range>
			<from>2</from>
			<to>1000000</to>
		</range>
	</rangeFilters>
	<defaultFilters>
		<filterName>Defunct</filterName>		
	</defaultFilters>
	<returnAll>false</returnAll>
	<returnFacets>location</returnFacets>
	<returnFacets>company.maj_ind_cg</returnFacets>
	<returnFields>location.country</returnFields>
	<returnFields>location.city</returnFields>
	<returnFields>company.maj_ind_cg</returnFields>
</searchRequest>

Example JSON:

{
	"facetLimit":"10",
	"filterFields":[{
		"name":"info.organization_name",
		"operator":"EQ",
		"value":"oracle"
		},
		{
		"name":"location.country",
		"operator":"EQ",
		"value":"USA"
		},
		{
	 	"name":"company.ees_total",
		"operator":"GT",
	 	"value":"100"           
	},
	{
	 	"name":"company.sales_volume",
		"operator":"LTE",
	 	"value":"150000000"           
	}],
	"limit":"10",
	"objectType":"Companies",
	"offset":"0",
	"orderByDirection":"DESC",
	"rangeFilters":{
		"name":"company.ees_total",
		"range":{
			"from":"2",
			"to":"1000000"
			}
	},
 		"defaultFilters" : [{
 		    "filterName" : "Defunct"
 		 }],
	"returnAll":"false",
	"returnFacets":["location","company.maj_ind_cg"],
	"returnFields":["location.country","location.city","company.maj_ind_cg"]
}
 
Root Schema : schema
Type: object
Show Source
Nested Schema : AdvancedSearchFilters
Type: object
Show Source
Nested Schema : defaultFilters
Type: array
Show Source
Nested Schema : filterFields
Type: array
Show Source
Nested Schema : RadialFilter
Type: object
Show Source
Nested Schema : rangeFilters
Type: array
Show Source
Nested Schema : returnFacetFields
Type: array
Show Source
Nested Schema : returnFacets
Type: array
Show Source
Nested Schema : returnFields
Type: array
Show Source
Nested Schema : selectedFacets
Type: array
Show Source
Nested Schema : advancedFilters
Type: array
Show Source
Nested Schema : AdvancedSearchFilterSet
Type: object
Show Source
Nested Schema : filterFields
Type: array
Show Source
Nested Schema : rangeFilters
Type: array
Show Source
Nested Schema : FilterInfo
Type: object
Show Source
Nested Schema : RangeFilterInfo
Type: object
Show Source
Nested Schema : Range
Type: object
Show Source
Nested Schema : FacetFieldInfo
Type: object
Show Source
Request Body - application/xml; charset=UTF-8 ()
The SearchRequest entity holding the search request

Example XML:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<searchRequest>
	<facetLimit>10</facetLimit>
	<filterFields>
		<name>info.organization_name</name>
		<operator>EQ</operator>
		<value>oracle</value>
	</filterFields>
	<filterFields>
		<name>location.country</name>
		<operator>EQ</operator>
		<value>USA</value>
	</filterFields>
	<filterFields>
		<name>company.ees_total</name>
		<operator>GT</operator>
		<value>100</value>
	</filterFields>
	<filterFields>
		<name>company.sales_volume</name>
		<operator>LTE</operator>
		<value>150000000</value>
	</filterFields>
	<limit>10</limit>
	<objectType>Companies</objectType>
	<offset>0</offset>
	<orderByDirection>DESC</orderByDirection>
	<rangeFilters>
		<name>company.ees_total</name>
		<range>
			<from>2</from>
			<to>1000000</to>
		</range>
	</rangeFilters>
	<defaultFilters>
		<filterName>Defunct</filterName>		
	</defaultFilters>
	<returnAll>false</returnAll>
	<returnFacets>location</returnFacets>
	<returnFacets>company.maj_ind_cg</returnFacets>
	<returnFields>location.country</returnFields>
	<returnFields>location.city</returnFields>
	<returnFields>company.maj_ind_cg</returnFields>
</searchRequest>

Example JSON:

{
	"facetLimit":"10",
	"filterFields":[{
		"name":"info.organization_name",
		"operator":"EQ",
		"value":"oracle"
		},
		{
		"name":"location.country",
		"operator":"EQ",
		"value":"USA"
		},
		{
	 	"name":"company.ees_total",
		"operator":"GT",
	 	"value":"100"           
	},
	{
	 	"name":"company.sales_volume",
		"operator":"LTE",
	 	"value":"150000000"           
	}],
	"limit":"10",
	"objectType":"Companies",
	"offset":"0",
	"orderByDirection":"DESC",
	"rangeFilters":{
		"name":"company.ees_total",
		"range":{
			"from":"2",
			"to":"1000000"
			}
	},
 		"defaultFilters" : [{
 		    "filterName" : "Defunct"
 		 }],
	"returnAll":"false",
	"returnFacets":["location","company.maj_ind_cg"],
	"returnFields":["location.country","location.city","company.maj_ind_cg"]
}
 
Root Schema : schema
Type: object
Show Source
Nested Schema : AdvancedSearchFilters
Type: object
Show Source
Nested Schema : defaultFilters
Type: array
Show Source
Nested Schema : filterFields
Type: array
Show Source
Nested Schema : RadialFilter
Type: object
Show Source
Nested Schema : rangeFilters
Type: array
Show Source
Nested Schema : returnFacetFields
Type: array
Show Source
Nested Schema : returnFacets
Type: array
Show Source
Nested Schema : returnFields
Type: array
Show Source
Nested Schema : selectedFacets
Type: array
Show Source
Nested Schema : advancedFilters
Type: array
Show Source
Nested Schema : AdvancedSearchFilterSet
Type: object
Show Source
Nested Schema : filterFields
Type: array
Show Source
Nested Schema : rangeFilters
Type: array
Show Source
Nested Schema : FilterInfo
Type: object
Show Source
Nested Schema : RangeFilterInfo
Type: object
Show Source
Nested Schema : Range
Type: object
Show Source
Nested Schema : FacetFieldInfo
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Success
Body ()
Root Schema : schema
Type: object
Show Source
Nested Schema : facets
Type: array
Show Source
Nested Schema : parties
Type: array
Show Source
Nested Schema : SearchRequest
Type: object
Show Source
Nested Schema : FacetInfo
Type: object
Show Source
Nested Schema : items
Type: object
Nested Schema : AdvancedSearchFilters
Type: object
Show Source
Nested Schema : defaultFilters
Type: array
Show Source
Nested Schema : filterFields
Type: array
Show Source
Nested Schema : RadialFilter
Type: object
Show Source
Nested Schema : rangeFilters
Type: array
Show Source
Nested Schema : returnFacetFields
Type: array
Show Source
Nested Schema : returnFacets
Type: array
Show Source
Nested Schema : returnFields
Type: array
Show Source
Nested Schema : selectedFacets
Type: array
Show Source
Nested Schema : advancedFilters
Type: array
Show Source
Nested Schema : AdvancedSearchFilterSet
Type: object
Show Source
Nested Schema : filterFields
Type: array
Show Source
Nested Schema : rangeFilters
Type: array
Show Source
Nested Schema : FilterInfo
Type: object
Show Source
Nested Schema : RangeFilterInfo
Type: object
Show Source
Nested Schema : Range
Type: object
Show Source
Nested Schema : FacetFieldInfo
Type: object
Show Source

500 Response

An unexpected error occurred during the request.
Body ()
Root Schema : schema
Type: object
Back to Top

Examples

Example Request:

/api/v4/search

Example SearchRequest JSON Objects:

{"objectType":"Companies","query":"oracle","offset":"0","limit":"10","facetLimit":"10"}
{"objectType":"People","offset":"0","limit":"10","facetLimit":"10"}
{"objectType":"Companies","query":"oracle","offset":"0","limit":"10","facetLimit":"10","returnAll":"true"}
{"objectType":"Companies","query":"oracle","offset":"0","limit":"10","facetLimit":"10","returnFields":["location.city", "location.state"]}
{"objectType":"Companies","offset":"0","limit":"10","facetLimit":"10","returnFields":["info.organization_name","location.city", "location.state","company.sales_volume"],"filterFields":[{"name":"location.state","value":"CA"}]}
{"objectType":"People","offset":"0","limit":"10","facetLimit":"0","defaultFilters":[{"filterName":"Enterprise Companies","filterValue":"N"},{"filterName":"Medium Companies","filterValue":"Y"},{"filterName":"Small Companies","filterValue":"Y"},{"filterName":"Defunct","filterValue":"Y"},{"filterName":"Out Of Business","filterValue":"Y"}]}
{"objectType":"People","offset":"0","limit":"10","facetLimit":"0","defaultFilters":[{"filterName":"Enterprise Companies","filterValue":"N"},{"filterName":"Medium Companies","filterValue":"Y"},{"filterName":"Small Companies","filterValue":"Y"},{"filterName":"Defunct","filterValue":"Y"},{"filterName":"Out Of Business","filterValue":"Y"},{"filterName":"Delisted","filterValue":"Y"}]}
{"objectType":"Companies","offset":"0","limit":"10","facetLimit":"0","defaultFilters":[{"filterName":"Enterprise Companies","filterValue":"Y"},{"filterName":"Medium Companies","filterValue":"Y"},{"filterName":"Small Companies","filterValue":"N"},{"filterName":"Defunct","filterValue":"Y"},{"filterName":"Out Of Business","filterValue":"N"}],"rangeFilters":[{"name":"company.sales_volume","range":{"from":"1000000","to":"999999999"}}]}
{"objectType":"People","offset":"0","limit":"10","facetLimit":"5","selectedFacets":[{"name":"person.department", "value":"3" },{"name":"person.department", "value":"10" }],"returnFacetFields":[{"name":"company.status_ind","offset":0,"limit":-1,"minCount":0,"sortBy":"index"},{"name":"person.department","offset":0,"limit":5,"minCount":0,"sortBy":"count"}],"orderBy":"location.state","orderByDir":"DESC"}
{"objectType":"People","offset":"0","limit":"10","selectedFacets":[{ "name":"person.department", "value":"10" },{ "name":"location", "value":"USA" }],"returnFacetFields":[{"name":"location","offset":0,"limit":10,"minCount":0,"sortBy":"count"},{"name":"person.department","offset":0,"limit":5,"minCount":0,"sortBy":"count"},{"name":"companies"}],"orderBy":"location.country","orderByDir":"DESC","rangeFilters":[{"name":"location.postal_code","range":{"from":"30620","to":"80622"}}],"defaultFilters":[{"filterName":"Enterprise Companies","filterValue":"N"}]}
{"objectType":"Companies","limit":"0","offset":"0","selectedFacets":[{ "name":"location", "value":"USA" },{"name":"company.primary_naics_cd","value":"11"}],"returnFacetFields":[{"name":"company.primary_naics_cd","offset":0,"limit":10,"minCount":0,"sortBy":"index"}],"rangeFilters":[{"name":"location.postal_code","range":{"from":"30000","to":"80622"}}]}

Example Responses:

 {
 "parties 
 	type=person":[
 {"Id":"Some Id", "Name":"Some Name","Title":"Some Title","Email":"Some Email",...(MORE)}, 
 {"Id":"Some Id", "Name":"Some Name","Title":"Some Title","Email":"Some Email",...(MORE)}]
}
 
 {
 "parties 
 type:company":[
 {" Id":"Some Id", "Name":"Some Company","DUNSNumber":"123456",...(MORE)}
 {" Id":"Some Id", "Name":"Some Company","DUNSNumber":"123456",...(MORE)}] 
 "facets":[
 {"attribute":"some attribute", "value":"value for attribute", "count":"some count"}]
}
 
Back to Top