{
  "openapi": "3.0.1",
  "info": {
    "title": "USGS Earthquake Catalog Data: Worldwide Events",
    "description": "Gets earthquake events from USGS ComCat worldwide, 10 events by default; turn on Only new events for daily runs. Each has time, magnitude, place, latitude, longitude, depth, tsunami flag and link, plus PAGER alert and felt reports when given. Filter with a date, magnitude and area. No login, no key.",
    "version": "0.1",
    "x-build-id": "ALgsoqYFTBrgdZlRi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/plain-build~usgs-earthquakes-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-plain-build-usgs-earthquakes-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/plain-build~usgs-earthquakes-scraper/runs": {
      "post": {
        "operationId": "runs-sync-plain-build-usgs-earthquakes-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/plain-build~usgs-earthquakes-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-plain-build-usgs-earthquakes-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": {
          "start_date": {
            "title": "Events on or after (YYYY-MM-DD)",
            "type": "string",
            "description": "Date as YYYY-MM-DD, or a UTC time as YYYY-MM-DDTHH:MM. Leave empty for the last 7 days. The window from this date to the end date is at most 366 days; with new_since_last_run on it starts at most 30 days back.",
            "default": ""
          },
          "end_date": {
            "title": "Events before (YYYY-MM-DD)",
            "type": "string",
            "description": "Date as YYYY-MM-DD (events before that day's 00:00 UTC), or a UTC time as YYYY-MM-DDTHH:MM. Leave empty for now.",
            "default": ""
          },
          "min_magnitude": {
            "title": "Minimum magnitude",
            "minimum": -2,
            "maximum": 10,
            "type": "number",
            "description": "Only events of this magnitude or more, for example 2.5 or 4.5. Leave empty for every magnitude."
          },
          "max_magnitude": {
            "title": "Maximum magnitude",
            "minimum": -2,
            "maximum": 10,
            "type": "number",
            "description": "Only events of this magnitude or less. Leave empty for no upper limit."
          },
          "latitude": {
            "title": "Circle: centre latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Latitude of the circle's centre, from -90 to 90. A circle needs latitude, longitude and radius_km together; it cannot be used with the box."
          },
          "longitude": {
            "title": "Circle: centre longitude",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Longitude of the circle's centre, from -180 to 180."
          },
          "radius_km": {
            "title": "Circle: radius (km)",
            "minimum": 1,
            "maximum": 20000,
            "type": "number",
            "description": "Radius around the centre in kilometres, from 1 to 20,000."
          },
          "min_latitude": {
            "title": "Box: south edge (latitude)",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Only events north of this latitude, from -90 to 90. Box edges can be given alone or together; they cannot be used with the circle."
          },
          "max_latitude": {
            "title": "Box: north edge (latitude)",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Only events south of this latitude, from -90 to 90."
          },
          "min_longitude": {
            "title": "Box: west edge (longitude)",
            "minimum": -360,
            "maximum": 360,
            "type": "number",
            "description": "Only events east of this longitude, from -360 to 360. To cross the date line, give a west edge below -180 or an east edge above 180."
          },
          "max_longitude": {
            "title": "Box: east edge (longitude)",
            "minimum": -360,
            "maximum": 360,
            "type": "number",
            "description": "Only events west of this longitude, from -360 to 360."
          },
          "event_type": {
            "title": "Event type",
            "enum": [
              "earthquake",
              "quarry_blast",
              "explosion",
              "all"
            ],
            "type": "string",
            "description": "earthquake, quarry_blast, explosion or all (every type the catalog has, also ice quakes, landslides and others).",
            "default": "earthquake"
          },
          "reviewed_only": {
            "title": "Reviewed events only",
            "type": "boolean",
            "description": "Only events a seismic network's analyst has reviewed. Off returns automatic solutions too, which come within minutes and can change.",
            "default": false
          },
          "new_since_last_run": {
            "title": "Only new events",
            "type": "boolean",
            "description": "Deliver and charge only events this Actor has not delivered to you before for the same filters. An event delivered once is not delivered again when the catalog updates it later (a new magnitude, a review). The run reads newest first, so an event held back by Maximum results or your spending limit comes in a later run only while it is still in the date window. Delivered events are remembered in a key-value store named usgs-earthquakes-scraper-state in your account.",
            "default": false
          },
          "max_items": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "How many earthquake events to return at most, from 1 to 20,000. The default is 10: raise it to get more; a run stops at this number. You pay per earthquake event delivered.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}