> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.taktoria.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.taktoria.com/_mcp/server.

# Get

GET https://api.taktoria.com/api/v1/launch-analytics

How launches have shipped, where reviews hold them up, and what is
coming: what LaunchCal's Analytics page shows. Requires
`launches:read`. Without `year`, the period numbers cover all time.

Reference: https://docs.taktoria.com/api-reference/launch-analytics/get

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Servers

- `https://api.taktoria.com/api/v1` (Production, default)
- `http://localhost:3000/api/v1` (Local)

## Request

### Query parameters

- `year` (integer, optional) — A fiscal year, as the workspace's fiscal year start names it.
- `quarter` (integer, optional) — A fiscal quarter, 1 to 4, of `year`. Needs `year`; left out, the whole year.

## Response

### 200

- `period` (AnalyticsPeriod, required) — The fiscal period the period numbers cover; both absent for all time.
- `shipped` (ShippedSummary, required) — Launches that shipped in the period, and how they did against their planned dates.
- `quarters` (list of QuarterShipped, required) — The eight fiscal quarters ending with the chosen one (the year's last, or this one for all time), oldest first.
- `inFlight` (InFlight, required) — Published launches that have neither launched nor been put on hold, as of now.
- `reviews` (list of TeamReviews, required) — Every functional team with a decision in the period or a review overdue.
- `sentiment` (SentimentCounts, required) — Insights recorded in the period, by sentiment.
- `upcoming` (Upcoming, required) — Launches in flight planned for this month and the five after it.

## Errors

### 401 Unauthorized Error

- `error` (ErrorDetail, required)

### 422 Validation Error

- `error` (ErrorDetail, required)

### 429 Too Many Requests Error

Rate limited (`rate_limited`): the key, the signed-in person, the workspace or an expensive endpoint's own budget is used up for now. `Retry-After` says how many seconds to wait, and `details` names the `policy`, its `limit`, `windowSeconds` and `retryAfter`. Every answer to an authenticated request carries the IETF `RateLimit-Policy` and `RateLimit` headers, so a client can slow down before it gets this. Nothing was done; wait and send it again. See "Rate limits".

- `error` (ErrorDetail, required)

## Types

### AnalyticsPeriod

The fiscal period the period numbers cover; both absent for all time.

- `year` (integer, optional)
- `quarter` (integer, optional)

### ShippedSummary

Launches that shipped in the period, and how they did against their planned dates.

- `launched` (integer, required)
- `onTime` (integer, required) — Shipped on or before the day they were planned for.
- `late` (integer, required)
- `previous` (integer, optional) — Shipped in the period before, as long as this one. Absent for all time.
- `onTimeRate` (integer, optional) — `onTime` as a whole percentage of `launched`. Absent when nothing shipped.
- `medianDaysLate` (double, optional) — Among the late ones, the median days between planned and actual dates.
- `medianLeadDays` (double, optional) — The median days from a launch being added to it shipping.

### QuarterShipped

- `year` (integer, required)
- `quarter` (integer, required)
- `onTime` (integer, required)
- `late` (integer, required)

### InFlight

Published launches that have neither launched nor been put on hold, as of now.

- `total` (integer, required)
- `byStatus` (list of StatusCount, required)
- `byHealth` (HealthCounts, required) — Launches in flight by the health their newest update gives; `NONE` for no update yet.

### TeamReviews

One functional team's reviews.

- `teamId` (string, required)
- `team` (string, required)
- `teamSlug` (string, required)
- `decided` (integer, required) — Steps approved, denied or excepted in the period.
- `approved` (integer, required)
- `denied` (integer, required)
- `exceptions` (integer, required)
- `decidedByDue` (integer, required) — Of those decided, how many were decided on or before their due date.
- `overdue` (integer, required) — Open steps on launches in flight whose due date has passed, as of today.
- `decidedByDueRate` (integer, optional) — `decidedByDue` as a whole percentage of the decided steps that had a due date.

### SentimentCounts

Insights recorded in the period, by sentiment.

- `POSITIVE` (integer, required)
- `NEUTRAL` (integer, required)
- `NEGATIVE` (integer, required)

### Upcoming

Launches in flight planned for this month and the five after it.

- `months` (list of MonthCount, required)
- `onHolidays` (list of LaunchOnHoliday, required)

### ErrorDetail

- `code` (string, required) — A stable machine-readable code such as `not_found`.
- `message` (string, required)
- `details` (any, optional)

### StatusCount

- `status` (enum, required) — Where a launch sits in its lifecycle.
  - Allowed values: `SCOPING`, `DESIGN`, `IN_DEVELOPMENT`, `TESTING`, `LAUNCHED`, `PENDING`, `ON_HOLD`
- `count` (integer, required)

### HealthCounts

Launches in flight by the health their newest update gives; `NONE` for no update yet.

- `ON_TRACK` (integer, required)
- `AT_RISK` (integer, required)
- `OFF_TRACK` (integer, required)
- `NONE` (integer, required)

### MonthCount

- `month` (string, required) — `YYYY-MM`.
- `count` (integer, required)

### LaunchOnHoliday

- `id` (string, required)
- `name` (string, required)
- `date` (date, required)
- `holidays` (list of string, required) — The public holidays in the workspace's markets that day.

## Examples

**Response**

```json
{
  "period": {
    "year": 1,
    "quarter": 1
  },
  "shipped": {
    "launched": 1,
    "onTime": 1,
    "late": 1,
    "previous": 1,
    "onTimeRate": 1,
    "medianDaysLate": 1.1,
    "medianLeadDays": 1.1
  },
  "quarters": [
    {
      "year": 1,
      "quarter": 1,
      "onTime": 1,
      "late": 1
    },
    {
      "year": 1,
      "quarter": 1,
      "onTime": 1,
      "late": 1
    }
  ],
  "inFlight": {
    "total": 1,
    "byStatus": [
      {
        "status": "SCOPING",
        "count": 1
      },
      {
        "status": "SCOPING",
        "count": 1
      }
    ],
    "byHealth": {
      "ON_TRACK": 1,
      "AT_RISK": 1,
      "OFF_TRACK": 1,
      "NONE": 1
    }
  },
  "reviews": [
    {
      "teamId": "teamId",
      "team": "team",
      "teamSlug": "teamSlug",
      "decided": 1,
      "approved": 1,
      "denied": 1,
      "exceptions": 1,
      "decidedByDue": 1,
      "overdue": 1,
      "decidedByDueRate": 1
    },
    {
      "teamId": "teamId",
      "team": "team",
      "teamSlug": "teamSlug",
      "decided": 1,
      "approved": 1,
      "denied": 1,
      "exceptions": 1,
      "decidedByDue": 1,
      "overdue": 1,
      "decidedByDueRate": 1
    }
  ],
  "sentiment": {
    "POSITIVE": 1,
    "NEUTRAL": 1,
    "NEGATIVE": 1
  },
  "upcoming": {
    "months": [
      {
        "month": "month",
        "count": 1
      },
      {
        "month": "month",
        "count": 1
      }
    ],
    "onHolidays": [
      {
        "id": "id",
        "name": "name",
        "date": "2023-01-15",
        "holidays": [
          "holidays",
          "holidays"
        ]
      },
      {
        "id": "id",
        "name": "name",
        "date": "2023-01-15",
        "holidays": [
          "holidays",
          "holidays"
        ]
      }
    ]
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.taktoria.com/api/v1/launch-analytics"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.taktoria.com/api/v1/launch-analytics';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

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://api.taktoria.com/api/v1/launch-analytics"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	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://api.taktoria.com/api/v1/launch-analytics")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.taktoria.com/api/v1/launch-analytics")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.taktoria.com/api/v1/launch-analytics', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.taktoria.com/api/v1/launch-analytics");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.taktoria.com/api/v1/launch-analytics")! 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()
```