{
  "openapi": "3.0.1",
  "info": {
    "title": "Gov Radar — Regulations, Notices & Circulars",
    "description": "Official government updates in one feed: US Federal Register and SEC, GOV.UK, European Commission, India's RBI, SEBI, TRAI, CERC, CDSCO and DGFT, plus any gov RSS feed or 'What's new' page. Sector and keyword filters, only-new alerts, RSS, Slack. From $3 per 1,000 updates.",
    "version": "0.2",
    "x-build-id": "K5eispf7VzgKlCvoC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tacps126~gov-radar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tacps126-gov-radar",
        "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/tacps126~gov-radar/runs": {
      "post": {
        "operationId": "runs-sync-tacps126-gov-radar",
        "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/tacps126~gov-radar/run-sync": {
      "post": {
        "operationId": "run-sync-tacps126-gov-radar",
        "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": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words or phrases; an update matches when its title or summary contains any of them (whole words). Leave empty for everything from the chosen sources and sectors.",
            "items": {
              "type": "string"
            }
          },
          "sectors": {
            "title": "Sectors",
            "type": "array",
            "description": "Only updates about these sectors (matched on title and summary). Combine with keywords to narrow further.",
            "items": {
              "type": "string",
              "enum": [
                "banking",
                "securities",
                "insurance",
                "tax",
                "trade",
                "health",
                "food",
                "energy",
                "environment",
                "tech",
                "transport",
                "employment",
                "housing",
                "procurement",
                "defense",
                "education"
              ],
              "enumTitles": [
                "Banking & payments",
                "Securities & capital markets",
                "Insurance & pensions",
                "Tax & customs",
                "Trade, sanctions & export control",
                "Health & pharma",
                "Food & agriculture",
                "Energy",
                "Environment & climate",
                "Technology, AI & data",
                "Transport & aviation",
                "Employment & labour",
                "Housing & construction",
                "Public procurement",
                "Defence & security",
                "Education"
              ]
            }
          },
          "jurisdictions": {
            "title": "Countries / regions",
            "type": "array",
            "description": "Read every built-in source of these jurisdictions. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "us",
                "uk",
                "eu",
                "in"
              ],
              "enumTitles": [
                "United States",
                "United Kingdom",
                "European Union",
                "India"
              ]
            }
          },
          "sources": {
            "title": "Sources (optional)",
            "type": "array",
            "description": "Pick specific built-in sources instead of whole jurisdictions.",
            "items": {
              "type": "string",
              "enum": [
                "us-federal-register",
                "us-sec",
                "uk-gov",
                "eu-commission",
                "in-rbi",
                "in-sebi",
                "in-trai",
                "in-cdsco",
                "in-dgft",
                "in-ibbi",
                "in-irdai",
                "in-pfrda",
                "in-cwc",
                "in-icmr"
              ],
              "enumTitles": [
                "US Federal Register (rules, proposed rules, notices, presidential documents)",
                "US SEC press releases",
                "GOV.UK (news, guidance, consultations, policy, statistics — every department)",
                "European Commission press releases",
                "Reserve Bank of India (notifications, press releases)",
                "SEBI (circulars, orders, press releases)",
                "India — TRAI (telecom) press releases, consultations",
                "India — CDSCO (drugs, devices) notices, circulars",
                "India — DGFT (foreign trade) notifications, notices",
                "India — IBBI (insolvency) circulars, notifications, guidelines",
                "India — IRDAI (insurance) circulars, orders, guidelines",
                "India — PFRDA (pensions) notifications, guidelines, press",
                "India — Central Water Commission orders and circulars",
                "India — ICMR circulars and press releases"
              ]
            }
          },
          "feedUrls": {
            "title": "Add any RSS / Atom feeds",
            "type": "array",
            "description": "Any government, regulator or agency feed URL (ministries, central banks, courts, standards bodies, local councils…). They're read alongside the built-in sources and get the same filters.",
            "items": {
              "type": "string"
            }
          },
          "pageUrls": {
            "title": "Watch official list pages",
            "type": "array",
            "description": "Any official \"What's new\", circulars, notifications, orders or press-release page that lists dated entries (ministries, regulators, state departments, district sites). It is read like a feed: one update per entry, with its date, title and PDF. Turn on Respect robots.txt to skip pages whose site asks robots to stay away. Up to 50 pages.",
            "items": {
              "type": "string"
            }
          },
          "siteUrls": {
            "title": "Watch official sites (home page)",
            "type": "array",
            "description": "An official site's home page (a ministry, regulator, state department). Its Circulars, Notifications, What's New, Press Releases and Orders lists are found from the page and watched together. Turn on Respect robots.txt to skip sites that ask robots to stay away. Up to 20 sites.",
            "items": {
              "type": "string"
            }
          },
          "respectRobotsTxt": {
            "title": "Respect robots.txt",
            "type": "boolean",
            "description": "Skip list pages and sites whose robots.txt asks automated clients to stay away. Off by default: pages are public government pages read once per run under our named User-Agent.",
            "default": false
          },
          "postedWithinDays": {
            "title": "Published within (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Only updates published in the last N days.",
            "default": 7
          },
          "authorities": {
            "title": "Authorities",
            "type": "array",
            "description": "Only updates from these agencies, departments or regulators (any part of the name, e.g. \"Environmental Protection\", \"HM Treasury\", \"Food and Drug\").",
            "items": {
              "type": "string"
            }
          },
          "types": {
            "title": "Update types",
            "type": "array",
            "description": "Only these kinds of update, e.g. rule and proposed-rule for new regulation, consultation for open consultations, circular for regulator circulars.",
            "items": {
              "type": "string",
              "enum": [
                "rule",
                "proposed-rule",
                "notice",
                "presidential-document",
                "press-release",
                "guidance",
                "consultation",
                "policy",
                "statistics",
                "speech",
                "statement",
                "circular",
                "notification",
                "order",
                "regulation",
                "update"
              ]
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Leave out updates whose title or summary contains any of these.",
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerSource": {
            "title": "Max updates per source",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Most updates kept from each source (after filters).",
            "default": 100
          },
          "maxItems": {
            "title": "Max updates in total",
            "minimum": 1,
            "type": "integer",
            "description": "Most updates returned by the run.",
            "default": 300
          },
          "aiInsights": {
            "title": "AI insights",
            "type": "boolean",
            "description": "Add an `insight` to each update: a plain-language summary, what changes, who is affected, the dates that matter and what to do. With a profile, also a 0-100 relevance score and its reason.",
            "default": false
          },
          "aiProfile": {
            "title": "Your profile (for the relevance score)",
            "type": "string",
            "description": "What your organisation does and where, e.g. \"NBFC lending to small businesses in India; we follow RBI and SEBI rules\". Each insight then scores how relevant the update is to you."
          },
          "aiLanguage": {
            "title": "Insight language",
            "type": "string",
            "description": "Insights are written in this language, whatever the source language.",
            "default": "English"
          },
          "maxInsights": {
            "title": "Max insights per run",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Insights are added to the first N updates (newest first); the rest are delivered without one.",
            "default": 25
          },
          "aiProvider": {
            "title": "AI provider",
            "enum": [
              "apify",
              "anthropic",
              "openai",
              "gemini",
              "openrouter",
              "groq",
              "mistral",
              "deepseek",
              "compatible"
            ],
            "type": "string",
            "description": "Which AI does the analysis. Apify needs no key: the model runs through Apify's OpenRouter proxy and is billed to your Apify account. Any other provider uses your own key and bills you there.",
            "default": "apify"
          },
          "aiApiKey": {
            "title": "AI API key",
            "type": "string",
            "description": "Your own key for the provider above (not needed for Apify). Sent only to that provider, never stored."
          },
          "aiModel": {
            "title": "AI model",
            "type": "string",
            "description": "Model name. Apify: an OpenRouter id like anthropic/claude-sonnet-… or google/gemini-… (default: the newest Claude Haiku listed, a light model since it runs once per result). Anthropic: default claude-opus-5-5. Others: required."
          },
          "aiBaseUrl": {
            "title": "API base URL",
            "type": "string",
            "description": "Only for \"Other OpenAI-compatible API\", e.g. http://localhost:11434/v1 for Ollama."
          },
          "onlyNew": {
            "title": "Only new updates",
            "type": "boolean",
            "description": "Schedule the Actor (daily or hourly) and each run returns only updates earlier runs didn't deliver: a regulatory alert you pay for only when something new appears.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional name for the “only new” history, so several monitors can run side by side."
          },
          "delivery": {
            "title": "Send results to Slack, Discord, a webhook or Google Sheets",
            "type": "object",
            "description": "Webhook: {\"webhookUrl\": \"https://…\", \"format\": \"json\" | \"slack\" | \"discord\", \"onlyWhenResults\": true, \"includeItems\": 10}. Google Sheets: {\"spreadsheetId\": \"<id from the sheet URL>\", \"sheetName\": \"Sheet1\"} plus the service account key below; share the sheet with the service account's e-mail first. Leave empty to only save results in the dataset."
          },
          "googleServiceAccountJson": {
            "title": "Google service account key (for Sheets)",
            "type": "string",
            "description": "Only for Google Sheets delivery: paste the service account's JSON key. Stored encrypted; the account sees only sheets you share with it."
          },
          "tenantId": {
            "title": "Tenant ID",
            "type": "string",
            "description": "Optional label used to keep separate histories for different clients or teams."
          },
          "debug": {
            "title": "Debug",
            "type": "boolean",
            "description": "Save extra diagnostics with the run (for support requests).",
            "default": false
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}