{
  "openapi": "3.0.1",
  "info": {
    "title": "Regulatory Intelligence API - AI Compliance Radar",
    "description": "The compliance radar AI agents trust. Extract structured requirements, deadlines, and compliance checklists from Federal Register, regulations.gov, and state regulations.",
    "version": "1.0",
    "x-build-id": "gZFyqugmLE7RUuXK3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ai_solutionist~regulatory-intelligence-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ai_solutionist-regulatory-intelligence-api",
        "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/ai_solutionist~regulatory-intelligence-api/runs": {
      "post": {
        "operationId": "runs-sync-ai_solutionist-regulatory-intelligence-api",
        "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/ai_solutionist~regulatory-intelligence-api/run-sync": {
      "post": {
        "operationId": "run-sync-ai_solutionist-regulatory-intelligence-api",
        "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",
        "required": [
          "taskMode"
        ],
        "properties": {
          "taskMode": {
            "title": "Task Mode",
            "enum": [
              "federal_register",
              "regulations_gov",
              "agency_guidance",
              "compliance_monitor",
              "deadline_tracker",
              "impact_analysis",
              "state_regulations",
              "full_intelligence"
            ],
            "type": "string",
            "description": "Optimized presets for different regulatory intelligence workflows. Each mode extracts different data and structures output for specific use cases.",
            "default": "federal_register"
          },
          "searchQuery": {
            "title": "Search Query",
            "type": "string",
            "description": "Keywords to search for in regulations. Supports boolean operators (AND, OR, NOT). Examples: 'artificial intelligence', 'AI transparency disclosure', 'healthcare data privacy'"
          },
          "agencies": {
            "title": "Agencies",
            "type": "array",
            "description": "Filter by specific federal agencies. Common agencies: FTC, FDA, SEC, HHS, DOL, EPA, FCC, CFPB, OSHA. Leave empty for all agencies.",
            "items": {
              "type": "string"
            }
          },
          "regulationTypes": {
            "title": "Regulation Types",
            "type": "array",
            "description": "Filter by type of regulatory document",
            "items": {
              "type": "string",
              "enum": [
                "proposed_rule",
                "final_rule",
                "notice",
                "guidance",
                "enforcement",
                "advisory"
              ]
            },
            "default": [
              "proposed_rule",
              "final_rule"
            ]
          },
          "dateRange": {
            "title": "Date Range",
            "enum": [
              "7d",
              "30d",
              "90d",
              "180d",
              "1y",
              "all"
            ],
            "type": "string",
            "description": "How far back to search for regulations",
            "default": "30d"
          },
          "states": {
            "title": "States (for state_regulations mode)",
            "type": "array",
            "description": "US states to include for state regulation tracking. Use 2-letter codes (CO, CA, NY, TX, FL). Currently supports select states with more coming.",
            "items": {
              "type": "string"
            }
          },
          "topics": {
            "title": "Topic Categories",
            "type": "array",
            "description": "Filter by regulatory topic areas",
            "items": {
              "type": "string",
              "enum": [
                "artificial_intelligence",
                "data_privacy",
                "cybersecurity",
                "healthcare",
                "financial_services",
                "employment",
                "environmental",
                "consumer_protection",
                "telecommunications",
                "government_contracts"
              ]
            },
            "default": [
              "artificial_intelligence"
            ]
          },
          "baselineRunId": {
            "title": "Baseline Run ID (for compliance_monitor)",
            "type": "string",
            "description": "Previous run ID to compare against for change detection. Leave empty for first run."
          },
          "maxResults": {
            "title": "Maximum Results",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of regulations to extract per source",
            "default": 50
          },
          "extractRequirements": {
            "title": "Extract Requirements",
            "type": "boolean",
            "description": "Parse and structure specific compliance requirements from regulation text",
            "default": true
          },
          "extractDeadlines": {
            "title": "Extract Deadlines",
            "type": "boolean",
            "description": "Extract all dates, deadlines, and effective dates with context",
            "default": true
          },
          "extractPenalties": {
            "title": "Extract Penalties",
            "type": "boolean",
            "description": "Extract penalty amounts, enforcement mechanisms, and violation consequences",
            "default": true
          },
          "extractAffectedParties": {
            "title": "Extract Affected Parties",
            "type": "boolean",
            "description": "Identify who/what entities are affected by the regulation",
            "default": true
          },
          "generateChecklist": {
            "title": "Generate Compliance Checklist",
            "type": "boolean",
            "description": "Create actionable compliance checklist from requirements",
            "default": true
          },
          "ragChunkSize": {
            "title": "RAG Chunk Size (tokens)",
            "minimum": 200,
            "maximum": 2000,
            "type": "integer",
            "description": "Target token count for RAG chunks. Optimized for embedding models and vector databases.",
            "default": 750
          },
          "includeLegalCitations": {
            "title": "Include Legal Citations",
            "type": "boolean",
            "description": "Generate Bluebook-style legal citations for all regulations",
            "default": true
          },
          "includeAgentSummary": {
            "title": "Include Agent Summary",
            "type": "boolean",
            "description": "Generate one-liner summaries optimized for AI agent consumption",
            "default": true
          },
          "outputFormat": {
            "title": "Output Format",
            "enum": [
              "full",
              "compact",
              "rag_only",
              "checklist_only"
            ],
            "type": "string",
            "description": "Structure of the output data",
            "default": "full"
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Configure proxy for accessing regulatory sources (advanced)"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}