> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.termina.ai/api-reference/deal-management/deal/get-comparable-deals/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.termina.ai/_mcp/server. # Comparable Deals GET https://app.termina.ai/api/v1/group/{group_id}/deal/{deal_id}/comparable-deals Get deals comparable to the current deal. Categories are required for meaningful comparison. Only deals with overlapping categories will be returned. If the current deal has no categories, no comparable deals will be returned. Returns the top 5 most recent deals with overlapping categories, sorted by updated timestamp. Reference: https://docs.termina.ai/api-reference/deal-management/deal/get-comparable-deals ## Authentication - `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer `, where token is your auth token. ## Servers - `https://app.termina.ai` (Production server, default) - `https://app.termina.dev` (Development server) - `http://localhost:8000` (Local development server) ## Request ### Path parameters - `group_id` (integer, required) - `deal_id` (integer, required) ### Query parameters - `category` (list of string, required) ## Response ### 200 Successful Response - `list of DealWithFilesResponse` ## Errors ### 422 Unprocessable Entity Error Validation Error - `detail` (list of ValidationError, optional) ## Types ### DealWithFilesResponse - `round_name` (string, required) — The name of the round - `id` (integer, required) - `group_id` (integer, required) - `company` (CompanyResponse, required) - `files` (list of FileResponse, required, nullable) - `notes` (string, optional, nullable) — Notes about the deal - `priority` (enum, optional, nullable) — The priority of the deal - Allowed values: `low`, `normal`, `high`, `urgent` - `status` (enum, optional, nullable) — Deal status tracking where a deal is in the diligence workflow. NOTE: We use lowercase values everywhere (DB and API) to keep things simple. No case conversion needed - what the user sends is what we store. The members are lower case because sqlalchemy uses the member names, not the values. In the future, we're going to want to make all enums in the database consistent. In this case since it's also used in search and filtering, it's important to get it right *now*. - Allowed values: `intake`, `exploring`, `meet`, `get_data`, `queued`, `run_analysis`, `finalize`, `done`, `closed` - `round_amount` (integer, optional, nullable) — The dollar amount to be raised of the round - `round_target` (integer, optional, nullable) — The target post-money dollar amount of the round - `tags` (list of string, optional, nullable) — The tags associated with the deal - `company_summary` (string, optional, nullable) — The summary of the company - `deal_lead_id` (integer, optional, nullable) — The id of the user who is the deal lead - `created_at` (string, optional) - `updated_at` (string, optional, nullable) - `is_archived` (boolean, optional, nullable) - `group` (BasicGroupResponse, optional, nullable) — Minimal group response - excludes computed fields requiring relationships - `data` (DealDataAvailabilityResponse, optional, nullable) - `categories` (list of string, optional, nullable) - `deal_lead` (DealLeadUserResponse, optional, nullable) ### ValidationError - `loc` (list of ValidationErrorLocItems, required) - `msg` (string, required) - `type` (string, required) - `input` (any, optional) - `ctx` (ValidationErrorCtx, optional) ### CompanyResponse - `name` (string, required) — The name of the company - `domain` (string, required) — The domain of the company - `id` (integer, required) - `group_id` (integer, required) - `thumbnail_url` (string, optional, nullable) — The thumbnail URL of the company - `created_at` (string, optional) - `updated_at` (string, optional, nullable) - `is_archived` (boolean, optional, nullable) ### FileResponse - `name` (string, required) — The human-readable name of the file - `id` (integer, required) - `deal_id` (integer, required, nullable) - `type` (enum, optional, nullable) — The type of the file - Allowed values: `deck`, `financials`, `raw_data`, `snapshot`, `full`, `mini`, `nano`, `other` - `created_at` (string, optional) - `updated_at` (string, optional, nullable) - `is_archived` (boolean, optional, nullable) - `filesize` (integer, optional, default: 0) — The size of the file in bytes ### BasicGroupResponse Minimal group response - excludes computed fields requiring relationships - `id` (integer, required) - `name` (string, required) - `account` (string, required) - `thumbnail_url` (string, optional, nullable) - `chatbot_enabled` (boolean, optional, default: false) ### DealDataAvailabilityResponse - `financials_exist` (boolean, required) — Financials data has been processed for this deal - `talent_exists` (boolean, required) — Talent data has been processed for this deal - `product_metrics` (list of ProductInfoResponse, required) — List of which product metrics are available for this deal - `unit_economics_metrics` (list of UnitEconomicsInfoResponse, required) — List of which user types with unit economics metrics are available for this deal - `benchmark_user_types` (list of string, required) — List of user types with benchmarks available for this deal - `excel_export_exists` (boolean, required) — Whether the data export is available for this deal - `benchmark_categories` (list of string, required, deprecated) — List of categories applied to the company associated with this deal - `balance_sheet_exists` (boolean, optional, default: false) — Balance sheet data has been processed for this deal ### DealLeadUserResponse - `name` (string, required) — The name of the user - `email` (string, required) — The email address of the user - `thumbnail_url` (string, optional, nullable) — The thumbnail URL of the user ### ValidationErrorLocItems ### ValidationErrorCtx ### ProductInfoResponse - `user_type` (string, required) - `metric` (string, required) ### UnitEconomicsInfoResponse - `user_type` (string, required) ## Examples **Response** ```json [ { "round_name": "string", "id": 1, "group_id": 1, "company": { "name": "string", "domain": "example.com", "id": 1, "group_id": 1, "thumbnail_url": "string", "created_at": "2024-01-15T09:30:00Z", "updated_at": "2024-01-15T09:30:00Z", "is_archived": true }, "files": [ { "name": "string", "id": 1, "deal_id": 1, "type": "deck", "created_at": "2024-01-15T09:30:00Z", "updated_at": "2024-01-15T09:30:00Z", "is_archived": true, "filesize": 0 } ], "notes": "string", "priority": "low", "status": "intake", "round_amount": 1, "round_target": 1, "tags": [ "string" ], "company_summary": "string", "deal_lead_id": 1, "created_at": "2024-01-15T09:30:00Z", "updated_at": "2024-01-15T09:30:00Z", "is_archived": true, "group": { "id": 1, "name": "string", "account": "string", "thumbnail_url": "string", "chatbot_enabled": false }, "data": { "financials_exist": true, "talent_exists": true, "product_metrics": [ { "user_type": "consumer", "metric": "revenue" } ], "unit_economics_metrics": [ { "user_type": "consumer" } ], "benchmark_user_types": [ "consumer" ], "excel_export_exists": true, "benchmark_categories": [ "saas", "fintech" ], "balance_sheet_exists": false }, "categories": [ "string" ], "deal_lead": { "name": "string", "email": "string", "thumbnail_url": "string" } } ] ``` **SDK Code** ```python import requests url = "https://app.termina.ai/api/v1/group/1/deal/1/comparable-deals" querystring = {"category":"[\"string\"]"} headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers, params=querystring) print(response.json()) ``` ```javascript const url = 'https://app.termina.ai/api/v1/group/1/deal/1/comparable-deals?category=%5B%22string%22%5D'; const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://app.termina.ai/api/v1/group/1/deal/1/comparable-deals?category=%5B%22string%22%5D" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby require 'uri' require 'net/http' url = URI("https://app.termina.ai/api/v1/group/1/deal/1/comparable-deals?category=%5B%22string%22%5D") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://app.termina.ai/api/v1/group/1/deal/1/comparable-deals?category=%5B%22string%22%5D") .header("Authorization", "Bearer ") .asString(); ``` ```php request('GET', 'https://app.termina.ai/api/v1/group/1/deal/1/comparable-deals?category=%5B%22string%22%5D', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://app.termina.ai/api/v1/group/1/deal/1/comparable-deals?category=%5B%22string%22%5D"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://app.termina.ai/api/v1/group/1/deal/1/comparable-deals?category=%5B%22string%22%5D")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```