{
  "openapi": "3.0.1",
  "info": {
    "title": "Korean Public Procurement Tenders (KONEPS) — English",
    "description": "Korean government tenders from KONEPS (나라장터): bid notices with deadlines and prices, award winners, and bid-opening results, filtered by keyword, agency, region or price, as English-labeled JSON. Bring your free data.go.kr key; pay per record.",
    "version": "0.1",
    "x-build-id": "jN8PARdFNzKpmyZEH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/elpalaiso~koneps-korea-tenders/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-elpalaiso-koneps-korea-tenders",
        "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/elpalaiso~koneps-korea-tenders/runs": {
      "post": {
        "operationId": "runs-sync-elpalaiso-koneps-korea-tenders",
        "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/elpalaiso~koneps-korea-tenders/run-sync": {
      "post": {
        "operationId": "run-sync-elpalaiso-koneps-korea-tenders",
        "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",
        "required": [
          "mode"
        ],
        "properties": {
          "serviceKey": {
            "title": "data.go.kr service key",
            "type": "string",
            "description": "Optional. Leave empty to use the Actor's built-in shared key (fair-use cap of 200 requests per run). data.go.kr accounts require Korean identity verification, so most users should simply leave this empty."
          },
          "useSampleData": {
            "title": "Use bundled sample data",
            "type": "boolean",
            "description": "Return bundled sample records without an API call or record charge, even when a service key is available.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Live Apify runs need a South Korean residential IP because data.go.kr rejects connections from outside Korea. Keep the default unless you provide an equivalent Korean proxy; local runs stay direct when this input is absent.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "KR"
            }
          },
          "mode": {
            "title": "What to fetch",
            "enum": [
              "bid_notices",
              "awards",
              "opening_results"
            ],
            "type": "string",
            "description": "bid_notices: open and past tender notices with deadlines, prices, documents and contacts. awards: final winners with amounts and rates. opening_results: bid-opening results with the first-ranked bidder and bid rate.",
            "default": "bid_notices"
          },
          "categories": {
            "title": "Procurement categories",
            "type": "array",
            "description": "goods (물품), construction (공사), service (용역), foreign (외자 — international procurement). Default: all four.",
            "items": {
              "type": "string",
              "enum": [
                "goods",
                "construction",
                "service",
                "foreign"
              ],
              "enumTitles": [
                "Goods (물품)",
                "Construction works (공사)",
                "Services (용역)",
                "Foreign procurement (외자)"
              ]
            },
            "default": [
              "goods",
              "construction",
              "service",
              "foreign"
            ]
          },
          "startDate": {
            "title": "From (YYYY-MM-DD)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Start of the date range (Korea Standard Time). Ranges longer than 31 days are split into monthly windows automatically."
          },
          "endDate": {
            "title": "Until (YYYY-MM-DD)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "End of the date range (inclusive)."
          },
          "dateType": {
            "title": "Date range applies to",
            "enum": [
              "posted",
              "opening",
              "registered",
              "changed"
            ],
            "type": "string",
            "description": "posted: notice publication date (default). opening: bid-opening date. registered / changed: when the record was registered or last changed in KONEPS (basic operations, no search filters).",
            "default": "posted"
          },
          "noticeNumbers": {
            "title": "Specific notice numbers",
            "type": "array",
            "description": "Look up specific tenders by notice number (e.g. R25BK00940072). When set, the date range is ignored.",
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "Title contains",
            "type": "string",
            "description": "Korean keyword to match in the notice title (partial match), e.g. 드론, CCTV, 의료기기, 소프트웨어."
          },
          "agencyName": {
            "title": "Announcing agency contains",
            "type": "string",
            "description": "Partial match on the announcing agency name (공고기관명), e.g. 조달청, 한국전력."
          },
          "demandAgencyName": {
            "title": "Demand agency contains",
            "type": "string",
            "description": "Partial match on the end-user agency (수요기관명), e.g. 서울특별시, 국방부."
          },
          "regionCode": {
            "title": "Region restriction code",
            "type": "string",
            "description": "Participation-limit region code: 11 Seoul, 26 Busan, 27 Daegu, 28 Incheon, 29 Gwangju, 30 Daejeon, 31 Ulsan, 36 Sejong, 41 Gyeonggi, 42/51 Gangwon, 43 Chungbuk, 44 Chungnam, 45 Jeonbuk, 46 Jeonnam, 47 Gyeongbuk, 48 Gyeongnam, 50 Jeju. Leave empty for all."
          },
          "industryCode": {
            "title": "Industry code",
            "type": "string",
            "description": "KONEPS industry/licence code (업종코드), e.g. 0003."
          },
          "minEstimatedPrice": {
            "title": "Min estimated price (KRW)",
            "minimum": 0,
            "type": "integer",
            "description": "Only tenders with an estimated price at or above this amount in KRW."
          },
          "maxEstimatedPrice": {
            "title": "Max estimated price (KRW)",
            "minimum": 0,
            "type": "integer",
            "description": "Only tenders with an estimated price at or below this amount in KRW."
          },
          "international": {
            "title": "Domestic or international",
            "enum": [
              "any",
              "domestic",
              "international"
            ],
            "type": "string",
            "description": "Filter notices open to international bidders (국제입찰). 'any' returns both.",
            "default": "any"
          },
          "excludeClosed": {
            "title": "Exclude tenders already closed",
            "type": "boolean",
            "description": "bid_notices only: skip notices whose bid deadline has passed.",
            "default": false
          },
          "winnerBusinessNo": {
            "title": "Winner business registration number",
            "type": "string",
            "description": "awards only: filter by the winning company's 사업자등록번호 (10 digits)."
          },
          "includeKorean": {
            "title": "Keep Korean labels",
            "type": "boolean",
            "description": "Keep *_ko fields (agency names, methods, specs) next to English fields. title_ko is always kept.",
            "default": true
          },
          "includeContacts": {
            "title": "Keep contact details",
            "type": "boolean",
            "description": "Keep notice contact name, phone and email, plus award-winner CEO name and phone. Disable to omit these fields.",
            "default": true
          },
          "pageSize": {
            "title": "Page size",
            "minimum": 1,
            "maximum": 999,
            "type": "integer",
            "description": "Rows per API request (1–999). The API silently resets values above 999 to 10; this Actor caps them at 999.",
            "default": 100
          },
          "maxWindowDays": {
            "title": "Maximum days per API query",
            "minimum": 1,
            "maximum": 31,
            "type": "integer",
            "description": "Split the requested date range into windows of this many days. The API rejects windows longer than 31 days, so this Actor caps the value at 31.",
            "default": 31
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many records (0 = no limit). Useful for a cheap first test.",
            "default": 0
          },
          "requestBudget": {
            "title": "API request budget",
            "minimum": 0,
            "type": "integer",
            "description": "Stop cleanly after this many data.go.kr HTTP requests, including retries, and keep records already saved. With your own key, 0 means unlimited; with the built-in shared key, 0 applies the fair-use cap of 200 requests per run.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}