Get search criteria history
curl --request GET \
--url https://rest.forestreet.com/v2/discovery/{marketId}/search-criteria/history \
--header 'x-api-key: <api-key>'import requests
url = "https://rest.forestreet.com/v2/discovery/{marketId}/search-criteria/history"
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('https://rest.forestreet.com/v2/discovery/{marketId}/search-criteria/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://rest.forestreet.com/v2/discovery/{marketId}/search-criteria/history",
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 := "https://rest.forestreet.com/v2/discovery/{marketId}/search-criteria/history"
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("https://rest.forestreet.com/v2/discovery/{marketId}/search-criteria/history")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://rest.forestreet.com/v2/discovery/{marketId}/search-criteria/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"metadata": {},
"data": [
{
"marketId": 12345,
"marketName": "AI Healthcare Transcription Services",
"userPrompt": "Find AI-powered transcription services that serve enterprise healthcare customers",
"marketType": "service",
"marketRole": "serviceProvider",
"keywords": {
"features": [
"AI transcription",
"speech-to-text",
"healthcare"
],
"user": [
"healthcare",
"enterprise",
"hospitals"
],
"synonyms": [
"transcription",
"dictation",
"voice-to-text"
],
"irrelevant": [
"manual transcription",
"human transcription"
]
},
"count": 50,
"locations": [
{
"country": "GB",
"address": [
"123 Healthcare St",
"Suite 100"
],
"coordinates": [
51.5074,
-0.1278
]
}
],
"jobId": 12345,
"projectKind": "first_pass",
"performSearch": true,
"createdAt": "2023-01-15T10:30:00Z"
},
{
"marketId": 12345,
"marketName": "AI Transcription Services",
"userPrompt": "Find AI transcription services",
"marketType": "service",
"marketRole": "serviceProvider",
"keywords": {
"features": [
"AI transcription",
"speech-to-text"
],
"user": [
"enterprise"
],
"synonyms": [
"transcription",
"dictation"
],
"irrelevant": [
"manual transcription"
]
},
"count": 25,
"locations": [
{
"country": "GB",
"address": [
"123 Healthcare St",
"Suite 100"
],
"coordinates": [
51.5074,
-0.1278
]
}
],
"jobId": 12345,
"projectKind": "second_pass",
"performSearch": false,
"createdAt": "2023-01-15T10:30:00Z"
}
]
}Company Review
Get search criteria history
Retrieve the history of search criteria iterations for a specific market.
GET
/
v2
/
discovery
/
{marketId}
/
search-criteria
/
history
Get search criteria history
curl --request GET \
--url https://rest.forestreet.com/v2/discovery/{marketId}/search-criteria/history \
--header 'x-api-key: <api-key>'import requests
url = "https://rest.forestreet.com/v2/discovery/{marketId}/search-criteria/history"
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('https://rest.forestreet.com/v2/discovery/{marketId}/search-criteria/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://rest.forestreet.com/v2/discovery/{marketId}/search-criteria/history",
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 := "https://rest.forestreet.com/v2/discovery/{marketId}/search-criteria/history"
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("https://rest.forestreet.com/v2/discovery/{marketId}/search-criteria/history")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://rest.forestreet.com/v2/discovery/{marketId}/search-criteria/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"metadata": {},
"data": [
{
"marketId": 12345,
"marketName": "AI Healthcare Transcription Services",
"userPrompt": "Find AI-powered transcription services that serve enterprise healthcare customers",
"marketType": "service",
"marketRole": "serviceProvider",
"keywords": {
"features": [
"AI transcription",
"speech-to-text",
"healthcare"
],
"user": [
"healthcare",
"enterprise",
"hospitals"
],
"synonyms": [
"transcription",
"dictation",
"voice-to-text"
],
"irrelevant": [
"manual transcription",
"human transcription"
]
},
"count": 50,
"locations": [
{
"country": "GB",
"address": [
"123 Healthcare St",
"Suite 100"
],
"coordinates": [
51.5074,
-0.1278
]
}
],
"jobId": 12345,
"projectKind": "first_pass",
"performSearch": true,
"createdAt": "2023-01-15T10:30:00Z"
},
{
"marketId": 12345,
"marketName": "AI Transcription Services",
"userPrompt": "Find AI transcription services",
"marketType": "service",
"marketRole": "serviceProvider",
"keywords": {
"features": [
"AI transcription",
"speech-to-text"
],
"user": [
"enterprise"
],
"synonyms": [
"transcription",
"dictation"
],
"irrelevant": [
"manual transcription"
]
},
"count": 25,
"locations": [
{
"country": "GB",
"address": [
"123 Healthcare St",
"Suite 100"
],
"coordinates": [
51.5074,
-0.1278
]
}
],
"jobId": 12345,
"projectKind": "second_pass",
"performSearch": false,
"createdAt": "2023-01-15T10:30:00Z"
}
]
}Overview
This endpoint retrieves the complete history of search criteria iterations that have been used for a specific market discovery.Workflow Step: This is part of Phase 3 (Company Review) of the Market Research
Workflow.
Usage
Use this endpoint to track the evolution of search criteria for a market, which is helpful for:- Iteration: See how search criteria evolved over time
- Documentation: Maintain a complete history of search parameters
Best Practices
Iteration Process: This endpoint is useful when you’ve refined your search criteria multiple times and want to
track the progression.
Important: This endpoint only works for markets that have completed the discovery process. Make sure discovery is
finished before calling this endpoint.
Authorizations
apiKeyAuthbearerAuthsessionIdQuery
Pass a static API key for every request, provided by your customer support.
Path Parameters
Unique identifier for the market study.
⌘I