{
  "openapi": "3.1.0",
  "info": {
    "title": "ActAI Compliance Open Data",
    "version": "1.0.0",
    "summary": "Read-only static JSON, CSV and Markdown endpoints with ActAI Compliance guides and the EU AI Act timeline.",
    "description": "No authentication and no rate-limit keys are needed. Data is licensed CC BY 4.0, please attribute ActAI Compliance and link to the page you used. General information, not legal advice.",
    "license": {
      "name": "CC BY 4.0",
      "url": "https://creativecommons.org/licenses/by/4.0/"
    },
    "contact": {
      "name": "ActAI Compliance",
      "email": "isaac@actaicompliance.com",
      "url": "https://actaicompliance.com/about/"
    }
  },
  "servers": [
    {
      "url": "https://actaicompliance.com"
    }
  ],
  "security": [],
  "externalDocs": {
    "description": "Open data documentation",
    "url": "https://actaicompliance.com/open-data/"
  },
  "paths": {
    "/data/guides.json": {
      "get": {
        "operationId": "getGuidesIndex",
        "summary": "Index of all guides with metadata",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GuidesIndex"
                }
              }
            }
          }
        }
      }
    },
    "/data/eu-ai-act-timeline.json": {
      "get": {
        "operationId": "getEuAiActTimelineJson",
        "summary": "EU AI Act key dates as JSON",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Timeline"
                }
              }
            }
          }
        }
      }
    },
    "/data/eu-ai-act-timeline.csv": {
      "get": {
        "operationId": "getEuAiActTimelineCsv",
        "summary": "EU AI Act key dates as CSV",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/guides/{slug}.md": {
      "get": {
        "operationId": "getGuideMarkdown",
        "summary": "Markdown copy of a guide",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "eu-ai-act-explained",
                "us-ai-regulation",
                "us-state-ai-laws",
                "uk-ai-regulation",
                "canada-ai-regulation",
                "china-ai-regulation",
                "which-ai-laws-apply-to-you",
                "australia-ai-regulation",
                "eu-ai-act-2-december-2026-deadline",
                "eu-ai-act-annex-iii-high-risk-ai",
                "eu-ai-act-annex-iv-technical-documentation",
                "eu-ai-act-conformity-assessment",
                "is-my-ai-system-high-risk",
                "us-state-ai-laws-1-january-2027"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Guide not found"
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "operationId": "getLlmsTxt",
        "summary": "Short LLM-friendly site summary with key facts",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/llms-full.txt": {
      "get": {
        "operationId": "getLlmsFullTxt",
        "summary": "Full text of every guide in Markdown",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/feed.xml": {
      "get": {
        "operationId": "getRssFeed",
        "summary": "RSS feed of guides",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/rss+xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Guide": {
        "type": "object",
        "required": [
          "slug",
          "title",
          "region",
          "url"
        ],
        "properties": {
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "region": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "markdown_url": {
            "type": "string",
            "format": "uri"
          },
          "image": {
            "type": "string",
            "format": "uri"
          },
          "published": {
            "type": "string",
            "format": "date"
          },
          "last_reviewed": {
            "type": "string",
            "format": "date"
          },
          "word_count": {
            "type": "integer"
          }
        }
      },
      "GuidesIndex": {
        "type": "object",
        "properties": {
          "publisher": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "license": {
            "type": "string"
          },
          "license_url": {
            "type": "string",
            "format": "uri"
          },
          "last_verified": {
            "type": "string",
            "format": "date"
          },
          "guides": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Guide"
            }
          }
        }
      },
      "TimelineEntry": {
        "type": "object",
        "required": [
          "date",
          "event",
          "status"
        ],
        "properties": {
          "date": {
            "type": "string",
            "format": "date"
          },
          "event": {
            "type": "string"
          },
          "applies_to": {
            "type": "string"
          },
          "note": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "in effect",
              "upcoming"
            ]
          }
        }
      },
      "Timeline": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "publisher": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "license": {
            "type": "string"
          },
          "license_url": {
            "type": "string",
            "format": "uri"
          },
          "last_verified": {
            "type": "string",
            "format": "date"
          },
          "disclaimer": {
            "type": "string"
          },
          "dates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TimelineEntry"
            }
          }
        }
      }
    }
  }
}