example-data.com
Menu
Browse docs and collections

industries

industries

Page 2 of 2.

Overview

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/industries?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/industries?limit=25"
);
const { data, meta } = await res.json();

TypeScript example

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

const res = await fetch(
  "https://example-data.com/api/v1/industries?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Industry>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/industries",
    params={"limit": 25},
)
data = res.json()

Response

{
  "data": [
    {
      "id": 25,
      "name": "Industrial Machinery",
      "slug": "industrial-machinery",
      "sector": "Industrials",
      "description": "Equipment and machinery used in manufacturing and industrial processes."
    },
    {
      "id": 26,
      "name": "Aerospace & Defense",
      "slug": "aerospace-defense",
      "sector": "Industrials",
      "description": "Commercial aircraft, military hardware, and space systems."
    },
    {
      "id": 27,
      "name": "Construction",
      "slug": "construction",
      "sector": "Industrials",
      "description": "Building and infrastructure projects for residential and commercial use."
    }
  ],
  "meta": {
    "page": 2,
    "limit": 24,
    "total": 40,
    "totalPages": 2
  },
  "links": {
    "self": "/api/v1/industries?page=2&limit=24",
    "first": "/api/v1/industries?page=1&limit=24",
    "last": "/api/v1/industries?page=2&limit=24",
    "next": null,
    "prev": "/api/v1/industries?page=1&limit=24"
  }
}