{
  "openapi": "3.0.1",
  "info": {
    "title": "US State AI Law API: Statutes, Dates & Official Citations",
    "description": "Every US state AI law as structured, versioned JSON with official citations: obligations, staged effective dates, enforcement and amendment history. Includes documented cases where public trackers contradict the official record. Uncovered states return unknown, never 'no law'.",
    "version": "0.1",
    "x-build-id": "qmoIqUJr8f4GYKqKZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/friendlyapi~state-ai-law-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-friendlyapi-state-ai-law-tracker",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/friendlyapi~state-ai-law-tracker/runs": {
      "post": {
        "operationId": "runs-sync-friendlyapi-state-ai-law-tracker",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/friendlyapi~state-ai-law-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-friendlyapi-state-ai-law-tracker",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search_laws",
              "effective_calendar",
              "law_detail",
              "discrepancies",
              "coverage"
            ],
            "type": "string",
            "description": "search_laws = filtered law search; effective_calendar = what lands in a date window; law_detail = one law in full with the tracker discrepancies that bear on it; discrepancies = where the public trackers are wrong; coverage = counts, freshness and the honest coverage map (free)",
            "default": "coverage"
          },
          "state": {
            "title": "State / jurisdiction",
            "type": "string",
            "description": "State name or postal code (e.g. 'California' or 'CA'), 'District of Columbia'/'DC', or 'New York City'/'NYC'. A jurisdiction we have not swept returns UNKNOWN, never 'no law', read coverage_for_query on every response."
          },
          "category": {
            "title": "Category",
            "enum": [
              "",
              "comprehensive-ai",
              "ncii-digital-replica",
              "health-ai",
              "deepfakes-elections",
              "ai-hiring",
              "chatbot-disclosure",
              "gov-procurement"
            ],
            "type": "string",
            "description": "One of: comprehensive-ai, ncii-digital-replica, health-ai, deepfakes-elections, ai-hiring, chatbot-disclosure, gov-procurement",
            "default": ""
          },
          "status": {
            "title": "Status filter",
            "type": "array",
            "description": "Any of: effective, upcoming-effective-date, amended, enacted, enjoined_in_part, repealed. Empty = all. Repealed laws are kept in the dataset on purpose, several are still reported as live obligations by public trackers.",
            "items": {
              "type": "string"
            }
          },
          "in_force": {
            "title": "In force",
            "type": "array",
            "description": "Coarse binding flag, any of: yes, partial, not_yet, no. Use ['yes','partial'] for 'what binds me today'.",
            "items": {
              "type": "string"
            }
          },
          "effective_after": {
            "title": "Staged date on/after (search_laws)",
            "type": "string",
            "description": "ISO date. Matches laws with a staged date on or after this. Combined with effective_before, the SAME staged date must satisfy both, i.e. something happens inside your window."
          },
          "effective_before": {
            "title": "Staged date on/before (search_laws)",
            "type": "string",
            "description": "ISO date. Matches laws with a staged date on or before this."
          },
          "covers_text": {
            "title": "Who it covers contains",
            "type": "string",
            "description": "Substring match against the law's coverage text, e.g. 'insurer', 'employer', 'developers'."
          },
          "q": {
            "title": "Free-text search",
            "type": "string",
            "description": "Full-text search across each law's summary and obligations (plus its name and citation), e.g. 'impact assessment', 'utilization review', 'RAISE Act'."
          },
          "law_id": {
            "title": "Law ID (law_detail mode)",
            "type": "string",
            "description": "Stable id from any search result. Keyed on (state, citation of record), so it survives status, date, penalty and codified-cite changes."
          },
          "from_date": {
            "title": "Window start (effective_calendar mode)",
            "type": "string",
            "description": "ISO date, e.g. 2026-08-01"
          },
          "to_date": {
            "title": "Window end (effective_calendar mode)",
            "type": "string",
            "description": "ISO date, e.g. 2026-12-31"
          },
          "limit": {
            "title": "Max rows",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "1-500. Default 100 for search_laws, 500 for the calendar."
          },
          "offset": {
            "title": "Offset (search_laws)",
            "minimum": 0,
            "type": "integer",
            "description": "Pagination offset."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}