List search types
1 min
GET
https://api.detected.app/api/v2/public/search/types
Responses
200
- SearchTypesResponse
- companyEntityTypesConfig
- labelstringDescription
- search_enabledbooleanDescription
- sole_traderEntityTypesConfig
- labelstringDescription
- search_enabledbooleanDescription
- partnershipEntityTypesConfig
- labelstringDescription
- search_enabledbooleanDescription
- charityEntityTypesConfig
- labelstringDescription
- search_enabledbooleanDescription
- government_entityEntityTypesConfig
- labelstringDescription
- search_enabledbooleanDescription
- incorporated_syndicateEntityTypesConfig
- labelstringDescription
- search_enabledbooleanDescription
- company_syndicateEntityTypesConfig
- labelstringDescription
- search_enabledbooleanDescription
- syndicateEntityTypesConfig
- labelstringDescription
- search_enabledbooleanDescription
- associationEntityTypesConfig
- labelstringDescription
- search_enabledbooleanDescription
- trustEntityTypesConfig
- labelstringDescription
- search_enabledbooleanDescription
- fundEntityTypesConfig
- labelstringDescription
- search_enabledbooleanDescription
- individualEntityTypesConfig
- labelstringDescription
- search_enabledbooleanDescription
- joint_individualEntityTypesConfig
- labelstringDescription
- search_enabledbooleanDescription
- clubEntityTypesConfig
- labelstringDescription
- search_enabledbooleanDescription
Response Headers
- X-RateLimit-Limit
- X-RateLimit-Remaining
401
- object
- messagestringDescription
429
- object
- messagestringDescription
curl
curl --request GET \
--url https://api.detected.app/api/v2/public/search/types \
--header 'accept: application/json'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api.detected.app/api/v2/public/search/types", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://api.detected.app/api/v2/public/search/types")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://api.detected.app/api/v2/public/search/types"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// OK
{
"company": {
"label": "",
"search_enabled": false
},
"sole_trader": {
"label": "",
"search_enabled": false
},
"partnership": {
"label": "",
"search_enabled": false
},
"charity": {
"label": "",
"search_enabled": false
},
"government_entity": {
"label": "",
"search_enabled": false
},
"incorporated_syndicate": {
"label": "",
"search_enabled": false
},
"company_syndicate": {
"label": "",
"search_enabled": false
},
"syndicate": {
"label": "",
"search_enabled": false
},
"association": {
"label": "",
"search_enabled": false
},
"trust": {
"label": "",
"search_enabled": false
},
"fund": {
"label": "",
"search_enabled": false
},
"individual": {
"label": "",
"search_enabled": false
},
"joint_individual": {
"label": "",
"search_enabled": false
},
"club": {
"label": "",
"search_enabled": false
}
}401
// Unauthorized. The access token is missing, invalid or has expired.
{
"message": ""
}429
// Too Many Requests. You have exceeded the rate limit. Wait for the number of seconds given in the Retry-After header before trying again.
{
"message": ""
}