{
  "openapi": "3.0.1",
  "info": {
    "title": "India Tenders Scraper: CPPP, GeM and State eProcurement",
    "description": "Indian government tenders from CPPP eprocure (central ministries, PSUs, Railways and 28 state portals) and GeM bids. One row per tender: title, organisation, state, category, value, EMD, fee, closing date and inviting officer. Keyword, state, value and date filters. No login.",
    "version": "0.1",
    "x-build-id": "fvlRA3FVfjrAMOmOS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/themineworks~india-tenders-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-themineworks-india-tenders-scraper",
        "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/themineworks~india-tenders-scraper/runs": {
      "post": {
        "operationId": "runs-sync-themineworks-india-tenders-scraper",
        "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/themineworks~india-tenders-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-themineworks-india-tenders-scraper",
        "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": {
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "central = CPPP central tenders (every ministry, department and PSU portal, about 6,000 active). state = the state and UT portals CPPP collects (28 states, about 5,000 active). gem = GeM bids (Government e-Marketplace), read through Apify residential proxy in India.",
            "items": {
              "type": "string",
              "enum": [
                "central",
                "state",
                "gem"
              ],
              "enumTitles": [
                "CPPP central (ministries, departments, PSUs)",
                "CPPP state and UT portals",
                "GeM bids"
              ]
            },
            "default": [
              "central",
              "state"
            ]
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Tenders whose title, description, reference number, category or organisation contain ALL words of at least one keyword. One keyword per line. Example: road, cctv camera, solar. On GeM each keyword is GeM's own bid search.",
            "items": {
              "type": "string"
            }
          },
          "organisations": {
            "title": "Organisations",
            "type": "array",
            "description": "Only tenders of these buyers: the organisation, ministry or department name contains all words. One per line. Example: AIIMS, Indian Railways, NHAI, Coal India.",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Only tenders from these states or UTs, for example Uttar Pradesh, West Bengal, Tamil Nadu. State portal tenders match by their state; central tenders match when their work location or inviting office names the state (this reads each tender's full record). Not applied to GeM bids.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Product categories",
            "type": "array",
            "description": "Only tenders whose product category contains these words, for example Civil Works, Electrical, Medicines, Computer, Consultancy. One per line.",
            "items": {
              "type": "string"
            }
          },
          "minValueInr": {
            "title": "Minimum tender value (INR)",
            "minimum": 0,
            "type": "integer",
            "description": "Only tenders whose published estimated value is at least this many rupees, for example 1000000 for 10 lakh. Tenders that publish no value are left out when this is set. Not applied to GeM bids."
          },
          "maxValueInr": {
            "title": "Maximum tender value (INR)",
            "minimum": 0,
            "type": "integer",
            "description": "Only tenders whose published estimated value is at most this many rupees. Tenders that publish no value are left out when this is set."
          },
          "publishedWithinDays": {
            "title": "Published in the last N days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Only tenders published in the last N days, for example 1 for a daily feed or 7 for a weekly one. 0 or empty = any date."
          },
          "closingWithinDays": {
            "title": "Closing in the next N days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Only tenders whose bid submission closes in the next N days. 0 or empty = any. Tenders that already closed are never returned."
          },
          "includeDetails": {
            "title": "Read the full tender record (value, EMD, fee, officer)",
            "type": "boolean",
            "description": "On: each tender's full record is read too, for estimated value, EMD, tender fee, tender type, category, work location, pre bid meeting, inviting officer and address, and the link to the source portal. Off: list fields only, faster. Same price either way.",
            "default": true
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "newest",
              "closing_soon"
            ],
            "type": "string",
            "description": "newest = most recently published first. closing_soon = closing deadline soonest first.",
            "default": "newest"
          },
          "maxItems": {
            "title": "Max tenders per source",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The most tenders to return from each source, 1 to 10,000. Example: 500.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}