# Search reports

Source: https://deeperesearch.com/docs/api/reference/operations/searchreports/

GET

/v1/reports

```js
const url = 'https://deeperesearch.com/v1/reports?q=example';
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);
}
```

```sh
curl --request GET \
  --url 'https://deeperesearch.com/v1/reports?q=example' \
  --header 'Authorization: Bearer <token>'
```

Full-text search across every report in the organization.

## Authorizations

- **[apiKey](https://deeperesearch.com/docs/api/reference/#apikey)**

## Parameters

### Query Parameters

**q**

required

string

Words to search for

## Responses

### 200

Matching reports

application/json

object

**object**

required

string

Allowed value: list

**data**

required

Array\<object>

object

**id**

required

string format: uuid

**object**

required

string

Allowed value: report

**research_id**

required

string format: uuid

**vendor**

required

Null for a synthesis report

string | null

**offering**

required

string | null

**kind**

required

string

Allowed values: vendor synthesis

**merge_run_id**

required

Any of:

- string

  string format: uuid

- null

  null

**merge**

required

For a synthesis report: how it was made

Any of:

- object

  object

  **id**

  required

  string format: uuid

  **model**

  required

  string

  **thinking**

  required

  string

  Allowed values: off low medium high

  **mode**

  required

  string

  Allowed values: comprehensive executive comparison

  **source_report_ids**

  required

  Array\<string>

  **excluded_reports**

  required

  Array\<object>

  A report left out of a merge, and why.

  object

  **report_id**

  required

  Any of:

  - string

    string format: uuid

  - null

    null

  **vendor**

  required

  string

  **offering**

  required

  string

  **reason**

  required

  string

  **charged_usd**

  required

  Any of:

  - number

    US dollars

    number

  - null

    null

  **two_stage**

  required

  boolean

- null

  string format: uuid

- string

  null

- null

  US dollars

  number

- number

  null

- null

  null

**body_markdown**

required

The report in Markdown, citing sources as \[n]

string

**citations**

required

Array\<object>

object

**index**

required

The number used in the report text, e.g. \[3]

integer

\>= -9007199254740991 <= 9007199254740991

**url**

required

string

**domain**

required

string | null

**title**

required

string | null

**snippet**

required

string | null

**images**

required

Array\<object>

object

**key**

required

string

**alt**

required

string | null

**mime_type**

required

string

**path**

required

string

**url**

required

Signed URL, valid for one hour; null in search results

string | null

**warnings**

required

Array\<string>

**created_at**

required

ISO 8601 timestamp, UTC

string

#### Example

```json
{
  "object": "list",
  "data": [
    {
      "object": "report",
      "kind": "vendor",
      "merge": {
        "thinking": "off",
        "mode": "comprehensive"
      }
    }
  ]
}
```

### 401

Missing or invalid API key (unauthorized)

application/json

object

**error**

required

object

**code**

required

Stable, machine-readable error code. See Errors in the docs.

string

**message**

required

What went wrong, written for people

string

#### Example generated

```json
{
  "error": {
    "code": "example",
    "message": "example"
  }
}
```

### 422

Invalid request; the message names the field (invalid_request, exceeds_max_cost, vendor_unavailable, …)

application/json

object

**error**

required

object

**code**

required

Stable, machine-readable error code. See Errors in the docs.

string

**message**

required

What went wrong, written for people

string

#### Example generated

```json
{
  "error": {
    "code": "example",
    "message": "example"
  }
}
```

### 429

Rate limit, spending limit or quota reached (rate_limited, limit_reached, quota_exceeded). See Retry-After.

application/json

object

**error**

required

object

**code**

required

Stable, machine-readable error code. See Errors in the docs.

string

**message**

required

What went wrong, written for people

string

#### Example generated

```json
{
  "error": {
    "code": "example",
    "message": "example"
  }
}
```
