{
  "openapi": "3.0.1",
  "info": {
    "title": "Japan IT Tender Signal — 官公需 IT入札・プロポーザル新着",
    "description": "New Japanese public-sector IT tenders (national ministries, agencies, prefectures, cities) from the official 官公需情報ポータル API. Built-in IT queries, deadline/budget extraction, proposals flag, only new since your last run. 日本語対応。",
    "version": "0.1",
    "x-build-id": "EQAWf5nAt39FGkFQr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/handa-labs~japan-it-tender-signal/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-handa-labs-japan-it-tender-signal",
        "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/handa-labs~japan-it-tender-signal/runs": {
      "post": {
        "operationId": "runs-sync-handa-labs-japan-it-tender-signal",
        "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/handa-labs~japan-it-tender-signal/run-sync": {
      "post": {
        "operationId": "run-sync-handa-labs-japan-it-tender-signal",
        "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": {
          "useItPreset": {
            "title": "Use the built-in IT query set",
            "type": "boolean",
            "description": "12 full-text queries covering system development, cloud, software, network, servers, data platforms, AI/RPA, DX, websites, security, IT maintenance and GIS. Turn off to use only your own queries.",
            "default": true
          },
          "queries": {
            "title": "Additional full-text queries (Japanese)",
            "type": "array",
            "description": "Each entry is one API query over the full notice text. Supports AND / OR / ANDNOT and parentheses, e.g. \"電子カルテ OR 医療情報システム\".",
            "items": {
              "type": "string"
            }
          },
          "prefectureCodes": {
            "title": "Prefecture codes (JIS X 0401)",
            "type": "array",
            "description": "Two-digit codes, e.g. 13 = 東京都, 27 = 大阪府, 14 = 神奈川県. Empty = all of Japan.",
            "items": {
              "type": "string"
            }
          },
          "organizationName": {
            "title": "Organisation name contains",
            "type": "string",
            "description": "e.g. 東京都, 国土交通省, 大阪市. Partial match."
          },
          "category": {
            "title": "Category",
            "enum": [
              "all",
              "goods",
              "works",
              "services"
            ],
            "type": "string",
            "description": "goods = 物品, works = 工事, services = 役務. About half of the notices carry no category, so 'all' is the safe default.",
            "default": "all"
          },
          "procedureType": {
            "title": "Procedure type",
            "enum": [
              "all",
              "open",
              "simple-open",
              "simple-nominated"
            ],
            "type": "string",
            "description": "Only about a third of notices carry a procedure type.",
            "default": "all"
          },
          "excludeNoise": {
            "title": "Drop building-equipment noise",
            "type": "boolean",
            "description": "Drops notices mentioning 空調, 給排水, 消防設備, 照明, 受変電, 昇降機 etc. (HVAC and other 'systems' that are not IT).",
            "default": true
          },
          "excludeWorks": {
            "title": "Drop construction works (工事)",
            "type": "boolean",
            "description": "Drops notices categorised 工事 or whose title contains 工事. IT notices are almost always 物品/役務.",
            "default": true
          },
          "itTitleFilter": {
            "title": "Require an IT term in the title",
            "type": "boolean",
            "description": "Keeps only notices whose title (or opening lines when the title is a file name) contains an IT term such as システム, クラウド, ネットワーク, データ, DX, ホームページ, セキュリティ. Defaults to on when the IT preset is used; turn off for your own non-IT queries.",
            "default": true
          },
          "excludeTerms": {
            "title": "Extra exclude terms",
            "type": "array",
            "description": "Notices whose title or first 3000 characters contain any of these are dropped.",
            "items": {
              "type": "string"
            }
          },
          "proposalOnly": {
            "title": "Proposals / 企画競争 only",
            "type": "boolean",
            "description": "Keep only プロポーザル, 企画競争, 企画提案, 公募型 notices.",
            "default": false
          },
          "minBudgetJpy": {
            "title": "Minimum budget (JPY)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only notices whose text states a 予定価格 / 上限額 of at least this amount. Notices without a parsed budget are dropped when set."
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Notices issued (公告日) within the last N days (1–30). The portal registers notices about one day after publication.",
            "default": 2
          },
          "descriptionChars": {
            "title": "Description excerpt length",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "Characters of the notice text to include per record (0 = none).",
            "default": 1200
          },
          "includeFullText": {
            "title": "Include the full notice text",
            "type": "boolean",
            "description": "Adds `fullText` (median ~5,000 characters, up to 200k). Off by default to keep datasets small.",
            "default": false
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "monitor",
              "snapshot"
            ],
            "type": "string",
            "description": "monitor = remember what was returned and only emit notices not seen before (first run is a free baseline). snapshot = return everything matching every time.",
            "default": "monitor"
          },
          "watchlistId": {
            "title": "Watchlist ID",
            "type": "string",
            "description": "Name for this watch (e.g. \"tokyo-cloud\"). Separate IDs keep separate memories; the filters are part of the key too.",
            "default": "default"
          },
          "emitBaseline": {
            "title": "Emit the baseline too",
            "type": "boolean",
            "description": "On the very first run of a watchlist, also output the current notices (charged). Default: only a free summary.",
            "default": false
          },
          "maxNotices": {
            "title": "Max notices",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Cap on notices kept per run (newest first).",
            "default": 2000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}