Get market explorer filters
curl --request GET \
--url http://localhost:4000/v2/markets/{marketId}/explorer/companies/filters \
--header 'x-api-key: <api-key>'import requests
url = "http://localhost:4000/v2/markets/{marketId}/explorer/companies/filters"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('http://localhost:4000/v2/markets/{marketId}/explorer/companies/filters', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "4000",
CURLOPT_URL => "http://localhost:4000/v2/markets/{marketId}/explorer/companies/filters",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:4000/v2/markets/{marketId}/explorer/companies/filters"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:4000/v2/markets/{marketId}/explorer/companies/filters")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:4000/v2/markets/{marketId}/explorer/companies/filters")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"yearFounded": {
"filtered": [
{
"label": "<string>",
"count": 123
}
],
"unfiltered": [
{
"label": "<string>",
"count": 123
}
]
},
"yearFoundedMin": {
"filtered": {
"label": "<string>",
"count": 123
},
"unfiltered": {
"label": "<string>",
"count": 123
}
},
"yearFoundedMax": {
"filtered": {
"label": "<string>",
"count": 123
},
"unfiltered": {
"label": "<string>",
"count": 123
}
},
"companySize": {
"filtered": [
{
"label": "<string>",
"count": 123
}
],
"unfiltered": [
{
"label": "<string>",
"count": 123
}
]
},
"companyRevenue": {
"filtered": [
{
"label": "<string>",
"count": 123
}
],
"unfiltered": [
{
"label": "<string>",
"count": 123
}
]
},
"hqCountry": {
"filtered": [
{
"label": "<string>",
"count": 123
}
],
"unfiltered": [
{
"label": "<string>",
"count": 123
}
]
},
"hqState": {
"filtered": [
{
"label": "<string>",
"count": 123
}
],
"unfiltered": [
{
"label": "<string>",
"count": 123
}
]
},
"hqCity": {
"filtered": [
{
"label": "<string>",
"count": 123
}
],
"unfiltered": [
{
"label": "<string>",
"count": 123
}
]
},
"categories": {
"filtered": [
{
"label": "<string>",
"count": 123
}
],
"unfiltered": [
{
"label": "<string>",
"count": 123
}
]
},
"userTags": {
"filtered": [
{
"label": "<string>",
"count": 123
}
],
"unfiltered": [
{
"label": "<string>",
"count": 123
}
]
},
"momentumScore": {
"filtered": [
{
"label": "<string>",
"count": 123
}
],
"unfiltered": [
{
"label": "<string>",
"count": 123
}
]
},
"momentumScoreMin": {
"filtered": {
"label": "<string>",
"count": 123
},
"unfiltered": {
"label": "<string>",
"count": 123
}
},
"momentumScoreMax": {
"filtered": {
"label": "<string>",
"count": 123
},
"unfiltered": {
"label": "<string>",
"count": 123
}
},
"isLocationVerified": {
"filtered": {
"label": "<string>",
"count": 123
},
"unfiltered": {
"label": "<string>",
"count": 123
}
}
}{
"success": false,
"errorCode": "INVALID_INPUT",
"message": "Bad Request"
}{
"success": false,
"errorCode": "FORBIDDEN",
"message": "Forbidden - You do not have access to this market"
}{
"success": false,
"errorCode": "INTERNAL_SERVER_ERROR",
"message": "Internal Server Error"
}Market CRUD
Get market explorer filters
Fetches available filters for a specific market.
List Market Explorer Companies supports in its Query parameters a set of filters that can be applied to the list of companies. This endpoint provides the available options for those filters, which can be used to construct the query for listing companies. In particular, these filters are extracted across all companies in the market without pagination, allowing UI applications to show all available filters regardless of the pagination applied on the UI.
Not typically useful for pure API consumers.
GET
/
v2
/
markets
/
{marketId}
/
explorer
/
companies
/
filters
Get market explorer filters
curl --request GET \
--url http://localhost:4000/v2/markets/{marketId}/explorer/companies/filters \
--header 'x-api-key: <api-key>'import requests
url = "http://localhost:4000/v2/markets/{marketId}/explorer/companies/filters"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('http://localhost:4000/v2/markets/{marketId}/explorer/companies/filters', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "4000",
CURLOPT_URL => "http://localhost:4000/v2/markets/{marketId}/explorer/companies/filters",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:4000/v2/markets/{marketId}/explorer/companies/filters"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:4000/v2/markets/{marketId}/explorer/companies/filters")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:4000/v2/markets/{marketId}/explorer/companies/filters")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"yearFounded": {
"filtered": [
{
"label": "<string>",
"count": 123
}
],
"unfiltered": [
{
"label": "<string>",
"count": 123
}
]
},
"yearFoundedMin": {
"filtered": {
"label": "<string>",
"count": 123
},
"unfiltered": {
"label": "<string>",
"count": 123
}
},
"yearFoundedMax": {
"filtered": {
"label": "<string>",
"count": 123
},
"unfiltered": {
"label": "<string>",
"count": 123
}
},
"companySize": {
"filtered": [
{
"label": "<string>",
"count": 123
}
],
"unfiltered": [
{
"label": "<string>",
"count": 123
}
]
},
"companyRevenue": {
"filtered": [
{
"label": "<string>",
"count": 123
}
],
"unfiltered": [
{
"label": "<string>",
"count": 123
}
]
},
"hqCountry": {
"filtered": [
{
"label": "<string>",
"count": 123
}
],
"unfiltered": [
{
"label": "<string>",
"count": 123
}
]
},
"hqState": {
"filtered": [
{
"label": "<string>",
"count": 123
}
],
"unfiltered": [
{
"label": "<string>",
"count": 123
}
]
},
"hqCity": {
"filtered": [
{
"label": "<string>",
"count": 123
}
],
"unfiltered": [
{
"label": "<string>",
"count": 123
}
]
},
"categories": {
"filtered": [
{
"label": "<string>",
"count": 123
}
],
"unfiltered": [
{
"label": "<string>",
"count": 123
}
]
},
"userTags": {
"filtered": [
{
"label": "<string>",
"count": 123
}
],
"unfiltered": [
{
"label": "<string>",
"count": 123
}
]
},
"momentumScore": {
"filtered": [
{
"label": "<string>",
"count": 123
}
],
"unfiltered": [
{
"label": "<string>",
"count": 123
}
]
},
"momentumScoreMin": {
"filtered": {
"label": "<string>",
"count": 123
},
"unfiltered": {
"label": "<string>",
"count": 123
}
},
"momentumScoreMax": {
"filtered": {
"label": "<string>",
"count": 123
},
"unfiltered": {
"label": "<string>",
"count": 123
}
},
"isLocationVerified": {
"filtered": {
"label": "<string>",
"count": 123
},
"unfiltered": {
"label": "<string>",
"count": 123
}
}
}{
"success": false,
"errorCode": "INVALID_INPUT",
"message": "Bad Request"
}{
"success": false,
"errorCode": "FORBIDDEN",
"message": "Forbidden - You do not have access to this market"
}{
"success": false,
"errorCode": "INTERNAL_SERVER_ERROR",
"message": "Internal Server Error"
}Authorizations
apiKeyAuthbearerAuthsessionIdQuery
Path Parameters
Query Parameters
Response
Market explorer filters response schema