{
  "openapi": "3.0.1",
  "info": {
    "title": "Earthquake Scraper — Global USGS Feed by Magnitude & Area",
    "description": "Collect global earthquakes with magnitude, place, time, depth, coordinates, tsunami and alert level. Filter by time window, magnitude, depth, bounding box or radius — export as JSON, CSV or Excel for alerts, maps, dashboards and research.",
    "version": "1.0",
    "x-build-id": "LuqGOTAJChaD2XsJE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hipersoft~earthquake-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hipersoft-earthquake-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/hipersoft~earthquake-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hipersoft-earthquake-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/hipersoft~earthquake-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hipersoft-earthquake-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": {
          "period": {
            "title": "Time window",
            "enum": [
              "hour",
              "day",
              "week",
              "month",
              "custom"
            ],
            "type": "string",
            "description": "Quick time window ending now. Choose a preset, or pick \"Custom range\" and set Start/End time below.",
            "default": "day"
          },
          "startTime": {
            "title": "Start time (custom)",
            "type": "string",
            "description": "Start of a custom range, ISO 8601 (e.g. 2026-09-01 or 2026-09-01T00:00:00). Used when Time window is \"Custom range\".",
            "default": ""
          },
          "endTime": {
            "title": "End time (custom)",
            "type": "string",
            "description": "End of a custom range, ISO 8601. Leave empty for \"now\".",
            "default": ""
          },
          "minMagnitude": {
            "title": "Minimum magnitude",
            "type": "string",
            "description": "Only return earthquakes at or above this magnitude (e.g. 2.5, 4.5, 6). Leave empty for all.",
            "default": "2.5"
          },
          "maxMagnitude": {
            "title": "Maximum magnitude",
            "type": "string",
            "description": "Only return earthquakes at or below this magnitude. Leave empty for no upper limit.",
            "default": ""
          },
          "minDepth": {
            "title": "Minimum depth (km)",
            "type": "string",
            "description": "Only earthquakes at or deeper than this depth in km. Leave empty to ignore.",
            "default": ""
          },
          "maxDepth": {
            "title": "Maximum depth (km)",
            "type": "string",
            "description": "Only earthquakes at or shallower than this depth in km. Leave empty to ignore.",
            "default": ""
          },
          "latitude": {
            "title": "Center latitude",
            "type": "string",
            "description": "Latitude for a circular (radius) search. Use with Center longitude and Radius.",
            "default": ""
          },
          "longitude": {
            "title": "Center longitude",
            "type": "string",
            "description": "Longitude for a circular (radius) search.",
            "default": ""
          },
          "maxRadiusKm": {
            "title": "Radius (km)",
            "type": "string",
            "description": "Radius in km around the center point. Use with Center latitude/longitude.",
            "default": ""
          },
          "minLatitude": {
            "title": "Box: min latitude",
            "type": "string",
            "description": "Bounding-box search: southern edge. Use the four box fields together.",
            "default": ""
          },
          "maxLatitude": {
            "title": "Box: max latitude",
            "type": "string",
            "description": "Bounding-box search: northern edge.",
            "default": ""
          },
          "minLongitude": {
            "title": "Box: min longitude",
            "type": "string",
            "description": "Bounding-box search: western edge.",
            "default": ""
          },
          "maxLongitude": {
            "title": "Box: max longitude",
            "type": "string",
            "description": "Bounding-box search: eastern edge.",
            "default": ""
          },
          "alertLevel": {
            "title": "Alert level",
            "enum": [
              "",
              "green",
              "yellow",
              "orange",
              "red"
            ],
            "type": "string",
            "description": "Filter by PAGER impact alert level.",
            "default": ""
          },
          "eventType": {
            "title": "Event type",
            "type": "string",
            "description": "Filter by event type (e.g. earthquake, quarry blast). Leave empty for all.",
            "default": ""
          },
          "orderBy": {
            "title": "Sort order",
            "enum": [
              "time",
              "time-asc",
              "magnitude",
              "magnitude-asc"
            ],
            "type": "string",
            "description": "Order of returned events.",
            "default": "time"
          },
          "maxItems": {
            "title": "Max earthquakes",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of earthquakes to collect.",
            "default": 1000
          },
          "proxyConfiguration": {
            "title": "Proxy (optional)",
            "type": "object",
            "description": "Optional proxy settings for the run. Not required — the data is fetched over plain HTTP.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}