{
  "openapi": "3.0.1",
  "info": {
    "title": "USGS Earthquakes Scraper: Quakes by Place and Date | $1/1K",
    "description": "$1 per 1,000 results, platform usage included. Earthquake events from the official USGS catalog: time, magnitude, place, depth, latitude, longitude, alert level, felt reports and event link. Filter by date, magnitude, depth, a radius around a point, or a map box. No key.",
    "version": "0.1",
    "x-build-id": "fLl0gOxCVDma6IOPg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/one_dollar_store~usgs-earthquakes-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-one_dollar_store-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/one_dollar_store~usgs-earthquakes-scraper/runs": {
      "post": {
        "operationId": "runs-sync-one_dollar_store-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/one_dollar_store~usgs-earthquakes-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-one_dollar_store-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": {
          "daysBack": {
            "title": "Days back",
            "minimum": 1,
            "maximum": 36500,
            "type": "integer",
            "description": "Only events from the last N days, counted back from now (UTC). Ignored when you set a start date.",
            "default": 7
          },
          "startDate": {
            "title": "Start date",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "First day to include, as YYYY-MM-DD (UTC). Leave empty to use Days back."
          },
          "endDate": {
            "title": "End date",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "Last day to include, as YYYY-MM-DD (UTC). Leave empty for now."
          },
          "minMagnitude": {
            "title": "Minimum magnitude",
            "minimum": -1,
            "maximum": 10,
            "type": "number",
            "description": "Only events at or above this magnitude. A higher value gives fewer, larger events; leave it empty for every event the catalog holds."
          },
          "maxMagnitude": {
            "title": "Maximum magnitude",
            "minimum": -1,
            "maximum": 10,
            "type": "number",
            "description": "Only events at or below this magnitude. Leave empty for no upper limit."
          },
          "placeContains": {
            "title": "Place contains",
            "maxLength": 80,
            "type": "string",
            "description": "Keep only events whose place text contains this word, for example Alaska, Japan or Chile. The text is matched without regard to case. For an exact area use the radius or the map box below."
          },
          "latitude": {
            "title": "Center latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Latitude of a point for a radius search, from -90 to 90. Use together with longitude and radius."
          },
          "longitude": {
            "title": "Center longitude",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Longitude of a point for a radius search, from -180 to 180."
          },
          "maxRadiusKm": {
            "title": "Radius (km)",
            "minimum": 1,
            "maximum": 20001,
            "type": "number",
            "description": "Distance from the center point, up to 20,001 km."
          },
          "minLatitude": {
            "title": "Box: south edge",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Southern edge of a map box, from -90 to 90. A map box and a radius cannot be combined; the radius wins."
          },
          "maxLatitude": {
            "title": "Box: north edge",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Northern edge of a map box, from -90 to 90."
          },
          "minLongitude": {
            "title": "Box: west edge",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Western edge of a map box, from -180 to 180."
          },
          "maxLongitude": {
            "title": "Box: east edge",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Eastern edge of a map box, from -180 to 180."
          },
          "minDepthKm": {
            "title": "Minimum depth (km)",
            "minimum": -100,
            "maximum": 1000,
            "type": "number",
            "description": "Only events at least this deep, in kilometres."
          },
          "maxDepthKm": {
            "title": "Maximum depth (km)",
            "minimum": -100,
            "maximum": 1000,
            "type": "number",
            "description": "Only events at most this deep, in kilometres."
          },
          "eventType": {
            "title": "Event type",
            "enum": [
              "earthquake",
              "any",
              "quarry blast",
              "explosion",
              "ice quake"
            ],
            "type": "string",
            "description": "Earthquakes only, or other seismic event types the catalog also holds.",
            "default": "earthquake"
          },
          "reviewStatus": {
            "title": "Review status",
            "enum": [
              "any",
              "reviewed",
              "automatic"
            ],
            "type": "string",
            "description": "Reviewed events have been checked by a seismologist. Automatic ones are the first computer solution.",
            "default": "any"
          },
          "alertLevel": {
            "title": "PAGER alert level",
            "enum": [
              "any",
              "green",
              "yellow",
              "orange",
              "red"
            ],
            "type": "string",
            "description": "Only events with this PAGER alert color (estimated impact). Most events have no alert.",
            "default": "any"
          },
          "orderBy": {
            "title": "Order",
            "enum": [
              "time",
              "time-asc",
              "magnitude",
              "magnitude-asc"
            ],
            "type": "string",
            "description": "Which events come first when the list is longer than Maximum results.",
            "default": "time"
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 10,
            "maximum": 10000,
            "type": "integer",
            "description": "The run stops after this many events. Minimum 10, maximum 10,000.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}