{
  "openapi": "3.0.1",
  "info": {
    "title": "ICSID Investor-State Arbitration Scraper",
    "description": "Scrape the ICSID case database: 1,150+ investor-state arbitration and conciliation cases since 1972 with parties and nationalities, treaty invoked, tribunal, counsel, procedural timeline and published decisions.",
    "version": "0.1",
    "x-build-id": "qQUp7zArhVCGTi6fV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parseforge~icsid-arbitration-cases-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parseforge-icsid-arbitration-cases-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/parseforge~icsid-arbitration-cases-scraper/runs": {
      "post": {
        "operationId": "runs-sync-parseforge-icsid-arbitration-cases-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/parseforge~icsid-arbitration-cases-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-parseforge-icsid-arbitration-cases-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": {
          "caseNumbers": {
            "title": "Case numbers",
            "type": "array",
            "description": "ICSID case numbers to fetch directly, for example ARB/24/1, ARB(AF)/20/3 or CONC/21/1.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Case page URLs",
            "type": "array",
            "description": "Paste ICSID case detail URLs such as https://icsid.worldbank.org/cases/case-database/case-detail?CaseNo=ARB/24/1.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Free users: limited to 10 items (preview). Paid users: up to 1,000,000."
          },
          "caseStatuses": {
            "title": "Case status",
            "type": "array",
            "description": "Keep only cases in these states. The database holds 304 pending and 852 concluded cases.",
            "items": {
              "type": "string",
              "enum": [
                "Pending",
                "Concluded"
              ],
              "enumTitles": [
                "Pending",
                "Concluded"
              ]
            }
          },
          "caseTypes": {
            "title": "Case type",
            "type": "array",
            "description": "Keep only these proceeding types, read from the case number: 1,050 ICSID Convention arbitrations, 91 Additional Facility cases and 15 conciliations.",
            "items": {
              "type": "string",
              "enum": [
                "Arbitration",
                "Arbitration (Additional Facility)",
                "Conciliation",
                "Conciliation (Additional Facility)"
              ],
              "enumTitles": [
                "Arbitration",
                "Arbitration (Additional Facility)",
                "Conciliation",
                "Conciliation (Additional Facility)"
              ]
            }
          },
          "economicSectors": {
            "title": "Economic sector",
            "type": "array",
            "description": "Keep only cases in these sectors, as ICSID classifies them on the case page.",
            "items": {
              "type": "string",
              "enum": [
                "Agriculture, Fishing & Forestry",
                "Construction",
                "Electric Power & Other Energy",
                "Finance",
                "Information & Communication",
                "Oil, Gas & Mining",
                "Other",
                "Other Industry",
                "Services & Trade",
                "Tourism",
                "Transportation",
                "Water, Sanitation & Flood Protection"
              ],
              "enumTitles": [
                "Agriculture, Fishing & Forestry",
                "Construction",
                "Electric Power & Other Energy",
                "Finance",
                "Information & Communication",
                "Oil, Gas & Mining",
                "Other",
                "Other Industry",
                "Services & Trade",
                "Tourism",
                "Transportation",
                "Water, Sanitation & Flood Protection"
              ]
            }
          },
          "respondentStateContains": {
            "title": "Respondent state contains",
            "type": "string",
            "description": "Keep only cases against this state, for example \"Spain\", \"Venezuela\" or \"Egypt\"."
          },
          "claimantContains": {
            "title": "Claimant contains",
            "type": "string",
            "description": "Keep only cases brought by a claimant whose name contains this text."
          },
          "arbitratorNameContains": {
            "title": "Arbitrator name contains",
            "type": "string",
            "description": "Keep only cases where an arbitrator, president or committee member matches this text. Applied after the case page is read."
          },
          "treatyContains": {
            "title": "Treaty or instrument contains",
            "type": "string",
            "description": "Keep only cases invoking a matching instrument, for example \"Energy Charter\", \"NAFTA\" or a country name in a BIT."
          },
          "registeredFrom": {
            "title": "Registered from",
            "type": "string",
            "description": "Earliest registration date, as YYYY-MM-DD. The database starts in 1972."
          },
          "registeredTo": {
            "title": "Registered to",
            "type": "string",
            "description": "Latest registration date, as YYYY-MM-DD."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "newest",
              "oldest",
              "case-number"
            ],
            "type": "string",
            "description": "Order the cases before reading them.",
            "default": "newest"
          },
          "includeTribunal": {
            "title": "Tribunal composition",
            "type": "boolean",
            "description": "Add every arbitrator, president or committee member with their nationality and who appointed them.",
            "default": false
          },
          "includeRepresentatives": {
            "title": "Party representatives",
            "type": "boolean",
            "description": "Add counsel and law firms for each side with their city and country.",
            "default": false
          },
          "includeProceduralTimeline": {
            "title": "Procedural timeline",
            "type": "boolean",
            "description": "Add every dated procedural step ICSID publishes for the case, from registration to the latest filing.",
            "default": false
          },
          "includePublishedDecisions": {
            "title": "Published decisions",
            "type": "boolean",
            "description": "Add the published awards, decisions and procedural orders with their dates, languages and PDF links.",
            "default": false
          },
          "includeCaseOutcome": {
            "title": "Case outcome",
            "type": "boolean",
            "description": "Classify how the case ended from its procedural record: award rendered, discontinued, settled, annulment decided or jurisdiction declined.",
            "default": false
          },
          "includeDecisionText": {
            "title": "Decision document text",
            "type": "boolean",
            "description": "Download the published decision PDFs and extract their text. Slow and charged per document, so keep the document limit low.",
            "default": false
          },
          "maxDecisionDocuments": {
            "title": "Documents per case",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many published decisions to download per case when decision text is on. Maximum 20."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}