{
  "openapi": "3.0.1",
  "info": {
    "title": "SEIA Chile Projects Scraper — Environmental Impact Assessment",
    "description": "Scrape 30,000+ projects from Chile's Environmental Impact Assessment System (SEIA): owner company, investment, sector, region, comunas, status, submission and approval dates, coordinates, RCA. Filter by region, sector, status, dates, investment. From US$4 per 1,000 projects.",
    "version": "0.1",
    "x-build-id": "2ZxQMFDLXi55YdfC6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fabrikit~seia-chile-projects-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fabrikit-seia-chile-projects-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/fabrikit~seia-chile-projects-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fabrikit-seia-chile-projects-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/fabrikit~seia-chile-projects-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fabrikit-seia-chile-projects-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": "Project name contains",
            "type": "string",
            "description": "Words in the project name (accent-insensitive), e.g. `fotovoltaico`, `hidrógeno`, `desaladora`, `línea de transmisión`. Leave empty for all projects.",
            "default": ""
          },
          "owner": {
            "title": "Owner company (titular) contains",
            "type": "string",
            "description": "Part of the owner's name, e.g. `Codelco`, `Enel`, `Aguas Andinas`, `SQM`. Leave empty for all owners.",
            "default": ""
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "Only projects located in these regions. `Interregional` = projects that SEIA's central office evaluates because they span several regions (their comunas are still listed per project). Empty = all of Chile.",
            "items": {
              "type": "string",
              "enum": [
                "arica-y-parinacota",
                "tarapaca",
                "antofagasta",
                "atacama",
                "coquimbo",
                "valparaiso",
                "metropolitana",
                "ohiggins",
                "maule",
                "nuble",
                "biobio",
                "araucania",
                "los-rios",
                "los-lagos",
                "aysen",
                "magallanes",
                "interregional"
              ],
              "enumTitles": [
                "Arica y Parinacota",
                "Tarapacá",
                "Antofagasta",
                "Atacama",
                "Coquimbo",
                "Valparaíso",
                "Metropolitana de Santiago",
                "O'Higgins",
                "Maule",
                "Ñuble",
                "Biobío",
                "La Araucanía",
                "Los Ríos",
                "Los Lagos",
                "Aysén",
                "Magallanes y Antártica Chilena",
                "Interregional (projects spanning several regions)"
              ]
            },
            "default": []
          },
          "comunas": {
            "title": "Comunas",
            "type": "array",
            "description": "Official comuna names, e.g. `Calama`, `Mejillones`, `Puerto Montt` (accent-insensitive). Empty = no comuna filter.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sectors": {
            "title": "Economic sectors",
            "type": "array",
            "description": "SEIA's productive sector of the project. Empty = all sectors.",
            "items": {
              "type": "string",
              "enum": [
                "energy",
                "mining",
                "real-estate",
                "environmental-sanitation",
                "fishing-aquaculture",
                "transport-infrastructure",
                "water-infrastructure",
                "port-infrastructure",
                "industrial-facilities",
                "public-facilities",
                "territorial-planning",
                "agriculture",
                "forestry",
                "other"
              ],
              "enumTitles": [
                "Energy (Energía)",
                "Mining (Minería)",
                "Real estate (Inmobiliarios)",
                "Environmental sanitation (Saneamiento Ambiental)",
                "Fishing & aquaculture (Pesca y Acuicultura)",
                "Transport infrastructure (Infraestructura de Transporte)",
                "Water infrastructure (Infraestructura Hidráulica)",
                "Port infrastructure (Infraestructura Portuaria)",
                "Industrial facilities (Instalaciones fabriles varias)",
                "Public & commercial facilities (Equipamiento)",
                "Territorial planning (Planificación Territorial)",
                "Agriculture & livestock (Agropecuario)",
                "Forestry (Forestal)",
                "Other (Otros)"
              ]
            },
            "default": []
          },
          "typologyCodes": {
            "title": "Project typology codes",
            "type": "array",
            "description": "Art. 3 typology letter codes of the SEIA regulation (D.S. 40), e.g. `c` (power plants > 3 MW), `b1` (high-voltage lines), `i` (mining), `o8` (industrial waste), `h1.3` (housing). A letter matches all its sub-codes. Empty = all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "submissionType": {
            "title": "Submission type",
            "enum": [
              "any",
              "DIA",
              "EIA"
            ],
            "type": "string",
            "description": "`DIA` = Declaración de Impacto Ambiental (smaller projects), `EIA` = Estudio de Impacto Ambiental (large projects with significant impacts).",
            "default": "any"
          },
          "statuses": {
            "title": "Project status",
            "type": "array",
            "description": "Current status in SEIA. Empty = any status.",
            "items": {
              "type": "string",
              "enum": [
                "in-admission",
                "in-evaluation",
                "approved",
                "rejected",
                "not-admitted",
                "not-qualified",
                "withdrawn",
                "abandoned",
                "lapsed",
                "revoked",
                "rca-waived"
              ],
              "enumTitles": [
                "In admission (En Admisión)",
                "Under evaluation (En Calificación)",
                "Approved (Aprobado)",
                "Rejected (Rechazado)",
                "Not admitted (No Admitido a Tramitación)",
                "Not qualified (No calificado)",
                "Withdrawn (Desistido)",
                "Abandoned (Abandonado)",
                "Lapsed (Caducado)",
                "Revoked (Revocado)",
                "RCA waived (Renuncia RCA)"
              ]
            },
            "default": []
          },
          "submittedFrom": {
            "title": "Submitted from",
            "type": "string",
            "description": "Only projects submitted (fecha de presentación) on or after this date (YYYY-MM-DD)."
          },
          "submittedTo": {
            "title": "Submitted to",
            "type": "string",
            "description": "Only projects submitted on or before this date (YYYY-MM-DD)."
          },
          "qualifiedFrom": {
            "title": "Qualified (decided) from",
            "type": "string",
            "description": "Only projects whose evaluation ended (fecha de calificación: approval, rejection, withdrawal...) on or after this date (YYYY-MM-DD)."
          },
          "qualifiedTo": {
            "title": "Qualified (decided) to",
            "type": "string",
            "description": "Only projects whose evaluation ended on or before this date (YYYY-MM-DD)."
          },
          "minInvestmentMMUSD": {
            "title": "Minimum investment (MMUS$)",
            "minimum": 0,
            "type": "number",
            "description": "Only projects with a declared investment of at least this many million US dollars (e.g. `100` = US$100M). Fastest together with sort = Investment. 0 = no minimum.",
            "default": 0
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "newest",
              "oldest",
              "investment"
            ],
            "type": "string",
            "description": "`newest` = most recently submitted first (best for monitoring new projects), `oldest`, or `investment` = largest declared investment first.",
            "default": "newest"
          },
          "maxItems": {
            "title": "Max projects",
            "minimum": 1,
            "maximum": 40000,
            "type": "integer",
            "description": "Stop after this many projects. The whole SEIA database is ~30,250 projects; a full export takes about 40 minutes (1,000 projects: ~1.5 minutes).",
            "default": 50
          },
          "includeQualificationDate": {
            "title": "Add qualification (decision) date",
            "type": "boolean",
            "description": "Read the official qualification date of every project whose evaluation has ended (1 tiny extra request per project; no extra charge). Turn off for slightly faster runs.",
            "default": true
          },
          "fetchDetails": {
            "title": "Fetch project file details (add-on)",
            "type": "boolean",
            "description": "Visit each project's file (ficha) to add the project description and objective, all typologies, the full status history with resolution numbers and PDF links, the RCA (environmental qualification resolution) number/date/PDF, sectoral environmental permits (PAS), and the owner company's RUT and registered address. Billed as an extra `project-details` event per project.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "SEIA answers plain requests from Apify's servers, so no proxy is needed. If the site ever stops answering, the Actor automatically retries through Chilean residential proxies.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}