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

# List analyses

GET https://api.siftsy.app/analyst/v1/analyses

Requires `analyses:read`. Newest first. Includes analyses created
with `POST /analyses` (`kind: snapshot` / `search` / `comparison`,
with `status`) and persisted campaign reports generated in Siftsy
(`kind: report`). Comparison rows sum `totalComments` and
`matchedComments` across their sides.
A sample of comments behind an analysis lives on
`GET /analyses/{analysisId}/comments`.

Reference: https://api.docs.siftsy.com/api-reference/siftsy-analyst-api/list-analyses

## Authentication

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

## Servers

- `https://api.siftsy.app/analyst/v1` (Production, default)
- `http://localhost:3000/analyst/v1` (Local development)

## Request

### Query parameters

- `limit` (integer, optional, default: 50)
- `kind` (enum, optional, default: all)
  - Allowed values: `all`, `snapshot`, `search`, `comparison`, `report`

## Response

### 200

Analysis summaries

- `data` (list of AnalysisSummary, optional)
- `meta` (EnvelopeAnalysisSummariesMeta, optional)

## Errors

### 400 Bad Request Error

Invalid request

- `any`

## Types

### AnalysisSummary

Row from `GET /analyses`. Client analyses carry `status`; reports are always `ready`.

- `id` (string, optional)
- `kind` (enum, optional)
  - Allowed values: `snapshot`, `search`, `comparison`, `report`
- `status` (enum, optional)
  - Allowed values: `queued`, `running`, `ready`, `failed`
- `createdAt` (string, optional, nullable)
- `completedAt` (string, optional, nullable)
- `expiresAt` (string, optional, nullable) — Client analyses expire 7 days after creation.
- `postCount` (integer, optional, nullable)
- `totalComments` (integer, optional, nullable)
- `matchedComments` (integer, optional, nullable)
- `selection` (AnalysisSelection, optional) — Which content the analysis covers. Provide exactly one of `postIds` or `posts`; `collectionId` may stand alone or be combined with `posts` filters to narrow within the collection. Resolves to at most 1,000 posts (newest first).
- `filters` (any, optional, nullable)
- `search` (any, optional, nullable)
- `url` (string, optional, nullable) — Absolute URL of this analysis on the host you called. Follow it as-is.
- `comments` (AnalysisSummaryComments, optional)

### EnvelopeAnalysisSummariesMeta

### AnalysisSelection

Which content the analysis covers. Provide exactly one of `postIds` or `posts`; `collectionId` may stand alone or be combined with `posts` filters to narrow within the collection. Resolves to at most 1,000 posts (newest first).

- `collectionId` (string, optional) — Only posts in this collection (and its sub-collections).
- `postIds` (list of string, optional) — Explicit post ids. Cannot be combined with `collectionId` or `posts`.
- `posts` (map from string to any, optional) — The same filters accepted by `GET /posts`: `link`, `account`, `tag`, `platform`, `posted_since`, `posted_until`, `updated_since`, `min_score` / `max_score`, the bucket percentage ranges (`min_positive_percent`, …), and `status` (`complete` by default).

### AnalysisSummaryComments

- `path` (string, optional) — Relative to the API base URL (`…/analyst/v1`).
- `url` (string, optional, nullable) — Absolute URL for `path`. Follow it as-is.

## Examples

**Response**

```json
{
  "data": [
    {
      "id": "string",
      "kind": "snapshot",
      "status": "queued",
      "createdAt": "string",
      "completedAt": "string",
      "expiresAt": "string",
      "postCount": 1,
      "totalComments": 1,
      "matchedComments": 1,
      "selection": {
        "collectionId": "col_launch",
        "posts": {
          "tag": "launch",
          "platform": "tiktok"
        }
      },
      "filters": null,
      "search": null,
      "url": "string",
      "comments": {
        "path": "string",
        "url": "string"
      }
    }
  ],
  "meta": {}
}
```

**SDK Code**

```python
import requests

url = "https://api.siftsy.app/analyst/v1/analyses"

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

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

print(response.json())
```

```javascript
const url = 'https://api.siftsy.app/analyst/v1/analyses';
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.siftsy.app/analyst/v1/analyses"

	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.siftsy.app/analyst/v1/analyses")

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.siftsy.app/analyst/v1/analyses")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.siftsy.app/analyst/v1/analyses', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.siftsy.app/analyst/v1/analyses");
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.siftsy.app/analyst/v1/analyses")! 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()
```