> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.termina.ai/api-reference/data/benchmark/get-scaling/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.termina.ai/_mcp/server. # Benchmark Scaling GET https://app.termina.ai/api/v1/group/{group_id}/deal/{deal_id}/data/benchmark/scaling/{category} Get scaling models for a specific category. Scaling models show how metrics change as companies grow (e.g., how growth rates change with revenue scale). Each model contains raw data points, predicted trends, and confidence bands. **Parameters:** - `category`: The business category (e.g., "saas", "ai", "consumer") - `model`: Optional list of specific models to return (e.g., ["12m_growth_vs_scale"]) Reference: https://docs.termina.ai/api-reference/data/benchmark/get-scaling ## 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) - `category` (string, required) ### Query parameters - `model` (list of string, optional, nullable) ## Response ### 200 Successful Response - `map from string to ScaleModel` ## Errors ### 422 Unprocessable Entity Error Validation Error - `detail` (list of ValidationError, optional) ## Types ### ScaleModel - `raw_data` (list of map from string to double, required) — Raw data points used to generate the scaling model. Each dictionary contains exactly two key-value pairs representing the x-metric (typically a scale metric like revenue) and y-metric (the metric being modeled). The keys are dynamic metric names that vary by model - for example, '12m_growth_vs_scale' uses 'rolling_3m_annualized_revenue' (x) and 'cmgr12' (y). Use the /data/benchmark/metadata/models endpoint to see which columns each model uses. - `pred` (list of map from string to double, required) — Predicted center trend line of the scaling model. Each dictionary contains the same two metric keys as raw_data, representing the model's predicted y-value at each x-value along the trend line. - `bands` (list of BandResponse, required) — Bands representing the range of the scaling model. ### ValidationError - `loc` (list of ValidationErrorLocItems, required) - `msg` (string, required) - `type` (string, required) - `input` (any, optional) - `ctx` (ValidationErrorCtx, optional) ### BandResponse - `alpha` (double, required) — Quantile significance level for the band, which represents the share of data points expected to lie beyond the band. - `x` (list of double, optional) - `low` (list of double, optional) - `high` (list of double, optional) ### ValidationErrorLocItems ### ValidationErrorCtx ## Examples **Response** ```json { "12m_growth_vs_scale": { "raw_data": [ { "cmgr12": 0.075, "rolling_3m_annualized_revenue": 105000 }, { "cmgr12": 0.08, "rolling_3m_annualized_revenue": 110000 } ], "pred": [ { "cmgr12": 0.05, "rolling_3m_annualized_revenue": 100000 }, { "cmgr12": 0.01, "rolling_3m_annualized_revenue": 200000 } ], "bands": [ { "alpha": 0.2, "x": [ 10, 100, 1000 ], "low": [ 0.5, 0.6, 0.7 ], "high": [ 1, 1.2, 1.4 ] } ] } } ``` **SDK Code** ```python import requests url = "https://app.termina.ai/api/v1/group/1/deal/1/data/benchmark/scaling/category" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript const url = 'https://app.termina.ai/api/v1/group/1/deal/1/data/benchmark/scaling/category'; 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/data/benchmark/scaling/category" 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/data/benchmark/scaling/category") 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/data/benchmark/scaling/category") .header("Authorization", "Bearer ") .asString(); ``` ```php request('GET', 'https://app.termina.ai/api/v1/group/1/deal/1/data/benchmark/scaling/category', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://app.termina.ai/api/v1/group/1/deal/1/data/benchmark/scaling/category"); 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/data/benchmark/scaling/category")! 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() ```