example-data.com
Menu
Browse docs and collections

Overview

companies / #1

Component variants

Related

Referenced by

Request

curl example

          curl -sS \
  "https://example-data.com/api/v1/companies/1" \
  -H "Accept: application/json"
        

JavaScript example

          const res = await fetch(
  "https://example-data.com/api/v1/companies/1"
);
const company = await res.json();
        

TypeScript example

          // Download once: mkdir -p types && curl -o types/companies.d.ts https://example-data.com/types/companies.d.ts
import type { Company } from "./types/companies";

const res = await fetch(
  "https://example-data.com/api/v1/companies/1"
);
const company = (await res.json()) as Company;
        

Python example

          import requests

res = requests.get(
    "https://example-data.com/api/v1/companies/1"
)
companie = res.json()
        

Response

{
  "id": 1,
  "name": "Schroeder Inc",
  "slug": "schroeder-inc-1",
  "description": "Public-key analyzing function",
  "industryId": 5,
  "headquartersCountryAlpha2": "FI",
  "employeeCount": 48076,
  "foundedYear": 2020,
  "websiteUrl": "https://example.com/companies/schroeder-inc",
  "logoUrl": "https://picsum.photos/seed/company-1/200/200",
  "isHiring": true,
  "createdAt": "2015-04-14T18:56:49.601Z"
}