Playground base path: https://vocations.io/api/playground

Base path: https://vocations.io/api/v1

Autenticazione

Tutti gli endpoint sotto /v1 richiedono API key valida, anche quelli che non consumano utilizzo.

Gli endpoint sotto /playground non richiedono API key.

Per gli endpoint /v1, la chiave deve essere passata nell'header HTTP Authorization e deve avere il valore Bearer <chiave>.

In ogni richiesta, il numero massimo di filtri combinati è di 512, per esempio names: ["Developer", "Ingegnere", "Analyst"] conta come 3 filtri.

Tipi condivisi richiesti

? dopo qualsiasi chiave di un tipo implica che il valore è opzionale.

[] dopo qualsiasi tipo implica che il valore, se passato, deve essere un array.

Tutti gli id, come ids or userToken hanno lunghezza di 16 caratteri.

type ErrorResponse = { message: string };

type NumericRange =
  | { min: number; max: number }
  | { min: number; max?: undefined }
  | { min?: undefined; max: number };

type YearlyValue = {
  year: number;
  value: number;
};

type Location = {
  city: string;
  province: string;
  region: string;
  nation: string;

  latitude: number;
  longitude: number;
};

type SortType =
  | "default"
  | "name"
  | "city"
  | "province"
  | "region"
  | "sectors"
  | "currentTotalRevenue"
  | "currentEmployees"
  | "currentOpenPositions";

type SortOrder = "asc" | "desc";

type PositionSource = "vocations" | "linkedIn" | "indeed";

type Hours = "full" | "part" | "shift";

type CompanyStatus = "open" | "bankruptcy" | "liquidation" | "closed";

type CompanyAPL = "apl" | "excludeAPL" | "all";

type ValueTrend = "increasing" | "decreasing" | "stable";

type ExperienceLevel = "0" | "0-1" | "1-3" | "3-5" | "5-10" | "10+";

type Contract =
  | "temporary"
  | "internship"
  | "permanent"
  | "contract"
  | "apprenticeship"
  | "freelance";

type Collar = "blue" | "white";

type SmartWorking = "yes" | "no" | "hybrid";

type BusinessUnit =
  | "finance"
  | "hr"
  | "purchasing"
  | "marketing"
  | "sales"
  | "customerService"
  | "research"
  | "operations"
  | "it"
  | "legal"
  | "strategy"
  | "sustainability"
  | "administration";

type Sector =
  | "administrationAccounting"
  | "textileClothing"
  | "mediaCommunicationMarketing"
  | "aeronauticsNavalDefense"
  | "realEstate"
  | "agriculture"
  | "horeca"
  | "food"
  | "artHistoryArchitecture"
  | "furniture"
  | "craftsmanship"
  | "insurance"
  | "socialCooperativesAssociations"
  | "automotive"
  | "banking"
  | "biomedical"
  | "broadcastingMusicFilm"
  | "outsourcingBusinessServices"
  | "retail"
  | "manufacturingIndustrial"
  | "chemical"
  | "energyOilGas"
  | "trade"
  | "consultingITConsulting"
  | "consumerGoods"
  | "pharmaceutical"
  | "environmentSustainabilityEcology"
  | "publishing"
  | "educationTraining"
  | "electronicsElectrotechnics"
  | "industrialEngineeringServices"
  | "sportsCultureEntertainment"
  | "publicEntitiesNonProfitPublicAdmin"
  | "financeFinancialServices"
  | "gamingBetting"
  | "rubberPlastic"
  | "largeScaleRetail"
  | "healthHygiene"
  | "humanResources"
  | "warehousePackaging"
  | "cybersecurityIT"
  | "legalCompliance"
  | "logistics"
  | "transportShipping"
  | "medical"
  | "metallurgyMechanics"
  | "exhibitionsFairsEvents"
  | "motors"
  | "cleaning"
  | "securitySurveillance"
  | "personalServices"
  | "professionalFirm"
  | "telecommunications"
  | "tourismTravel"
  | "designFashion"
  | "multiservices"
  | "technologyScienceData"
  | "automation"
  | "other";

1) Ricerca Aziende

POST /companies

Questo endpoint non consuma crediti

Rate limit: massimo 30 richieste/minuto e 1800 richieste/ora.

Request:

type APICompanyFilter = {
  ids?: string[]; // Max items: 64
  apl?: CompanyAPL;
  ivas?: string[]; // Max items: 256
  names?: string[]; // Max items: 256
  cities?: string[]; // Max items: 256
  provinces?: string[]; // Max items: 256
  regions?: string[]; // Max items: 256
  postalCodes?: string[]; // Max items: 256
  ateco?: string[]; // Max items: 256
  sectors?: Sector[]; // Max items: 64
  generateSectors?: string[]; // Max items: 64
  employees?: NumericRange[]; // Max items: 64
  totalRevenue?: NumericRange[]; // Max items: 64
  totalRevenueTrend?: ValueTrend[]; // Max items: 64
  employeesCostTrend?: ValueTrend[]; // Max items: 64
  positionsTrend?: ValueTrend[]; // Max items: 64
  companyStatuses?: CompanyStatus[]; // Max items: 64
  createdAt?: NumericRange[]; // Max items: 64 (UNIX timestamp in seconds, UTC)
};

type V1CompaniesRequest = {
  page: number; // >= 0
  pageSize?: // Min: 1, Max: 128
  company: APICompanyFilter;
  notCompany?: APICompanyFilter;
  sortType?: SortType; // default "default"
  sortOrder?: SortOrder; // default "desc"
  withPositions?: boolean; // default false
};

Esempio body della request (JSON):

{
  "page": 0,
  "company": {
    "apl": "excludeAPL",
    "regions": ["Lombardia"],
    "sectors": ["technologyScienceData"],
    "employees": [{ "min": 11, "max": 200 }],
    "createdAt": [{ "min": 946684800, "max": 1104537599 }]
  },
  "sortType": "name",
  "sortOrder": "asc",
  "withPositions": true
}