GET
/
api
/
v2
/
datasets
/
{source}
/
{endpoint}

Contact us to access our diverse range of business datasets, which are available through this API and billed based on the number of rows returned.

x-api-key
string
required

This parameter specifies the private key you’ll need for Piloterr access.

Parameters

query
object
required

This parameter specifies the query to search for. Based on Elasticsearch Query DSL.

Examples:

  1. Match query:
{
  "match": {
    "name": "OpenAI"
  }
}
  1. Multi-match query:
{
  "multi_match": {
    "query": "artificial intelligence",
    "fields": ["name", "description"]
  }
}
  1. Range query:
{
  "range": {
    "founded": {
      "gte": "2010-01-01",
      "lte": "2020-12-31"
    }
  }
}
  1. Bool query (combining multiple conditions):
{
  "bool": {
    "must": [
      { "match": { "company_type": "for profit" } },
      { "range": { "staff_range": { "gte": "501" } } }
    ],
    "should": [
      { "match": { "description": "machine learning" } },
      { "match": { "description": "artificial intelligence" } }
    ],
    "must_not": [
      { "match": { "domain": "google.com" } }
    ]
  }
}
sort
list

This parameter specifies the sort order of the results. Example:

[
  { "founded": "desc" },
  { "name.keyword": "asc" }
]

This will sort results by the “founded” field in descending order, then by the “name” field in ascending order.

size
integer

This parameter specifies the number of results to return. Example:

20

This will return a maximum of 20 results.

from_
integer

This parameter specifies the starting index of the results. Example:

100

This will start returning results from the 101st match (useful for pagination).

Response

hits
list

List of data matching the query.

total
object

Total number of results matching the query.

max_score
number

Maximum relevance score of the matching results.

search_metadata
object
credits
object

Credits used for the query.

account_id
string

Identifier of the account.

account_name
string

Name of the account.

Was this page helpful?