---
title: "Sort Companies"
method: POST
path: "/v2/companies/sort"
tags: ["Companies"]
---

# Sort Companies

`POST /v2/companies/sort`

## Request

- Base URL: `https://api.village.ai`
- URL: `https://api.village.ai/v2/companies/sort`
- Auth: HTTP bearer

Rank a list of companies by how well-connected you are to people there. Use this to prioritize target accounts by focusing on companies where you have the strongest network. Provide LinkedIn URLs or domains (up to 100) and get them sorted by connection strength score (highest first). Each result includes: score, score_label, LinkedIn URL, and domain. Warmth score, open-ended (higher is warmer): Excellent 10+, Very Good 7.5+, Good 4+, Okay 1+, Maybe 0.1+, below that Not enough data.

## Request body

- CompanySortRequest: Request to sort companies by warmth/connection strength
  - `companies` string[], required: Array of company URLs (LinkedIn URLs or domains)

## Response `200`

Companies sorted successfully

- object
  - `data` SortedCompany[], required: Array of companies sorted by warmth score (highest first)
    - `score` number, required: Warmth score, open-ended (higher is warmer): Excellent 10+, Very Good 7.5+, Good 4+, Okay 1+, Maybe 0.1+, below that Not enough data.
    - `score_label` string, required: Human-readable score label
    - `linkedin_url` string, required: LinkedIn company URL
    - `domain_name` string: Company domain
    - `url` string, required: Original URL provided in request
  - `metadata` object, required
    - `request_id` string, required

## Other responses

- `400`: Bad request - invalid parameters
- `401`: Unauthorized - missing or invalid authentication
- `500`: Internal server error

---

[API](https://skmtc.dev/village/apis/village-v2-api.md) - [All operations](https://skmtc.dev/village/apis/village-v2-api/llms.txt) - [OpenAPI document](https://skmtc.dev/village/apis/village-v2-api/revisions/aebe21a1a544?raw)
