{
  "openapi": "3.0.1",
  "info": {
    "title": "Indian Gov Tender Analyser – GeM Bid Finder & Eligibility Check",
    "description": "Most powerful tender analyser for India's GeM portal. It scans all active tenders, finds the ones that match your business, checks every eligibility against your company, scores it, and gives you a ranked list with a BID / SKIP verdict, the deal documents, an action plan and the direct link to bid.",
    "version": "0.2",
    "x-build-id": "vAFCGfxdRsImS8AMg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gold_function~gem-bid-checker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gold_function-gem-bid-checker",
        "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/gold_function~gem-bid-checker/runs": {
      "post": {
        "operationId": "runs-sync-gold_function-gem-bid-checker",
        "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/gold_function~gem-bid-checker/run-sync": {
      "post": {
        "operationId": "run-sync-gold_function-gem-bid-checker",
        "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": {
          "bidUrls": {
            "title": "GeM bids (optional)",
            "type": "array",
            "description": "Leave empty to let the agent find open bids for you. Or paste GeM bid PDF URLs (https://bidplus.gem.gov.in/showbidDocument/10004155), document IDs (10004155) or bid numbers (GEM/2026/B/8133699).",
            "items": {
              "type": "string"
            }
          },
          "companyName": {
            "title": "Company name",
            "type": "string",
            "description": "Your registered or trading name."
          },
          "websiteUrl": {
            "title": "Website (optional)",
            "type": "string",
            "description": "Optional. We read up to 5 pages to understand what you make."
          },
          "companyDescription": {
            "title": "About your company",
            "type": "string",
            "description": "What you make or supply, where you are, size and strengths. Plain words are fine."
          },
          "keywords": {
            "title": "Products / keywords",
            "type": "array",
            "description": "What you make or sell, one per line, e.g. forging, stamping.",
            "items": {
              "type": "string"
            }
          },
          "certifications": {
            "title": "Certifications",
            "type": "array",
            "description": "e.g. ISO 9001:2015, BIS, Udyam.",
            "items": {
              "type": "string"
            }
          },
          "pastGovtExperience": {
            "title": "Past government supply (optional)",
            "type": "string",
            "description": "Optional. e.g. Supplied forged flanges to BHEL in 2024."
          },
          "annualTurnoverInr": {
            "title": "Average annual turnover (₹)",
            "minimum": 0,
            "type": "integer",
            "description": "Average yearly turnover in rupees, e.g. 30000000 for ₹3 Cr."
          },
          "yearsInBusiness": {
            "title": "Years in business",
            "minimum": 0,
            "type": "integer",
            "description": "How many years your company has been operating."
          },
          "isMSE": {
            "title": "Registered MSE (Udyam)",
            "type": "boolean",
            "description": "Tick if you hold a valid Udyam registration. Unlocks MSE relaxations.",
            "default": true
          },
          "isStartup": {
            "title": "DPIIT-recognised startup",
            "type": "boolean",
            "description": "Tick if recognised by DPIIT. Unlocks startup relaxations.",
            "default": false
          },
          "isOEM": {
            "title": "You are the OEM / manufacturer",
            "type": "boolean",
            "description": "Tick if you make the product yourself, not as a reseller.",
            "default": true
          },
          "isMakeInIndia": {
            "title": "Products meet Make in India local content",
            "type": "boolean",
            "description": "Tick if your products meet the required Indian local content.",
            "default": true
          },
          "states": {
            "title": "States you can deliver to",
            "type": "array",
            "description": "States you can deliver to. Bids whose delivery state is detected and different are skipped; unknown states are kept.",
            "items": {
              "type": "string"
            }
          },
          "minBidValueInr": {
            "title": "Minimum bid value (₹, optional)",
            "minimum": 0,
            "type": "integer",
            "description": "Only applied when the bid PDF declares an Estimated Bid Value."
          },
          "maxBidValueInr": {
            "title": "Maximum bid value (₹, optional)",
            "minimum": 0,
            "type": "integer",
            "description": "Only applied when the bid PDF declares an Estimated Bid Value."
          },
          "maxBidsToAnalyse": {
            "title": "Max bids to analyse",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many bid PDFs to read at most.",
            "default": 20
          },
          "targetQualifyingBids": {
            "title": "Target good bids",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Stop once this many BID/CHECK bids are found.",
            "default": 5
          },
          "modelName": {
            "title": "AI model",
            "type": "string",
            "description": "OpenRouter model slug (see https://openrouter.ai/models). No API key needed. Falls back to anthropic/claude-haiku-5.5 automatically.",
            "default": "google/gemini-3.8-flash"
          },
          "debug": {
            "title": "Debug",
            "type": "boolean",
            "description": "Produce more detailed logs.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}