List market explorer companies
curl --request GET \
--url http://localhost:4000/v2/markets/{marketId}/explorer/companies \
--header 'x-api-key: <api-key>'import requests
url = "http://localhost:4000/v2/markets/{marketId}/explorer/companies"
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', 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",
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"
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")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:4000/v2/markets/{marketId}/explorer/companies")
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{
"metadata": {
"pagination": {
"totalItems": 123,
"totalPages": 13,
"currentPage": 1,
"pageSize": 10,
"unfilteredTotalItems": 196,
"unfilteredTotalPages": 20
},
"marketVersion": {
"currentVersion": "2023-11-07T05:31:56Z",
"availableVersions": [
"2023-11-07T05:31:56Z"
]
}
},
"data": [
{
"id": "<string>",
"domain": "<string>",
"size": {
"value": "<string>",
"sortValue": 123
},
"revenue": {
"value": "<string>",
"sortValue": 123
},
"logoURL": "<string>",
"name": "<string>",
"description": "<string>",
"foundedYear": 123,
"hqCity": "<string>",
"hqState": "<string>",
"hqCountry": "<string>",
"momentum": {
"funding": 123,
"webTraffic": 123,
"mediaAnalysis": 123,
"newsSentiment": 123,
"revenueEstimates": 123
},
"overallMomentum": 123,
"actualRevenue": null,
"shareholdersList": [
null
],
"locations": 123,
"topics": [
{
"topicId": "<string>",
"name": "<string>",
"score": 123
}
],
"versionDate": "2023-11-07T05:31:56Z",
"userTags": [
{
"id": 123,
"label": "<string>",
"hexColor": "<string>",
"companyId": "<string>",
"parentTagId": 123
}
],
"isFavourite": true,
"categories": [
{
"id": 123,
"name": "<string>"
}
],
"isLocationVerified": true,
"certifications": [
"<string>"
],
"contactNumber": "<string>",
"contactEmail": "<string>",
"parentCompany": "<string>",
"subsidiaries": [
"<string>"
],
"founders": [
{
"name": "<string>",
"type": "<string>",
"image": "<string>"
}
],
"ceo": "<string>",
"ukCompaniesHouseIds": [
"<string>"
],
"ukPersonsWithSignificantControl": [
{
"id": 123,
"name": "<string>",
"ownership": [
"<string>"
],
"type": "<string>",
"status": true,
"companyId": "<string>",
"companiesHouseURL": "<string>"
}
]
}
]
}{
"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": "NOT_FOUND",
"message": "Not Found - Market companies not found"
}{
"success": false,
"errorCode": "INTERNAL_SERVER_ERROR",
"message": "Internal Server Error"
}Market CRUD
List market explorer companies
List the companies in a published market, intended for Market Explorer use. Differs from a draft study by having company metadata populated, and having completed a detailed scrape.
GET
/
v2
/
markets
/
{marketId}
/
explorer
/
companies
List market explorer companies
curl --request GET \
--url http://localhost:4000/v2/markets/{marketId}/explorer/companies \
--header 'x-api-key: <api-key>'import requests
url = "http://localhost:4000/v2/markets/{marketId}/explorer/companies"
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', 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",
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"
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")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:4000/v2/markets/{marketId}/explorer/companies")
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{
"metadata": {
"pagination": {
"totalItems": 123,
"totalPages": 13,
"currentPage": 1,
"pageSize": 10,
"unfilteredTotalItems": 196,
"unfilteredTotalPages": 20
},
"marketVersion": {
"currentVersion": "2023-11-07T05:31:56Z",
"availableVersions": [
"2023-11-07T05:31:56Z"
]
}
},
"data": [
{
"id": "<string>",
"domain": "<string>",
"size": {
"value": "<string>",
"sortValue": 123
},
"revenue": {
"value": "<string>",
"sortValue": 123
},
"logoURL": "<string>",
"name": "<string>",
"description": "<string>",
"foundedYear": 123,
"hqCity": "<string>",
"hqState": "<string>",
"hqCountry": "<string>",
"momentum": {
"funding": 123,
"webTraffic": 123,
"mediaAnalysis": 123,
"newsSentiment": 123,
"revenueEstimates": 123
},
"overallMomentum": 123,
"actualRevenue": null,
"shareholdersList": [
null
],
"locations": 123,
"topics": [
{
"topicId": "<string>",
"name": "<string>",
"score": 123
}
],
"versionDate": "2023-11-07T05:31:56Z",
"userTags": [
{
"id": 123,
"label": "<string>",
"hexColor": "<string>",
"companyId": "<string>",
"parentTagId": 123
}
],
"isFavourite": true,
"categories": [
{
"id": 123,
"name": "<string>"
}
],
"isLocationVerified": true,
"certifications": [
"<string>"
],
"contactNumber": "<string>",
"contactEmail": "<string>",
"parentCompany": "<string>",
"subsidiaries": [
"<string>"
],
"founders": [
{
"name": "<string>",
"type": "<string>",
"image": "<string>"
}
],
"ceo": "<string>",
"ukCompaniesHouseIds": [
"<string>"
],
"ukPersonsWithSignificantControl": [
{
"id": 123,
"name": "<string>",
"ownership": [
"<string>"
],
"type": "<string>",
"status": true,
"companyId": "<string>",
"companiesHouseURL": "<string>"
}
]
}
]
}{
"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": "NOT_FOUND",
"message": "Not Found - Market companies not found"
}{
"success": false,
"errorCode": "INTERNAL_SERVER_ERROR",
"message": "Internal Server Error"
}Authorizations
apiKeyAuthbearerAuthsessionIdQuery