{
  "openapi": "3.0.1",
  "info": {
    "title": "India eProcurement Tenders Scraper (CPPP + 30 State Portals)",
    "description": "Live government tenders from India's central eProcure (CPPP), central PSU, defence and 30+ state NIC eProcurement portals in one run. Tender ID, title, organisation, dates, days left, and optional tender value, EMD, location and pincode.",
    "version": "1.0",
    "x-build-id": "QL3xqE8AIGMHEI7PC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/angadseth~india-eprocurement-tenders/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-angadseth-india-eprocurement-tenders",
        "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/angadseth~india-eprocurement-tenders/runs": {
      "post": {
        "operationId": "runs-sync-angadseth-india-eprocurement-tenders",
        "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/angadseth~india-eprocurement-tenders/run-sync": {
      "post": {
        "operationId": "run-sync-angadseth-india-eprocurement-tenders",
        "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": {
          "portals": {
            "title": "Portals",
            "type": "array",
            "description": "Which eProcurement portals to search. Pick \"All portals\" to cover every one.",
            "items": {
              "type": "string",
              "enum": [
                "all",
                "central",
                "cpse",
                "defence",
                "coalindia",
                "andaman",
                "arunachal",
                "assam",
                "chandigarh",
                "delhi",
                "dnhdd",
                "goa",
                "haryana",
                "himachal",
                "jammukashmir",
                "jharkhand",
                "kerala",
                "ladakh",
                "lakshadweep",
                "madhyapradesh",
                "maharashtra",
                "manipur",
                "meghalaya",
                "mizoram",
                "nagaland",
                "odisha",
                "puducherry",
                "punjab",
                "rajasthan",
                "sikkim",
                "tamilnadu",
                "tripura",
                "uttarakhand",
                "uttarpradesh",
                "westbengal"
              ],
              "enumTitles": [
                "All portals",
                "Central Government (CPPP eProcure)",
                "Central PSUs (etenders.gov.in)",
                "Defence (defproc.gov.in)",
                "Coal India",
                "Andaman and Nicobar",
                "Arunachal Pradesh",
                "Assam",
                "Chandigarh",
                "Delhi",
                "Dadra & Nagar Haveli and Daman & Diu",
                "Goa",
                "Haryana",
                "Himachal Pradesh",
                "Jammu and Kashmir",
                "Jharkhand",
                "Kerala",
                "Ladakh",
                "Lakshadweep",
                "Madhya Pradesh",
                "Maharashtra",
                "Manipur",
                "Meghalaya",
                "Mizoram",
                "Nagaland",
                "Odisha",
                "Puducherry",
                "Punjab",
                "Rajasthan",
                "Sikkim",
                "Tamil Nadu",
                "Tripura",
                "Uttarakhand",
                "Uttar Pradesh",
                "West Bengal"
              ]
            },
            "default": [
              "central"
            ]
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Keep tenders whose title, reference, tender ID or organisation contains any of these words, e.g. \"road\", \"CCTV\", \"solar\". Leave empty for all tenders.",
            "items": {
              "type": "string"
            }
          },
          "organisationContains": {
            "title": "Organisation contains",
            "type": "array",
            "description": "Only open organisations whose name contains any of these words, e.g. \"Public Works\", \"Municipal\", \"Airports\". Makes runs much faster.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude words",
            "type": "array",
            "description": "Drop tenders that contain any of these words.",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Include tender details",
            "type": "boolean",
            "description": "Open each matching tender for tender value, EMD, fee, category, location, pincode, contract form, pre-bid meeting and the inviting authority. Slower (one extra page per tender).",
            "default": false
          },
          "minTenderValueInr": {
            "title": "Minimum tender value (₹)",
            "minimum": 0,
            "type": "integer",
            "description": "Needs \"Include tender details\". Tenders without a stated value are dropped."
          },
          "minDaysLeft": {
            "title": "Minimum days left",
            "minimum": 0,
            "type": "integer",
            "description": "Skip tenders closing sooner than this.",
            "default": 0
          },
          "publishedWithinDays": {
            "title": "Published within the last N days",
            "minimum": 0,
            "type": "integer",
            "description": "For daily alerts use 1 or 2. 0 = any date.",
            "default": 0
          },
          "maxItems": {
            "title": "Max tenders",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many tenders in total. You pay per tender saved.",
            "default": 200
          },
          "maxItemsPerPortal": {
            "title": "Max tenders per portal",
            "minimum": 1,
            "type": "integer",
            "description": "Optional cap per portal, so one big state does not use the whole limit."
          },
          "maxConcurrentPortals": {
            "title": "Portals in parallel",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many portals to read at the same time. 4 is polite and fast.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed normally. Unreachable portals are retried through an Indian proxy automatically.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}