{
  "openapi": "3.0.1",
  "info": {
    "title": "India SEBI Filings Tracker",
    "description": "Track India's SEBI (Securities and Exchange Board of India — Indian SEC) public filings: DRHP / RHP IPO drafts, rights issues, SAST takeover letters of offer, buybacks, debt offer docs, REIT, InvIT, QIP, processing-status pipeline. Bloomberg alternative for Indian disclosure data.",
    "version": "0.0",
    "x-build-id": "X2b2hmcniS1pGRPhd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nexgendata~india-sebi-filings-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nexgendata-india-sebi-filings-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/nexgendata~india-sebi-filings-tracker/runs": {
      "post": {
        "operationId": "runs-sync-nexgendata-india-sebi-filings-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/nexgendata~india-sebi-filings-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-nexgendata-india-sebi-filings-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": {
          "filing_types": {
            "title": "SEBI filing type(s)",
            "type": "array",
            "description": "Which SEBI filing categories to sweep. DRHP / RHP / PUBLIC-ISSUE cover main-board IPO offer documents. RIGHTS-ISSUE covers letter of offer for rights issues. TAKEOVER covers SAST substantial acquisition letters of offer (the closest SEBI-published proxy for shareholder / insider disclosure events). BUYBACK-TENDER / BUYBACK-OPEN-MARKET cover share buyback offers. DEBT-OFFER covers NCD / corporate bond offer documents. PROCESSING-STATUS covers every offer doc currently in SEBI review pipeline (the QIP alias also routes here). REIT / INVIT-PUBLIC / INVIT-PRIVATE cover real-estate and infrastructure investment trusts. ALL sweeps every category. Use INSIDER-TRADE-DISCLOSURE / SHAREHOLDER-DISCLOSURE for the SAST takeover register (SEBI does not publish a separate per-trade insider register — those filings live with BSE / NSE — but SAST disclosures here capture every substantial-acquisition event).",
            "default": [
              "DRHP"
            ],
            "items": {
              "type": "string"
            }
          },
          "company_filter": {
            "title": "Company-name filter (optional)",
            "type": "array",
            "description": "Optional list of company-name substrings (case-insensitive). E.g. ['reliance', 'adani', 'tata', 'infosys']. Leave empty to return every filing.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "days_back": {
            "title": "Look-back window (days)",
            "minimum": 1,
            "maximum": 730,
            "type": "integer",
            "description": "How many days of SEBI filings to scan (1-730). Defaults to 90 (last quarter). SEBI's listing pages cover roughly the last 12-18 months in the visible HTML table.",
            "default": 90
          },
          "max_filings": {
            "title": "Maximum filings",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard cap on filings returned (1-5000). Each filing charges $0.10 (premium institutional disclosure data tier — matches SEC Form 13F). Sweep size accordingly.",
            "default": 100
          },
          "start_date": {
            "title": "Start date (optional, YYYY-MM-DD)",
            "type": "string",
            "description": "Optional ISO date floor. If set, overrides days_back. Example: 2026-01-01.",
            "default": ""
          },
          "end_date": {
            "title": "End date (optional, YYYY-MM-DD)",
            "type": "string",
            "description": "Optional ISO date ceiling. Example: 2026-05-19. Leave empty for today.",
            "default": ""
          },
          "sector_filter": {
            "title": "Sector filter (optional, case-insensitive substring)",
            "type": "string",
            "description": "Optional substring filter on the inferred sector field. Examples: 'banking', 'pharma', 'technology', 'real estate', 'energy', 'metals'. Inference is heuristic from company-name keywords — leave empty for any sector.",
            "default": ""
          },
          "status_filter": {
            "title": "Status filter (optional)",
            "type": "string",
            "description": "Optional substring on the raw SEBI title or category label. Examples: 'corrigendum', 'addendum', 'abridged', 'open offer'. Use 'any' (default) or empty to skip.",
            "default": ""
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify proxy. Datacenter is fine for SEBI (their public listing pages don't aggressively rate-limit). Switch to RESIDENTIAL with apifyProxyCountry='IN' only if you hit transient blocks on a very large run.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}