{
  "openapi": "3.0.1",
  "info": {
    "title": "USGS Earthquake Scraper",
    "description": "[💰 $0.9 / 1K] Search the official USGS global earthquake catalog and export clean records — magnitude, location, depth, time, alert level, tsunami and felt reports. Filter by magnitude, date range, region, and depth.",
    "version": "1.0",
    "x-build-id": "Fyq0BNdk0NszK9Fia"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/solidcode~earthquake-usgs-gov-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-solidcode-earthquake-usgs-gov-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/solidcode~earthquake-usgs-gov-scraper/runs": {
      "post": {
        "operationId": "runs-sync-solidcode-earthquake-usgs-gov-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/solidcode~earthquake-usgs-gov-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-solidcode-earthquake-usgs-gov-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": {
          "startTime": {
            "title": "Start date",
            "type": "string",
            "description": "Only include earthquakes that happened on or after this date. Use the format YYYY-MM-DD (for example 2024-01-01) or a full date-and-time like 2024-01-01T00:00:00. Leave empty to use the USGS default, which is the last 30 days."
          },
          "endTime": {
            "title": "End date",
            "type": "string",
            "description": "Only include earthquakes that happened on or before this date. Use the format YYYY-MM-DD (for example 2024-12-31) or a full date-and-time. Leave empty to include everything up to now."
          },
          "minMagnitude": {
            "title": "Minimum magnitude",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "Only include earthquakes at or above this magnitude. For example, 4.5 returns moderate-and-larger quakes and skips the many tiny ones. Leave empty for no minimum."
          },
          "maxMagnitude": {
            "title": "Maximum magnitude",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "Only include earthquakes at or below this magnitude. Leave empty for no maximum."
          },
          "latitude": {
            "title": "Center latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Latitude of the point to search around, between -90 and 90 (for example 37.77 for San Francisco). Use together with the longitude and radius below to find earthquakes near a specific place."
          },
          "longitude": {
            "title": "Center longitude",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Longitude of the point to search around, between -180 and 180 (for example -122.42 for San Francisco)."
          },
          "maxRadiusKm": {
            "title": "Radius (km)",
            "minimum": 0,
            "maximum": 20001,
            "type": "number",
            "description": "How far from the center point to search, in kilometers (for example 200). Only earthquakes inside this circle are returned."
          },
          "minLatitude": {
            "title": "South edge (min latitude)",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Southern edge of a rectangular search area, between -90 and 90. Use the four box fields together to search a region such as a country or state. Leave empty if you are searching by circle or worldwide."
          },
          "maxLatitude": {
            "title": "North edge (max latitude)",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Northern edge of the rectangular search area, between -90 and 90."
          },
          "minLongitude": {
            "title": "West edge (min longitude)",
            "minimum": -360,
            "maximum": 360,
            "type": "number",
            "description": "Western edge of the rectangular search area, between -180 and 180."
          },
          "maxLongitude": {
            "title": "East edge (max longitude)",
            "minimum": -360,
            "maximum": 360,
            "type": "number",
            "description": "Eastern edge of the rectangular search area, between -180 and 180."
          },
          "minDepth": {
            "title": "Minimum depth (km)",
            "minimum": -100,
            "maximum": 1000,
            "type": "number",
            "description": "Only return earthquakes at least this deep, in kilometers (events deeper than this value). Depth increases downward, so a higher number keeps only the deeper quakes. Leave empty for no minimum."
          },
          "maxDepth": {
            "title": "Maximum depth (km)",
            "minimum": -100,
            "maximum": 1000,
            "type": "number",
            "description": "Only return earthquakes no deeper than this, in kilometers (events shallower than this value). Depth increases downward, so a lower number keeps only the shallower quakes. Leave empty for no maximum."
          },
          "alertLevel": {
            "title": "PAGER alert level",
            "enum": [
              "",
              "green",
              "yellow",
              "orange",
              "red"
            ],
            "type": "string",
            "description": "Only include earthquakes with at least this USGS PAGER impact alert. Green is least severe and red is most severe; each level also includes everything more severe. Leave on 'Any' to include all earthquakes.",
            "default": ""
          },
          "eventType": {
            "title": "Event type",
            "enum": [
              "",
              "earthquake",
              "quarry blast",
              "explosion",
              "ice quake",
              "mining explosion"
            ],
            "type": "string",
            "description": "Only include events of this kind. The catalog also records quarry blasts, explosions, and other non-earthquake events; choose 'Earthquake' to exclude those, or 'Any' to keep everything.",
            "default": "earthquake"
          },
          "minFeltReports": {
            "title": "Minimum 'Did You Feel It?' reports",
            "minimum": 0,
            "type": "integer",
            "description": "Only include earthquakes that people actually reported feeling, at or above this number of community reports. For example, 10 returns events that at least 10 people felt. Leave empty for no minimum."
          },
          "orderBy": {
            "title": "Sort results by",
            "enum": [
              "time",
              "time-asc",
              "magnitude",
              "magnitude-asc"
            ],
            "type": "string",
            "description": "How to order the earthquakes that are returned.",
            "default": "time"
          },
          "maxResults": {
            "title": "Maximum earthquakes",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "The most earthquakes to return for this run (1 to 20,000). A limit keeps runs fast and predictable. The USGS catalog can hold millions of events, so always narrow your search with the filters above when looking at long time ranges.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}