{
  "openapi": "3.0.1",
  "info": {
    "title": "USGS Earthquake Monitor & Catalog Search",
    "description": "Unofficial; not affiliated with USGS. Search and monitor earthquakes from the official USGS catalog: magnitude, region, radius, depth, PAGER alert. Only-new results plus revisions (magnitude, status, alert changes) for scheduled runs.",
    "version": "0.1",
    "x-build-id": "yw5zFpNv2G0XDPEhF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/brightish_ascent~usgs-earthquake-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-brightish_ascent-usgs-earthquake-monitor",
        "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/brightish_ascent~usgs-earthquake-monitor/runs": {
      "post": {
        "operationId": "runs-sync-brightish_ascent-usgs-earthquake-monitor",
        "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/brightish_ascent~usgs-earthquake-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-brightish_ascent-usgs-earthquake-monitor",
        "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": {
          "minMagnitude": {
            "title": "Minimum magnitude",
            "minimum": -2,
            "maximum": 10,
            "type": "number",
            "description": "e.g. 2.5 or 4.5. Empty = any (many small events)."
          },
          "maxMagnitude": {
            "title": "Maximum magnitude",
            "minimum": -2,
            "maximum": 10,
            "type": "number",
            "description": "Optional."
          },
          "startTime": {
            "title": "Start (UTC)",
            "type": "string",
            "description": "YYYY-MM-DD or ISO date-time in UTC. If start and end are empty, the last 7 days are used."
          },
          "endTime": {
            "title": "End (UTC)",
            "type": "string",
            "description": "YYYY-MM-DD or ISO date-time in UTC."
          },
          "latitude": {
            "title": "Circle: center latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Use with longitude and maxRadiusKm. Do not combine with a bounding box."
          },
          "longitude": {
            "title": "Circle: center longitude",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Center longitude in degrees (-180 to 180), e.g. -118.25. Use with latitude and maxRadiusKm."
          },
          "maxRadiusKm": {
            "title": "Circle: radius (km)",
            "minimum": 0,
            "maximum": 20001.6,
            "type": "number",
            "description": "Radius around the center in kilometers, e.g. 300. Use with latitude and longitude."
          },
          "minLatitude": {
            "title": "Box: min latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Southern edge of the box in degrees (-90 to 90). Do not combine with a circle."
          },
          "maxLatitude": {
            "title": "Box: max latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Northern edge of the box in degrees (-90 to 90)."
          },
          "minLongitude": {
            "title": "Box: min longitude",
            "minimum": -360,
            "maximum": 360,
            "type": "number",
            "description": "Western edge of the box in degrees. Values -360 to 360 allow boxes that cross the date line."
          },
          "maxLongitude": {
            "title": "Box: max longitude",
            "minimum": -360,
            "maximum": 360,
            "type": "number",
            "description": "Eastern edge of the box in degrees (-360 to 360)."
          },
          "minDepthKm": {
            "title": "Min depth (km)",
            "minimum": -100,
            "maximum": 1000,
            "type": "number",
            "description": "Shallowest hypocenter depth in km (negative = above sea level), e.g. 0."
          },
          "maxDepthKm": {
            "title": "Max depth (km)",
            "minimum": -100,
            "maximum": 1000,
            "type": "number",
            "description": "Deepest hypocenter depth in km, e.g. 70 for shallow events only."
          },
          "alertLevel": {
            "title": "PAGER alert level",
            "enum": [
              "green",
              "yellow",
              "orange",
              "red"
            ],
            "type": "string",
            "description": "Only events with this USGS PAGER alert level. Empty = any (most events have no alert)."
          },
          "reviewStatus": {
            "title": "Review status",
            "enum": [
              "any",
              "automatic",
              "reviewed"
            ],
            "type": "string",
            "description": "automatic = preliminary solutions; reviewed = checked by a seismologist.",
            "default": "any"
          },
          "earthquakesOnly": {
            "title": "Earthquakes only",
            "type": "boolean",
            "description": "Exclude quarry blasts, explosions and other event types.",
            "default": true
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum rows per run (you pay per row). Default 25.",
            "default": 25
          },
          "onlyNewSinceLastRun": {
            "title": "Only new or changed since last run",
            "type": "boolean",
            "description": "For schedules: return events not delivered before with the same filters, plus delivered events whose magnitude, magnitude type, review status, PAGER alert, tsunami flag, type, location or depth was revised (updateType \"changed\"), while the event is within lookbackDays. First run is a baseline.",
            "default": false
          },
          "lookbackDays": {
            "title": "Lookback days (monitor mode)",
            "minimum": 0,
            "maximum": 90,
            "type": "integer",
            "description": "How far before the newest delivered event to keep watching for revisions and late-added events.",
            "default": 7
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "full",
              "compact"
            ],
            "type": "string",
            "description": "compact = key fields only.",
            "default": "full"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}