Other
Get data fields
Provides a list of all industries and industry categories, technologies and regions searchable by Ocean.io.
Query Parameters
apiToken
string | null | nullHeader Parameters
x-api-token
string | null | nullResponse Body
Successful Response
TypeScript Definitions
Use the response body type in TypeScript.
industries
IndustriesList of industries
linkedinIndustries
Linkedin industriesList of Linkedin industries
technologies
TechnologiesList of technologies
regions
Country regionsList of regions per country
seniorities
SenioritiesList of seniorities computed from the job title of the person
departments
DepartmentsList of departments computed from the job title of the person
Bad Request
TypeScript Definitions
Use the response body type in TypeScript.
detail
RequiredstringValue in:
"Conflicting API tokens provided in query parameters and headers"
Payment Required
TypeScript Definitions
Use the response body type in TypeScript.
detail
RequiredstringValue in:
"Insufficient email credits" | "Some email verifications are already in progress and might use all your remaining email credits. Please try again later." | "Insufficient phone credits" | "Some phone verifications are already in progress and might use all your remaining phone credits. Please try again later."
Forbidden
TypeScript Definitions
Use the response body type in TypeScript.
detail
RequiredstringValue in:
"API token should be provided in headers or query parameters" | "Current API token is not registered in our database"
Not found
Validation Error
TypeScript Definitions
Use the response body type in TypeScript.
detail
Detailcurl -X GET "https://api.ocean.io/v2/data-fields?apiToken=string" \
-H "x-api-token: string"
fetch("https://api.ocean.io/v2/data-fields?apiToken=string", {
headers: {
"x-api-token": "string"
}
})
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.ocean.io/v2/data-fields?apiToken=string"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-token", "string")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import requests
url = "https://api.ocean.io/v2/data-fields?apiToken=string"
response = requests.request("GET", url, headers = {
"x-api-token": "string"
})
print(response.text)
{
"industries": [
{
"industries": [
"Advertising Platforms",
"Biopharma"
],
"industryCategory": "Administrative Services"
}
],
"linkedinIndustries": [
"Accounting",
"Airlines/Aviation",
"Alternative Dispute Resolution"
],
"technologies": {
"categories": [
"Chat"
],
"name": "ChatStack"
},
"regions": {
"nl": [
{
"code": "NH",
"englishName": "North Holland",
"localName": "Noord-Holland"
}
]
},
"seniorities": [
"C-Level",
"Manager"
],
"departments": [
"Management",
"Marketing and Advertising"
]
}
{
"detail": "Conflicting API tokens provided in query parameters and headers"
}
{
"detail": "Insufficient email credits"
}
{
"detail": "API token should be provided in headers or query parameters"
}
Empty
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}