{
  "openapi": "3.0.1",
  "info": {
    "title": "Singapore New Companies Feed: ACRA Monthly Registrations",
    "description": "Monthly feed of newly registered Singapore companies, LLPs, LPs and foreign branches from ACRA open data (data.gov.sg): UEN, name, type, status, registration date, SSIC industry, postal district. Filter by SSIC, keyword, district. No sole proprietors.",
    "version": "0.1",
    "x-build-id": "pMBhDL9MqBJbrkoSG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/moment-data~singapore-acra-new-entities-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-moment-data-singapore-acra-new-entities-feed",
        "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/moment-data~singapore-acra-new-entities-feed/runs": {
      "post": {
        "operationId": "runs-sync-moment-data-singapore-acra-new-entities-feed",
        "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/moment-data~singapore-acra-new-entities-feed/run-sync": {
      "post": {
        "operationId": "run-sync-moment-data-singapore-acra-new-entities-feed",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "window",
              "sinceLastRun"
            ],
            "type": "string",
            "description": "window = entities registered in the last Days back days of the latest monthly ACRA snapshot (stateless, default). sinceLastRun = only entities (by UEN) not delivered by a previous run with the same State key; re-reads 10 days of overlap. Schedule monthly, around the 15th-20th, after ACRA's monthly update.",
            "default": "window"
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 1,
            "maximum": 366,
            "type": "integer",
            "description": "Registration-date window ending on the newest registration date in the snapshot (the data is updated monthly, roughly 2 weeks after month end, so 31 = the latest full month). About 5,000-6,000 companies, LLPs and branches are registered per month.",
            "default": 31
          },
          "registeredFrom": {
            "title": "Registered from (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional fixed start date (overrides Days back). Max range 366 days."
          },
          "registeredTo": {
            "title": "Registered to (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional fixed end date. Default = newest date in the snapshot."
          },
          "entityTypes": {
            "title": "Entity types",
            "type": "array",
            "description": "localCompany (Pte. Ltd., Ltd., public companies limited by guarantee), llp (Limited Liability Partnership), lp (Limited Partnership), foreignCompanyBranch. Empty = all four. Sole proprietorships / partnership business names are never included.",
            "items": {
              "type": "string"
            }
          },
          "companyTypeKeywords": {
            "title": "Company type contains (any)",
            "type": "array",
            "description": "Match ACRA company type text, e.g. 'exempt private' (Exempt Private Company Limited by Shares), 'private company limited by shares', 'guarantee' (non-profits / clubs / charities), 'public company limited by shares'.",
            "items": {
              "type": "string"
            }
          },
          "statusKeywords": {
            "title": "Status contains (any)",
            "type": "array",
            "description": "Match entity status text, e.g. 'live' (Live Company / Live). Empty = any status (almost all new entities are live).",
            "items": {
              "type": "string"
            }
          },
          "ssicCodes": {
            "title": "SSIC industry codes or prefixes",
            "type": "array",
            "description": "SSIC 2020 codes or prefixes of the primary activity, e.g. 62 (IT / software), 6201, 56 (food & beverage), 41 (construction), 70201 (management consultancy), 64 (finance / holding). Exact 5-digit codes are filtered on the server (fastest).",
            "items": {
              "type": "string"
            }
          },
          "includeSecondarySsic": {
            "title": "Also match secondary SSIC",
            "type": "boolean",
            "description": "Match SSIC codes against the secondary activity too.",
            "default": false
          },
          "activityKeywords": {
            "title": "Activity keywords (any)",
            "type": "array",
            "description": "Match the SSIC descriptions and the company's own activity description, e.g. 'software', 'restaurant', 'renovation', 'artificial intelligence', 'fintech'.",
            "items": {
              "type": "string"
            }
          },
          "nameKeywords": {
            "title": "Name contains (any)",
            "type": "array",
            "description": "Keep entities whose name (or former name) contains any of these, e.g. tech, capital, robotics, cafe.",
            "items": {
              "type": "string"
            }
          },
          "excludeNameKeywords": {
            "title": "Name excludes",
            "type": "array",
            "description": "Drop entities whose name contains any of these, e.g. holdings, investment, family office.",
            "items": {
              "type": "string"
            }
          },
          "postalDistricts": {
            "title": "Postal districts (01-28)",
            "type": "array",
            "description": "Singapore postal districts of the registered office, e.g. 01 (Raffles Place / CBD), 09 (Orchard), 15 (Katong), 22 (Jurong). Uses the standard sector-to-district map.",
            "items": {
              "type": "string"
            }
          },
          "postalSectors": {
            "title": "Postal sectors (first 2 digits)",
            "type": "array",
            "description": "First two digits of the 6-digit postal code, e.g. 01, 04, 18, 60.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max records per run",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Hard cap on delivered records (also caps your spend). Newest registrations first.",
            "default": 30
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "sinceLastRun only: separate saved state per saved search (e.g. 'sg-it-companies').",
            "default": "default"
          },
          "dataGovSgApiKey": {
            "title": "data.gov.sg API key (optional)",
            "type": "string",
            "description": "Optional free data.gov.sg API key for higher rate limits (anonymous access allows 4 searches per 10 seconds, so a full-month run takes 1-3 minutes). Not needed for normal use."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}