[POST] - Asynchronous (batch) Target Company List Build API

  • Updated

Use this endpoint to build a list a companies using rich filters in batch mode.

The elements in the companies list contain a newid value and enough additional information such that a user could narrow down a selection from the list. Using the selected newid values you can retrieve additional company information through the Target API's New Company Details endpoint.

Endpoint

POST https://api.insideview.com/api/v1/target/companies/export/job

Request

HTTP Headers

Header Name Type Required Description
accessToken String Yes Valid access token.
See Authentication and Authorization Overview for more details.
Accept String No

Selects the response's content type.  
Valid values are application/json and application/xml (default).

Use below mentioned values to access New News Platform based search

application/api.news.target.company.beta+json

application/api.news.target.company.beta+xml

Accept-Language String No Select the response's language and locale.
Default value: en-en
See Internationalization Support for more details.

Form Parameters

pageIntegerNoDefault: 1

Parameter Name Type Required Description
agents String No agents ID.
See API Reference Data for a list of IDs.
areaCodes Integer No A comma separated list of area codes
businessTypes String No A comma separated list of business types.
Valid values are: public, private, school,government, organization
cities String No A comma separated list of cities
companyStatus String No A comma separated list of status.
Valid values are: operating, subsidiary, acquired
countries Integer No One country ID.
See API Reference Data for a list of IDs.
fiscalYearEnd String No Example: january
fortuneRanking String No Valid values are: fortune500, fortune1000
industries String No A comma separated list of industries IDs.
See API Reference Data for a list of IDs.
keywords String No  
companyName String No Name of the company
maxEmployees Integer No  
maxRevenue Integer No  
minEmployees Integer No  
minRevenue Integer No  
categoryIds Integer No Comma separated list of category ids
subCategoryIds Integer No
Comma separated list of sub category ids
productIds Integer No Comma separated list of product ids
naics String No

A comma separated list of NAICS codes.
NAICS and SIC Code Search

You can enter NAICS & SIC codes in two different ways:

  • Direct code – for example, enter 511210 for Software Publishers.
  • Top Level codes – for example, enter 511* for All Publishing Industries which would include 51111 – 51119 or even 5112* which would include 511210.
newsDuration Integer No A duration in days (1-30).  Works with agents parameter.
primaryIndustryOnly String No  
primaryNAICSOnly String No  
primarySICOnly String No  
regions String No A comma separated list of regions.
Valid values are: Africa, Asia, Europe, MiddleEast, NorthAmerica, Oceania, SouthAmerica
sic String No  
street String No Street name
state String No Comma separated list of states 
subIndustries String No A comma separated list of sub-industries IDs.
See API Reference Data for a list of IDs.
zipCodes String No A comma separated list of zip codes.
resultsPerPage Integer No Default: 10, maximum value: 500
sortBy String No Attributes used to sort the list of results. Valid values are: companyName, popularity, revenue, employee_count, businessType, location
sortOrder String No Valid values are asc, desc
gender String No Diversity status based on Gender
ethnicity Int No

Diversity status based on Ethnicity. Valid values are comma separated list of ethnicity ids. 

ID Values
1 Asian-Indian
2 Non-Ethnic
3 Asian-Pacific
4 Hispanic
5 African American
6 Native American
7 Asian

 

dbe Boolean No Diversity status based on Disadvantages Business Ent. 
wbe  Boolean No Diversity status based on Women Business Ent. 
mbe  Boolean No Diversity status based on Minority Business Ent. 
vbe  Boolean No Diversity status based on Veteran Business Ent.
disabled  Boolean No Diversity status based on Disabled Business Ent. 
lgbt Boolean No Diversity status based on Gay Lesbian business Ent. 
hasWebsite Boolean No Pass it as 'true' to view companies with a website URL. Pass it as 'false', to view all companies including those which have no website URL.
hasPhone Boolean No Pass it as 'true' to view companies with a phone number. Pass it as 'false', to view all companies including those which have no phone numbers.

businessStructure

String  No

The organizational structure of a company (globalParent, uncategorized, subsidiary, group, independent) 

companyStatusV2

String  No

Company status (operating, non-Operating, acquired, liquidating, outOfBusiness, unassigned

companyTypeV2

String  No

Company type (public, private, government, organization, unknown)

 

Responses

Here are the major responses the API may return.

For details on the errors, see API Error Codes.

HTTP 200

An HTTP 200 status means the data have been accepted and a job have been queued.

Type: application/json

Schema

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "id": "/",
  "type": "object",
  "properties": {
    "jobId": {
      "id": "jobId",
      "type": "string"
    },
    "status": {
      "id": "status",
      "type": "string"
    },
    "type": {
      "id": "type",
      "type": "string"
    }
  }
}

Example

{
  "jobId": "lnjkd7ie0hblp1k58e5q",
  "status": "accepted",
  "type": "targetCompanySearchAsyncExport"
}

Type: application/xml

Schema

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">

    <xs:element name="BulkJobStatus" type="BulkJobStatusDTO"/>

    <xs:complexType name="BulkJobStatusDTO">
        <xs:sequence>
            <xs:element name="jobId" type="xs:string" />
            <xs:element name="status" type="xs:string" />
            <xs:element name="type" type="xs:string" />     
        </xs:sequence>
    </xs:complexType>
</xs:schema>

Example

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<BulkJobStatus>
    <jobId>s04eabq2bt0ncgpa1095</jobId>
    <status>accepted</status>
    <type>targetCompanySearchAsyncExport</type>
</BulkJobStatus>

HTTP 400

An HTTP 400 error code may have several causes:

  • Validation of input data failed
  • Insufficient transaction quota available
  • Too many job submitted to the processing queue
  • etc.

HTTP 401

Unauthorized Error - Cannot use API's without setting a valid accessToken in header.

HTTP 405

Method Not Allowed - Your are not allowed to access this API.

HTTP 415

The Content-Type mandatory is not valid, please refer to the API documentation.

HTTP 429

Request is throttled.

 

Was this article helpful?

0 out of 0 found this helpful