---
title: "Compare state regulations"
method: GET
path: "/v1/regulations/compare"
tags: ["Regulations"]
---

# Compare state regulations

`GET /v1/regulations/compare`

## Request

- Base URL: `https://api.hempdata.io`
- URL: `https://api.hempdata.io/v1/regulations/compare`
- Auth: HTTP bearer

Side-by-side comparison of regulations across two or more states. Useful for multi-state compliance planning.

## Query parameters

- `states` string, required
- `substance` string
- `product_type` string

## Response `200`

Comparison results grouped by state

- ApiResponseComparison
  - `success` boolean, required
  - `data` object, required: Comparison results keyed by state code
  - `meta` object
    - `states_compared` string[]
    - `substance_filter` string, nullable
    - `product_type_filter` string, nullable
  - `errors` ApiError[], nullable
    - `code` string, required: Machine-readable error code
    - `message` string, required: Human-readable error message
    - `field` string, nullable: Field that caused the error, if applicable

## Other responses

- `400`: Fewer than 2 states provided

---

[API](https://skmtc.dev/hempdata/apis/hempdata-api.md) · [All operations](https://skmtc.dev/hempdata/apis/hempdata-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hempdata/apis/hempdata-api/revisions/2c2946badd40?raw)
