Other

Get data fields

Provides a list of all industries and industry categories, technologies and regions searchable by Ocean.io.

GET
/v2/data-fields

Query Parameters

apiTokenstring | null | null

Header Parameters

x-api-tokenstring | null | null

Response Body

Successful Response

TypeScript Definitions

Use the response body type in TypeScript.

industriesIndustries

List of industries

linkedinIndustriesLinkedin industries

List of Linkedin industries

technologiesTechnologies

List of technologies

regionsCountry regions

List of regions per country

senioritiesSeniorities

List of seniorities computed from the job title of the person

departmentsDepartments

List of departments computed from the job title of the person

Bad Request

TypeScript Definitions

Use the response body type in TypeScript.

detailRequiredstring
Value in: "Conflicting API tokens provided in query parameters and headers"

Payment Required

TypeScript Definitions

Use the response body type in TypeScript.

detailRequiredstring
Value 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.

detailRequiredstring
Value 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.

detailDetail
curl -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"
    }
  ]
}