> For the complete documentation index, see [llms.txt](https://docs.companies.zone/api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.companies.zone/api-docs/meta/stats.md). Agents can also search and read this documentation through its [MCP server](https://docs.companies.zone/api-docs/~gitbook/mcp).

# Stats

Stats about Companies Zone itself

New stats should be published roughly every 60 minutes. As the time required by the publishing service to collect stats can vary, you shouldn't poll more often than every 90 minutes if you're trying to keep a local database in sync.

## Get Latest Stats

<mark style="color:blue;">`GET`</mark> `https://companies.zone/api/stats`

{% tabs %}
{% tab title="200: OK " %}

```json
{
    // Time stats last published
    "date": "2023-10-14T15:49:10.369Z",
    "documents": {
        "count": 30386907,
        "pageCount": 134558837,
        "uniqueFilers": 6444946
    }
}
```

{% endtab %}
{% endtabs %}

## Get Stats As of a Certain Time

<mark style="color:blue;">`GET`</mark> `https://companies.zone/api/stats/{time}`

Get the last published stats before a certain time (i.e. the latest stats that were published at the specified time)

#### Path Parameters

| Name                                   | Type    | Description                                 |
| -------------------------------------- | ------- | ------------------------------------------- |
| time<mark style="color:red;">\*</mark> | Instant | Time in Java Instant format (i.e. ISO-8601) |

{% tabs %}
{% tab title="200: OK " %}

```json
{
    // Time stats last published
    "date": "2023-10-14T15:49:10.369Z",
    "documents": {
        "count": 30386907,
        "pageCount": 134558837,
        "uniqueFilers": 6444946
    }
}
```

{% endtab %}

{% tab title="400: Bad Request Invalid timestamp" %}

```json
{
    "code": 400,
    "error": "BAD_REQUEST",
    "message": "Unable to parse timestamp"
}
```

{% endtab %}
{% endtabs %}
