{
  "openapi": "3.0.1",
  "info": {
    "title": "GeM Bid Results Scraper: L1 Prices & Sellers",
    "description": "GeM bid results scraper: results of GeM (Government e-Marketplace, India) bids and reverse auctions without login. Every seller with total price, L1 rank, qualified or disqualified, make, model and MSE status. Search by keyword, bid number or end date. $5 per 1,000 seller rows, bid rows free.",
    "version": "0.1",
    "x-build-id": "WSPSZ8i50k0TnUDvK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/firsthand~gem-bid-results/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-firsthand-gem-bid-results",
        "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/firsthand~gem-bid-results/runs": {
      "post": {
        "operationId": "runs-sync-firsthand-gem-bid-results",
        "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/firsthand~gem-bid-results/run-sync": {
      "post": {
        "operationId": "run-sync-firsthand-gem-bid-results",
        "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": "Words to search in GeM bids and reverse auctions, one per line: item, category, department, ministry or consignee location (for example: LED light, laptop, Indian Army). Each keyword is a separate search. Leave empty to read all bids in the date window.",
            "items": {
              "type": "string"
            }
          },
          "strictKeywordMatch": {
            "title": "Only bids that really contain the keyword",
            "type": "boolean",
            "description": "GeM's own search also returns bids where the word appears only deep in the bid document (for example LED light found manpower tenders). On: a bid is kept only if every word of the keyword is in its items, BOQ title, ministry or department; other bids are skipped before their results page is opened and are not charged. Off: everything GeM's search returns.",
            "default": true
          },
          "bidNumbers": {
            "title": "Bid or RA numbers",
            "type": "array",
            "description": "Exact GeM numbers, one per line: GEM/2026/B/1234567 for a bid or GEM/2026/R/123456 for a reverse auction. Dates and stage filters do not apply to them.",
            "items": {
              "type": "string"
            }
          },
          "bidEndFrom": {
            "title": "Bid end date from",
            "type": "string",
            "description": "Only bids that closed on or after this date: a date (YYYY-MM-DD) or a period back from today (for example 30 days, 2 weeks, 3 months). Empty: no lower date. With no keyword, no bid number and no dates the run reads the last 30 days."
          },
          "bidEndTo": {
            "title": "Bid end date to",
            "type": "string",
            "description": "Only bids that closed on or before this date: a date (YYYY-MM-DD) or a period back from today (for example 7 days). Empty: up to today."
          },
          "stage": {
            "title": "Result stage",
            "enum": [
              "priced",
              "awarded",
              "technical",
              "any"
            ],
            "type": "string",
            "description": "Which bids to open. Prices and L1, L2... ranks appear from the financial evaluation on; technical evaluation shows who bid, with make, model and qualified or disqualified. Empty: bids with prices (financial evaluation, reverse auction or award)."
          },
          "bidType": {
            "title": "Bid type",
            "enum": [
              "all",
              "product",
              "service",
              "ra",
              "custom",
              "boq"
            ],
            "type": "string",
            "description": "GeM bid type filter. Empty: all types."
          },
          "ministry": {
            "title": "Ministry contains",
            "type": "string",
            "description": "Keep only bids whose ministry contains this text (for example: Defence). Applied before the results page is opened."
          },
          "department": {
            "title": "Department contains",
            "type": "string",
            "description": "Keep only bids whose department contains this text (for example: Military Affairs)."
          },
          "organization": {
            "title": "Organisation contains",
            "type": "string",
            "description": "Keep only bids whose buyer organisation, department or ministry contains this text (for example: Indian Army). Checked on the results page, so bids that do not match are opened but not charged."
          },
          "includeDisqualified": {
            "title": "Include technically disqualified sellers",
            "type": "boolean",
            "description": "Disqualified bidders have no price or rank, but show who bid with which make and model. They are charged like other seller rows. Turn off to get only sellers that passed the technical evaluation.",
            "default": true
          },
          "sort": {
            "title": "Order",
            "enum": [
              "end_latest",
              "end_oldest",
              "start_latest",
              "start_oldest"
            ],
            "type": "string",
            "description": "Order in which GeM lists the bids. Empty: latest bid end date first."
          },
          "maxSellers": {
            "title": "Max seller rows",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many seller rows (the charged rows) for the whole run, including resurrected runs. Bid summary rows are free and not counted. Empty: 100 (unless Max bids is set)."
          },
          "maxBids": {
            "title": "Max bids",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many bids with results. Empty: no bid limit."
          },
          "includeBidRows": {
            "title": "Add a free summary row per bid",
            "type": "boolean",
            "description": "One row per bid with item, quantity, buyer, dates, number of bidders, L1 seller and L1 price. Free.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Leave as is: the Actor uses Apify residential proxy in India, the only addresses GeM answers. Your own proxy URLs (Indian addresses) are used instead if you set them.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}