# QueryLines E&S Insurance Premium Time Series

> QueryLines E&S Insurance Premium Time Series is a paid API for AI agents from api.querylines.com, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-14).

Returns U.S. excess & surplus lines insurance premium and policy-count time series data filtered by state, coverage line, and time period

## Facts

- Endpoint: GET https://api.querylines.com/v1/premium
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/querylines-e-s-insurance-premium-time-series-0a14c1d6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IhPz_q6jSbK0GHRhX2-vG

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability querylines-e-s-insurance-premium-time-series-0a14c1d6
```

Example prompt: Pull me the quarterly excess and surplus lines premium totals for Florida from January 2020 through December 2023, broken out by all coverage lines.

## When to prefer this

Use this endpoint when you need raw time series data — premium dollars or policy counts — for a specific U.S. state and E&S coverage line over a chosen time window. Prefer this over the year-over-year summary endpoint when you need granular monthly or quarterly trends rather than a comparative snapshot, and over the cross-state comparison endpoint when you are focused on a single state's history. Ideal for building charts, trend analyses, or feeding downstream models with historical E&S market data.

## Known failure modes

- State not yet supported returns an error or empty result — only FL, TX, CA, IL, WA, NY are live
- Requesting monthly granularity for NY will fail or return no data since NY is annual only
- CA monthly data only available from 2017 onward; earlier requests may return empty
- TX history only available to 2009; requests before that return no data
- Invalid state code returns a validation error
- Malformed date format (not YYYY-MM) returns a 400 error
- Coverage line code not recognized returns an error or falls back to 'all'
- Insufficient USDC balance or x402 payment failure blocks the query at $0.10 per call

## How this service works

U.S. excess & surplus (E&S / surplus lines) insurance premium and policy-count time series by state, coverage line, and month, quarter, or year. Aggregated from state stamping office publications; every response cites its source report. Florida live, more states coming. $0.10 per query. Free discovery endpoints: /v1/coverage and /v1/lines. Docs: https://api.querylines.com/openapi.json

## Output

A time series array of E&S insurance premium amounts and policy counts for the requested state, coverage line, and time period, with each data point citing its source stamping office report. Granularity can be monthly, quarterly, half-yearly, or annual depending on the parameter supplied.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "state"
     ],
     "properties": {
      "to": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}$",
       "description": "Month as YYYY-MM"
      },
      "from": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}$",
       "description": "Month as YYYY-MM"
      },
      "line": {
       "type": "string",
       "default": "all",
       "description": "Coverage line name or source code; 'all' for statewide totals"
      },
      "state": {
       "type": "string",
       "description": "Two-letter state code, e.g. FL"
      },
      "county": {
       "type": "string",
       "description": "County name (annual county-level data only); omit for statewide totals"
      },
      "granularity": {
       "enum": [
        "month",
        "quarter",
        "half",
        "year"
       ],
       "type": "string",
       "default": "month"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "period": "2026-06",
    "premium": 1877013891,
    "policy_count": 204624,
    "renewal_premium": null,
    "new_business_premium": null
   }
  ],
  "line": "all",
  "state": "FL",
  "source": "FSLSO FL Monthly Premium Report, June 2026",
  "data_as_of": "2026-06",
  "granularity": "month",
  "report_date": "2026-06-30"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/querylines-e-s-insurance-premium-time-series-0a14c1d6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.querylines.com](https://www.zero.xyz/host/api.querylines.com/llms.txt)
