Organizations
Ce contenu n’est pas encore disponible dans votre langue.
Overview
Section titled “Overview”The Organizations resource provides fake company data with names, descriptions, industries, sizes, websites, and logos.
Endpoints
Section titled “Endpoints”| Method | Endpoint | Description |
|---|---|---|
| GET | /v1/organizations | List all organizations |
| GET | /v1/organizations/:id | Get a specific organization |
| GET | /v1/organizations/:id/departments | Get organization's departments |
| GET | /v1/organizations/:id/employees | Get organization's employees |
| GET | /v1/organizations/:id/projects | Get organization's projects |
Organization Object
Section titled “Organization Object”{ "id": 1, "name": "Acme Corporation", "slug": "acme-corporation", "description": "Acme Corporation is a leading provider of innovative solutions.", "industry": "Technology", "size": "enterprise", "website": "https://example.com", "logo": "https://example.com/logo.png", "createdAt": "2026-01-15T10:30:00.000Z", "updatedAt": "2026-01-15T10:30:00.000Z"}| Field | Type | Description |
|---|---|---|
id |
number |
Unique identifier |
name |
string |
Organization name |
slug |
string |
URL-friendly unique slug |
description |
string |
Organization description |
industry |
string |
Industry sector |
size |
string |
Organization size |
website |
string |
Website URL |
logo |
string |
Logo image URL |
createdAt |
string |
ISO 8601 timestamp |
updatedAt |
string |
ISO 8601 timestamp |
List Organizations
Section titled “List Organizations”curl https://api.phantomjson.app/v1/organizationsQuery Parameters
Section titled “Query Parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
page |
number |
1 |
Page number |
limit |
number |
20 |
Items per page (max: 100) |
sort |
string |
— | Sort field and direction |
q |
string |
— | Search query |
fields |
string |
— | Fields to return |
industry |
string |
— | Filter by industry |
size |
string |
— | Filter by size |
Response
Section titled “Response”{ "data": [ { "id": 1, "name": "Acme Corporation", "slug": "acme-corporation", "industry": "Technology", "size": "enterprise" } ], "meta": { "total": 20, "page": 1, "limit": 20, "totalPages": 1 }}Get Organization by ID
Section titled “Get Organization by ID”curl https://api.phantomjson.app/v1/organizations/1Response
Section titled “Response”{ "data": { "id": 1, "name": "Acme Corporation", "slug": "acme-corporation", "description": "Acme Corporation is a leading provider of innovative solutions.", "industry": "Technology", "size": "enterprise", "website": "https://example.com", "logo": "https://example.com/logo.png" }}Get Organization’s Departments
Section titled “Get Organization’s Departments”curl https://api.phantomjson.app/v1/organizations/1/departmentsResponse
Section titled “Response”{ "data": [ { "id": 1, "organizationId": 1, "name": "Engineering", "slug": "engineering", "description": "Software engineering department" } ], "meta": { "total": 5, "page": 1, "limit": 20, "totalPages": 1 }}Get Organization’s Employees
Section titled “Get Organization’s Employees”curl https://api.phantomjson.app/v1/organizations/1/employeesResponse
Section titled “Response”{ "data": [ { "id": 1, "organizationId": 1, "firstName": "Alice", "lastName": "Johnson", "email": "alice@example.com", "jobTitle": "Software Engineer" } ], "meta": { "total": 50, "page": 1, "limit": 20, "totalPages": 3 }}Get Organization’s Projects
Section titled “Get Organization’s Projects”curl https://api.phantomjson.app/v1/organizations/1/projectsResponse
Section titled “Response”{ "data": [ { "id": 1, "organizationId": 1, "name": "Project Alpha", "slug": "project-alpha", "status": "planning" } ], "meta": { "total": 10, "page": 1, "limit": 20, "totalPages": 1 }}Examples
Section titled “Examples”Search Organizations
Section titled “Search Organizations”curl "https://api.phantomjson.app/v1/organizations?q=acme"Filter by Industry
Section titled “Filter by Industry”curl "https://api.phantomjson.app/v1/organizations?industry=technology"Filter by Size
Section titled “Filter by Size”curl "https://api.phantomjson.app/v1/organizations?size=enterprise"Field Selection
Section titled “Field Selection”curl "https://api.phantomjson.app/v1/organizations?fields=id,name,industry,size"Combined Query
Section titled “Combined Query”# Large technology companies sorted by namecurl "https://api.phantomjson.app/v1/organizations?industry=technology&size=enterprise&sort=name:asc&fields=id,name,size"Industries
Section titled “Industries”Available industry sectors:
TechnologyFinanceHealthcareEducationRetailManufacturingEnergyMediaAgricultureConstructionTransportationHospitalityReal EstateTelecommunicationsEntertainment
Available organization sizes:
startupsmallmediumlargeenterprise
Relations
Section titled “Relations”- Departments — Each organization has many departments (access via
/v1/organizations/:id/departments) - Employees — Each organization has many employees (access via
/v1/organizations/:id/employees) - Teams — Each organization has many teams
- Projects — Each organization has many projects (access via
/v1/organizations/:id/projects)
