Get All Companies
curl --request GET \
--url https://api.example.com/api/v1/companiesimport requests
url = "https://api.example.com/api/v1/companies"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/v1/companies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/companies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/companies"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/companies")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/companies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyCompany
Get All Companies
Retrieve a paginated list of companies with optional filters
GET
/
api
/
v1
/
companies
Get All Companies
curl --request GET \
--url https://api.example.com/api/v1/companiesimport requests
url = "https://api.example.com/api/v1/companies"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/v1/companies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/companies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/companies"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/companies")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/companies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyEndpoint
GET /api/v1/companies
http://localhost:3000/api/v1
This endpoint is public and does not require authentication.
Query Parameters
number
Page number for pagination (default: 1).
number
Number of results per page (default: 20).
string
Filter by company name (partial string match, case-insensitive).
string
Filter by industry (partial string match, case-insensitive).
enum
Filter by company size. -
SIZE_1_50 - 1-50 employees - SIZE_51_200 - 51-200 employees -
SIZE_201_1000 - 201-1000 employees - SIZE_1000_PLUS - 1000+ employeesenum
Filter by company type. -
STARTUP - SCALE_UP - ENTERPRISE - NON_PROFIT - GOVERNMENTstring
Filter by headquarters location (partial string match, case-insensitive).
boolean
Filter by verification status.
Response
{
"success": true,
"data": {
"companies": [
{
"id": "uuid",
"name": "Tech Corp",
"description": "A leading technology company",
"logoUrl": "https://...",
"industry": "Technology",
"size": "SIZE_201_1000",
"type": "ENTERPRISE",
"headquartersLocation": "Cairo, Egypt",
"foundedYear": 2015,
"websiteUrl": "https://techcorp.com",
"benefits": "Health insurance, remote work",
"linkedIn": "https://linkedin.com/company/techcorp",
"facebook": "https://facebook.com/techcorp",
"twitter": "https://twitter.com/techcorp"
}
],
"total": 50,
"page": 1,
"limit": 20,
"totalPages": 3
},
"message": "Company profiles retrieved successfully",
"meta": {
"timestamp": "2026-04-23T20:00:00.000Z",
"path": "/companies",
"method": "GET"
}
}
Error Responses
400 Bad Request - Validation Error
{
"success": false,
"error": {
"message": ["page must not be less than 1"],
"statusCode": 400,
"timestamp": "2026-04-23T20:00:00.000Z",
"path": "/companies",
"method": "GET",
"details": "Bad Request"
}
}
