Diversity Certifications
curl --request GET \
--url https://api.forestreet.com/markets/{marketId}/companies/diversityimport requests
url = "https://api.forestreet.com/markets/{marketId}/companies/diversity"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.forestreet.com/markets/{marketId}/companies/diversity', 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://api.forestreet.com/markets/{marketId}/companies/diversity",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://api.forestreet.com/markets/{marketId}/companies/diversity"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.forestreet.com/markets/{marketId}/companies/diversity")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.forestreet.com/markets/{marketId}/companies/diversity")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"meta": {
"totalItems": 13,
"totalUniqueCompanies": 17
},
"currentQuery": {
"marketId": 1
},
"data": {
"Diverse Supplier Development Program (DSDP)": 8,
"European Supplier Diversity Project (ESDP)": 5,
"Responsible Business Initiative for Justice and Equality": 4,
"Certified Benefit Corporation": 2,
"Historically Black Colleges and Universities": 2,
"Minority Supplier Development UK (MSDUK)": 2,
"LGBT Owned Business Enterprise": 1,
"Minority-owned Business Enterprise": 1,
"People With Disability": 1,
"Social Enterprise Mark": 1,
"U.S. Department of Housing and Urban Development": 1,
"Woman Led Business Enterprise": 1,
"Women-owned Business Enterprise": 1
}
}
Deprecated
Diversity Certifications
This endpoint retrieves all the diversity certifications identified in the given market.
GET
/
markets
/
{marketId}
/
companies
/
diversity
Diversity Certifications
curl --request GET \
--url https://api.forestreet.com/markets/{marketId}/companies/diversityimport requests
url = "https://api.forestreet.com/markets/{marketId}/companies/diversity"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.forestreet.com/markets/{marketId}/companies/diversity', 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://api.forestreet.com/markets/{marketId}/companies/diversity",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://api.forestreet.com/markets/{marketId}/companies/diversity"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.forestreet.com/markets/{marketId}/companies/diversity")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.forestreet.com/markets/{marketId}/companies/diversity")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"meta": {
"totalItems": 13,
"totalUniqueCompanies": 17
},
"currentQuery": {
"marketId": 1
},
"data": {
"Diverse Supplier Development Program (DSDP)": 8,
"European Supplier Diversity Project (ESDP)": 5,
"Responsible Business Initiative for Justice and Equality": 4,
"Certified Benefit Corporation": 2,
"Historically Black Colleges and Universities": 2,
"Minority Supplier Development UK (MSDUK)": 2,
"LGBT Owned Business Enterprise": 1,
"Minority-owned Business Enterprise": 1,
"People With Disability": 1,
"Social Enterprise Mark": 1,
"U.S. Department of Housing and Urban Development": 1,
"Woman Led Business Enterprise": 1,
"Women-owned Business Enterprise": 1
}
}
This endpoint is deprecated and will be removed in the future. Please use Attributes instead.
Path
string
The ID of the market which you want to retrieve diversity certifications of. This can be retrieved by searching for
markets.
Response
object
object
A mapping of all certifications to their number of occurrences, sorted by - descending number of occurrences, and then
- alphabetical order of the certification.
{
"meta": {
"totalItems": 13,
"totalUniqueCompanies": 17
},
"currentQuery": {
"marketId": 1
},
"data": {
"Diverse Supplier Development Program (DSDP)": 8,
"European Supplier Diversity Project (ESDP)": 5,
"Responsible Business Initiative for Justice and Equality": 4,
"Certified Benefit Corporation": 2,
"Historically Black Colleges and Universities": 2,
"Minority Supplier Development UK (MSDUK)": 2,
"LGBT Owned Business Enterprise": 1,
"Minority-owned Business Enterprise": 1,
"People With Disability": 1,
"Social Enterprise Mark": 1,
"U.S. Department of Housing and Urban Development": 1,
"Woman Led Business Enterprise": 1,
"Women-owned Business Enterprise": 1
}
}
⌘I