{
  "openapi": "3.0.1",
  "info": {
    "title": "GeM Tenders Scraper: India Government e-Marketplace Bids",
    "description": "GeM tenders from India's Government e-Marketplace in one clean table: every open GeM bid for your products, buyers or delivery states, with closing date, quantity, EMD, estimated value, eligibility terms and the bid document. Only new GeM tenders each morning. CPPP and state portals optional.",
    "version": "0.5",
    "x-build-id": "u0yU5xGJ8drhNQuld"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automatic~gem-tenders-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automatic-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/automatic~gem-tenders-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automatic-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/automatic~gem-tenders-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automatic-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": {
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Search GeM items, bid numbers and buyer text, e.g. laptop or CCTV (3–100 characters; English terms). For a stricter phrase, choose Exact phrase. To select one buyer, clear this field and use the ministry or buyer-state filters below.",
            "default": ""
          },
          "keywords": {
            "title": "More keywords (optional)",
            "maxItems": 10,
            "type": "array",
            "description": "Track several product lines in one run, e.g. laptop, CCTV and UPS. Each term is its own GeM search, run in order after Keyword; a bid found by more than one term is saved once, with the term that found it in matchedKeyword. Maximum results caps the total across all terms. Up to 10 terms of 3–100 characters, English text. Leave empty for a single keyword search.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum bids to save: 1–10,000 for listings (up to 100,000 with Bulk download), capped at 750 with PDF details. The form starts with 10 bids; empty API input defaults to 100.",
            "default": 100
          },
          "includeDetails": {
            "title": "Include PDF details: EMD, eligibility and buyer information",
            "type": "boolean",
            "description": "Read each bid document for EMD, ePBG, estimated value, turnover, experience, organisation, opening time and published Buyer/HOD grievance emails when available. Adds $0.003 per delivered bid with at least one parsed detail; slower, with a 750-bid cap. Missing values stay null.",
            "default": false
          },
          "keywordMatch": {
            "title": "Keyword match",
            "enum": [
              "contains",
              "exact"
            ],
            "type": "string",
            "description": "'Contains' is GeM's default full-text search. 'Exact phrase' keeps only bids whose items, BOQ title, ministry, department or bid number contain the keyword as whole words, in any case.",
            "default": "contains"
          },
          "status": {
            "title": "Status",
            "enum": [
              "open",
              "cancelled",
              "results",
              "technicalEvaluation",
              "financialEvaluation",
              "awarded"
            ],
            "type": "string",
            "description": "Which bids to read. 'Open' (accepting offers) is the usual choice for alerts; the result stages cover bids already closed.",
            "default": "open"
          },
          "bidType": {
            "title": "Bid type",
            "enum": [
              "all",
              "product",
              "service",
              "bidToRA",
              "customProduct",
              "boq",
              "rateContract",
              "globalTender",
              "limitedTender",
              "singleTender"
            ],
            "type": "string",
            "description": "Choose a GeM bid category, for example Product or Service. All bids/RAs includes every category; leave the default for the sample.",
            "default": "all"
          },
          "highValueOnly": {
            "title": "High-value bids only",
            "type": "boolean",
            "description": "Only bids whose buyer declared an estimated value of Rs 2 crore or more.",
            "default": false
          },
          "bidEndFrom": {
            "title": "Closing date: from",
            "type": "string",
            "description": "Optional earliest closing date, inclusive in India time. Type YYYY-MM-DD, for example 2026-12-01. Leave empty for no lower date limit.",
            "default": ""
          },
          "bidEndTo": {
            "title": "Closing date: to",
            "type": "string",
            "description": "Optional latest closing date, inclusive in India time. Type YYYY-MM-DD, for example 2026-12-31. Leave empty for no upper date limit.",
            "default": ""
          },
          "startedWithinDays": {
            "title": "Started in the last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Only bids published in the last N days, counting today in India time; for example 2 for daily alerts with overlap. Leave unset for no rolling publication window. Do not combine with Started from."
          },
          "startedFrom": {
            "title": "Started from",
            "type": "string",
            "description": "Optional earliest publication date, inclusive. Type YYYY-MM-DD, for example 2026-12-01. Leave empty for no lower publication-date limit.",
            "default": ""
          },
          "startedTo": {
            "title": "Started to",
            "type": "string",
            "description": "Optional latest publication date, inclusive. Type YYYY-MM-DD, for example 2026-12-31. Leave empty for no upper publication-date limit.",
            "default": ""
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "default",
              "endingSoonest",
              "endingLatest",
              "newest",
              "oldest"
            ],
            "type": "string",
            "description": "Order of the results. 'Default' is GeM's own order for the chosen status (open bids closing soonest first), or newest first when a start-date filter is set.",
            "default": "default"
          },
          "ministry": {
            "title": "Ministry",
            "type": "string",
            "description": "Central ministry of the buyer, e.g. 'Ministry of Railways' or 'railways' (any unique part of the name; case, spacing, '&' for 'and' and small typos do not matter). Uses GeM's advanced search, which covers open bids only and cannot be combined with keyword, bid type, status or sort.",
            "default": ""
          },
          "buyerState": {
            "title": "Buyer state",
            "type": "string",
            "description": "State government buyer, e.g. Karnataka. Use ministry or buyer state, not both. Leave empty if selecting a ministry or not filtering by buyer. Open bids only.",
            "default": ""
          },
          "organization": {
            "title": "Organisation",
            "type": "string",
            "description": "Organisation under the chosen ministry or buyer state, e.g. Central Railway under Ministry of Railways. Leave empty for all organisations within that buyer. A ministry or buyer state is required.",
            "default": ""
          },
          "department": {
            "title": "Department",
            "type": "string",
            "description": "Department under the selected organisation. Type its published name or a unique part of it; leave empty for all departments. An organisation is required. Ambiguous names stop with suggestions.",
            "default": ""
          },
          "consigneeState": {
            "title": "Delivery state",
            "type": "string",
            "description": "State where goods or services are delivered, e.g. Maharashtra. Leave empty for no delivery-state filter. Open bids only; cannot be combined with ministry or buyer-state filters.",
            "default": ""
          },
          "consigneeCity": {
            "title": "Delivery city",
            "type": "string",
            "description": "Delivery city within the delivery state, e.g. Pune. Select a delivery state first. Leave empty for all delivery cities in that state.",
            "default": ""
          },
          "bidNumber": {
            "title": "Bid number",
            "type": "string",
            "description": "One bid or reverse auction number, e.g. GEM/2026/B/8123845. Searches open, result and cancelled stages. Leave empty for a general search. Cannot be combined with a keyword or buyer search.",
            "default": ""
          },
          "sources": {
            "title": "Sources",
            "uniqueItems": true,
            "type": "array",
            "description": "Which portals to read. Empty means GeM only. CPPP and state portals return open tenders and use Keyword, More keywords, Keyword match and the closing and start date filters; GeM-only filters (buyer, delivery area, bid number, bid type, high value, category IDs, shortlists, non-open status) skip them. Each extra source returns up to Maximum results tenders (each state portal up to Maximum results).",
            "items": {
              "type": "string",
              "enum": [
                "gem",
                "cppp",
                "state"
              ],
              "enumTitles": [
                "GeM bids",
                "CPPP central tenders (eprocure.gov.in)",
                "State e-procurement portals (NIC)"
              ]
            }
          },
          "statePortals": {
            "title": "State portals",
            "uniqueItems": true,
            "type": "array",
            "description": "With 'state' in Sources: which state portals to read. Empty reads all ten. Include PDF details to add each tender's value, EMD, fee, category, location and documents list from its tender page. With the new-or-changed feed on, each portal's buyer lists are all read (about 6 minutes for Maharashtra), so pick the portals you need.",
            "items": {
              "type": "string",
              "enum": [
                "uttarPradesh",
                "kerala",
                "tamilNadu",
                "madhyaPradesh",
                "maharashtra",
                "punjab",
                "westBengal",
                "odisha",
                "haryana",
                "rajasthan"
              ],
              "enumTitles": [
                "Uttar Pradesh",
                "Kerala",
                "Tamil Nadu",
                "Madhya Pradesh",
                "Maharashtra",
                "Punjab",
                "West Bengal",
                "Odisha",
                "Haryana",
                "Rajasthan"
              ]
            }
          },
          "stateOrganisations": {
            "title": "State portal organisations (optional)",
            "maxItems": 30,
            "type": "array",
            "description": "With 'state' in Sources: only these buyers, as part of the organisation name the portal shows, e.g. Public Works Department or Municipal Corporation. Case and punctuation do not matter. Empty reads every organisation.",
            "items": {
              "type": "string"
            }
          },
          "bulkDownload": {
            "title": "Bulk download a closing-date window",
            "type": "boolean",
            "description": "Download every bid of the chosen Status that closes between Bid end from and Bid end to (empty means the whole archive), newest closing date first and several pages at a time. Each run saves up to Maximum results and writes OUTPUT.bulk.nextInput: run that input next to continue with no gap and no duplicates. Uses Keyword, Status, Bid type, High value and the start-date filters; not the buyer, delivery-area, bid number or feed options."
          },
          "bulkCursor": {
            "title": "Bulk download continuation (from OUTPUT)",
            "type": "object",
            "description": "Filled in for you in OUTPUT.bulk.nextInput: where the previous bulk run stopped. Leave empty to start a new window."
          },
          "proxyConfiguration": {
            "title": "Advanced: connection settings (India routing is preconfigured)",
            "type": "object",
            "description": "Leave the default Residential India connection settings in place. They are already configured for GeM; no proxy credentials need to be entered.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "IN"
            }
          },
          "onlyNewSinceLastRun": {
            "title": "Only new or changed since the last run",
            "type": "boolean",
            "description": "Return only bids not delivered before, or changes to the item/BOQ title, bid end date or status. Keep the same input and schedule. Off returns a fresh snapshot each run.",
            "default": false
          },
          "stateKey": {
            "title": "Saved feed name (optional)",
            "type": "string",
            "description": "A reusable job label, e.g. railway-supplies, for the saved feed history. Leave empty to derive the name from the filters. Set a new name to start fresh. This is not a password or API key.",
            "default": ""
          },
          "watchEvaluationStage": {
            "title": "Also alert when the evaluation stage moves",
            "type": "boolean",
            "description": "With the feed on, also return a bid again when the buyer moves it to technical evaluation, financial evaluation or awarded (changedFields shows evaluationStage). Best with Status set to All result stages. Turning it on keeps your existing feed history."
          },
          "watchBidAmendments": {
            "title": "Watch deadlines, opening dates, quantities and EMD",
            "type": "boolean",
            "description": "Available from 5 December 2026. With Only new or changed and Include bid document details enabled, compare the published bid deadline, opening date, total quantity and earnest money deposit against the previous observation. Each successful check costs $0.003 unless a bid details charge already covers it. Use the same search or follow a specific bid number."
          },
          "maxAmendmentChecks": {
            "title": "Maximum amendment checks per run",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Used only when watching bid amendments. Bids that have waited the longest are checked first. A time budget also applies, and the run summary counts checks deferred among the bids found.",
            "default": 20
          },
          "itemKeywords": {
            "title": "Shortlist: item / BOQ phrases",
            "maxItems": 20,
            "type": "array",
            "description": "Optional local OR filter over complete item names and BOQ titles: whole phrases, case-insensitive. Up to 20 phrases of 2–100 characters. Works with ministry, organisation and delivery-area searches; existing keyword rules still apply. At most 60 listing pages are scanned. Empty means no extra filter.",
            "items": {
              "type": "string"
            }
          },
          "minEstimatedValue": {
            "title": "Shortlist: Minimum estimated value (INR)",
            "minimum": 0,
            "maximum": 1000000000000000,
            "type": "integer",
            "description": "At least this published estimated bid value in INR. Opt-in qualification limit; requires includeDetails: true. Unknown values are excluded. All limits must pass. Only delivered rows are charged; checks stop after 100 rejected bids, with at most 60 listing pages per run. Narrow buyer, dates or itemKeywords for selective searches."
          },
          "maxEstimatedValue": {
            "title": "Shortlist: Maximum estimated value (INR)",
            "minimum": 0,
            "maximum": 1000000000000000,
            "type": "integer",
            "description": "At most this published estimated bid value in INR. Opt-in qualification limit; requires includeDetails: true. Unknown values are excluded. All limits must pass. Only delivered rows are charged; checks stop after 100 rejected bids, with at most 60 listing pages per run. Narrow buyer, dates or itemKeywords for selective searches."
          },
          "maxEmdAmount": {
            "title": "Shortlist: Maximum EMD (INR)",
            "minimum": 0,
            "maximum": 1000000000000000,
            "type": "integer",
            "description": "At most this EMD in INR. An explicit no-EMD requirement counts as zero. Opt-in qualification limit; requires includeDetails: true. Unknown values are excluded. All limits must pass. Only delivered rows are charged; checks stop after 100 rejected bids, with at most 60 listing pages per run. Narrow buyer, dates or itemKeywords for selective searches."
          },
          "maxMinimumTurnover": {
            "title": "Shortlist: Maximum required turnover (INR)",
            "minimum": 0,
            "maximum": 1000000000000000,
            "type": "integer",
            "description": "At most this minimum average annual bidder turnover in INR. Bids whose document does not state a minimum turnover are excluded by this filter. Opt-in qualification limit; requires includeDetails: true. Unknown values are excluded. All limits must pass. Only delivered rows are charged; checks stop after 100 rejected bids, with at most 60 listing pages per run. Narrow buyer, dates or itemKeywords for selective searches."
          },
          "maxPastExperienceYears": {
            "title": "Shortlist: Maximum required experience (years)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "At most this many years of required past experience. Bids whose document does not state required past experience are excluded by this filter. Opt-in qualification limit; requires includeDetails: true. Unknown values are excluded. All limits must pass. Only delivered rows are charged; checks stop after 100 rejected bids, with at most 60 listing pages per run. Narrow buyer, dates or itemKeywords for selective searches."
          },
          "closingWithinDays": {
            "title": "Closing within days (including today)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Rolling India-time closing window including today: 1 means today; 7 means today and the next six days. Cannot combine with bidEndFrom or bidEndTo. Recomputed on each scheduled run."
          },
          "categoryIds": {
            "title": "Exact GeM category IDs",
            "maxItems": 20,
            "type": "array",
            "description": "Optional OR shortlist of at most 20 exact categoryId values from a previous dataset. Case-sensitive; these are IDs, not category names. Works with buyer/location searches. Missing IDs are excluded; scans at most 60 listing pages. Use itemKeywords for category names.",
            "items": {
              "type": "string"
            }
          },
          "includeQualificationText": {
            "title": "Include published qualification text",
            "type": "boolean",
            "description": "With includeDetails on, each bid also shows the seller's required-document list and the MSE and Startup relaxation terms, read from the same bid PDF at no extra cost. On by default with details; set to false to leave them out. The text is the published English header text, not an eligibility decision."
          },
          "includeDocumentLinks": {
            "title": "Include PDF attachment links (BOQ and supporting files)",
            "type": "boolean",
            "description": "With includeDetails on, each bid also lists the downloadable links embedded in its bid PDF (BOQ and buyer supporting files) with the PDF page, at no extra cost. On by default with details. Reads the first 30 PDF pages. Use Include BOQ line items to read GeM BOQ CSVs."
          },
          "includeBoqLineItems": {
            "title": "Include BOQ line items",
            "type": "boolean",
            "description": "Add item titles, descriptions, quantities, units and delivery terms from the official GeM BOQ CSV linked in the bid PDF. Off by default. Requires Include bid document details. Coverage is limited to one supported CSV per BOQ bid, with no extra event charge."
          },
          "includeBidResults": {
            "title": "Include seller evaluations and financial results",
            "type": "boolean",
            "description": "Add published seller participation, qualification, MSE/MII flags, financial offers and ranks. Use a result-stage Status to find evaluated bids. Missing results stay null; an L1 offer is not proof of an executed award. Currently included at no extra charge.",
            "default": false
          },
          "includeAwardDetails": {
            "title": "Include award-stage L1 offers and contract references",
            "type": "boolean",
            "description": "For bids GeM marks Awarded, add published L1 offers, any explicit contract links from the result page, and the official contract-search link. GeM's separate contract search can require manual verification. Currently included at no extra charge."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}