example-data.com
Menu
Browse docs and collections

Overview

companies / #18

Component variants

Related

Referenced by

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/companies/18"
);
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/18"
);
const company = (await res.json()) as Company;

Python example

import requests

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

Response

{
  "id": 18,
  "name": "Schmeler - Muller",
  "slug": "schmeler-muller-18",
  "description": "Polarised system-worthy policy",
  "industryId": 2,
  "headquartersCountryAlpha2": "PH",
  "employeeCount": 45648,
  "foundedYear": 1961,
  "websiteUrl": "https://example.com/companies/schmeler-muller",
  "logoUrl": "https://picsum.photos/seed/company-18/200/200",
  "isHiring": false,
  "createdAt": "2014-04-29T21:10:22.245Z"
}