{
  "openapi": "3.0.1",
  "info": {
    "title": "GeM Tenders Scraper (India Government e-Marketplace Bids)",
    "description": "Get live GeM bids and reverse auctions from India's Government e-Marketplace: bid number, items, quantity, ministry, department, end date, days left and the bid document link. Filter by keyword, ministry, department, type and end date.",
    "version": "1.0",
    "x-build-id": "sQaAnVXw9XhLco8tk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/angadseth~gem-tenders-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-angadseth-gem-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/angadseth~gem-tenders-scraper/runs": {
      "post": {
        "operationId": "runs-sync-angadseth-gem-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/angadseth~gem-tenders-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-angadseth-gem-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": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "What to look for in bid items, e.g. \"solar\", \"laptop\", \"CCTV\", \"manpower\". Each keyword is a separate search and results are de-duplicated. Leave empty to get all bids.",
            "items": {
              "type": "string"
            }
          },
          "exactMatch": {
            "title": "Exact match",
            "type": "boolean",
            "description": "Off = bids that contain the keyword (recommended). On = GeM's exact search.",
            "default": false
          },
          "status": {
            "title": "Bid status",
            "enum": [
              "ongoing",
              "results",
              "cancelled"
            ],
            "type": "string",
            "description": "Ongoing = bids open now. Results = bids that are evaluated or awarded. Cancelled = cancelled bids.",
            "default": "ongoing"
          },
          "resultStage": {
            "title": "Result stage (only for Results)",
            "enum": [
              "any",
              "technicalEvaluated",
              "financialEvaluated",
              "awarded"
            ],
            "type": "string",
            "description": "Only used when Bid status is Results: which evaluation stage to return.",
            "default": "any"
          },
          "bidType": {
            "title": "Bid type",
            "enum": [
              "all",
              "product",
              "service",
              "bidToRA",
              "custom",
              "boq",
              "rcbid",
              "gt",
              "lt",
              "st"
            ],
            "type": "string",
            "description": "Product, service, reverse auction, BOQ, rate contract, global, limited or single tender.",
            "default": "all"
          },
          "highValueOnly": {
            "title": "High-value bids only",
            "type": "boolean",
            "description": "Only bids GeM marks as high value.",
            "default": false
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "auto",
              "endingSoon",
              "endingLast",
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "Auto = ongoing bids closing soonest first, results and cancelled bids newest first.",
            "default": "auto"
          },
          "endDateFrom": {
            "title": "Bid end date from",
            "type": "string",
            "description": "YYYY-MM-DD. Use together with \"end date to\"."
          },
          "endDateTo": {
            "title": "Bid end date to",
            "type": "string",
            "description": "YYYY-MM-DD."
          },
          "ministryContains": {
            "title": "Ministry contains",
            "type": "array",
            "description": "Keep only bids whose ministry contains any of these words, e.g. \"Defence\", \"Railways\".",
            "items": {
              "type": "string"
            }
          },
          "departmentContains": {
            "title": "Department contains",
            "type": "array",
            "description": "Keep only bids whose department contains any of these words, e.g. \"Army\", \"ESIC\", \"Rajasthan\".",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude words",
            "type": "array",
            "description": "Drop bids whose items contain any of these words.",
            "items": {
              "type": "string"
            }
          },
          "minQuantity": {
            "title": "Minimum quantity",
            "minimum": 0,
            "type": "integer",
            "description": "Skip bids with a smaller total quantity. 0 = no limit.",
            "default": 0
          },
          "minDaysLeft": {
            "title": "Minimum days left (ongoing only)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip bids closing sooner than this, so you have time to prepare.",
            "default": 0
          },
          "maxItems": {
            "title": "Max bids",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Stop after this many bids in total. You pay per bid saved.",
            "default": 100
          },
          "maxPagesPerKeyword": {
            "title": "Max pages per keyword",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "GeM returns 10 bids per page.",
            "default": 500
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Leave empty: on Apify the Actor automatically uses an Indian residential IP, because GeM blocks foreign servers. Set your own proxy only if you prefer.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}