{
  "openapi": "3.0.1",
  "info": {
    "title": "India CDSCO Scraper: SUGAM Drug Approvals & Device Licence Data",
    "description": "Export new drug approvals and medical device/IVD licences from India's CDSCO (SUGAM and the medical device portal), no manual portal checks. Filter by year, month, drug name, licence type, or device category. Monitoring mode returns only newly published records. $2 per 1,000 results.",
    "version": "0.2",
    "x-build-id": "CewCC55fVZfeKzyWy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/getascraper~cdsco-india-drug-device-approvals/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-getascraper-cdsco-india-drug-device-approvals",
        "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/getascraper~cdsco-india-drug-device-approvals/runs": {
      "post": {
        "operationId": "runs-sync-getascraper-cdsco-india-drug-device-approvals",
        "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/getascraper~cdsco-india-drug-device-approvals/run-sync": {
      "post": {
        "operationId": "run-sync-getascraper-cdsco-india-drug-device-approvals",
        "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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Data Source",
            "enum": [
              "drugs",
              "devices"
            ],
            "type": "string",
            "description": "Choose which official CDSCO registry to pull from: newly approved drugs (SUGAM) or approved/licensed medical devices and IVDs. Drugs mode is fast and lightweight. Devices mode downloads a much larger unfiltered government file because that registry has no server-side text search, so it is kept out of the default combination to stay fast.",
            "default": "drugs"
          },
          "useRecentApprovalsFeed": {
            "title": "Use Recent Approvals Feed",
            "type": "boolean",
            "description": "Only used when Data Source is Drug approvals. When on, pulls the site's own lightweight recent-approvals feed (about the latest 145 drug approvals across all years) instead of a full year query, ideal for checking what's new. Turn off to search a specific year, month, or drug name instead.",
            "default": true
          },
          "searchText": {
            "title": "Drug Or Brand Name Contains",
            "type": "string",
            "description": "Only used when Use Recent Approvals Feed is off. Filters drug approvals by a substring of the drug or brand name, matched by the CDSCO search itself (for example \"Paracetamol\"). Leave blank to return all approvals for the chosen year and month.",
            "default": ""
          },
          "year": {
            "title": "Approval Year",
            "enum": [
              "",
              "2026",
              "2025",
              "2024",
              "2023",
              "2022",
              "2021",
              "2020",
              "2019",
              "2018"
            ],
            "type": "string",
            "description": "Only used when Use Recent Approvals Feed is off. Restricts drug approvals to one calendar year. CDSCO's own records currently span 2018 to 2026. Leave on \"All years\" only if you also set a specific Drug Or Brand Name filter, since an unfiltered all-years pull is slow and heavy.",
            "default": "2026"
          },
          "month": {
            "title": "Approval Month",
            "enum": [
              "",
              "Jan",
              "Feb",
              "Mar",
              "Apr",
              "May",
              "Jun",
              "Jul",
              "Aug",
              "Sep",
              "Oct",
              "Nov",
              "Dec"
            ],
            "type": "string",
            "description": "Only used when Use Recent Approvals Feed is off and Approval Year is set to a specific year. Narrows drug approvals to one month within that year. Leave on \"All months\" to get the full year.",
            "default": ""
          },
          "licenceType": {
            "title": "Licence Type",
            "enum": [
              "Manufacturing",
              "Import"
            ],
            "type": "string",
            "description": "Only used when Data Source is Medical device & IVD licences. CDSCO tracks device licences separately for domestic manufacturers and for importers bringing devices into India. Choose which one this run should pull.",
            "default": "Manufacturing"
          },
          "deviceCategory": {
            "title": "Device Category",
            "enum": [
              "IVD",
              "MD"
            ],
            "type": "string",
            "description": "Only used when Data Source is Medical device & IVD licences. \"Medical devices\" covers the general MDR-2017 device registry; \"In vitro diagnostics\" (IVD) covers diagnostic kits and reagents specifically. IVD is kept as the default because it is the smaller of the two confirmed source files, so the run stays quick; the general medical device file can be 3-5x larger for the same licence type.",
            "default": "IVD"
          },
          "deviceNameSearch": {
            "title": "Device Or Brand Name Contains",
            "type": "string",
            "description": "Optional substring filter on the device or brand name, applied after the licence list is downloaded (CDSCO's device registry has no server-side search, so this filtering happens on our side). Leave blank to keep every device in the chosen licence type and category, up to Max Items.",
            "default": ""
          },
          "onlyNewSinceLastRun": {
            "title": "Only New Approvals Since Last Run",
            "type": "boolean",
            "description": "Turns this Actor into a monitor: it remembers which approval records it has already returned (in this Actor's key-value store) and, on every later run with the same filters, only outputs records it has not seen before. Neither CDSCO registry offers a native \"since\" parameter, so this is the recommended way to run this Actor on an Apify Schedule for ongoing approval alerts instead of re-downloading the same records every time.",
            "default": false
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of approval records to save to the dataset. Both source registries return more data than most users need in one go (the device registry in particular has no server-side limit), so this cap is always applied after fetching, whatever the Data Source or filters. Kept low by default so a first run finishes quickly; raise it once you know the filters you want.",
            "default": 25
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}