Worldwide Earthquakes API Reference

API Overview

Earthquake is a simple tool for getting earthquake data. It returns the earthquake data for the past hour. To use this API, you need an API key. You can get one by creating a free account and visiting your dashboard.

Important: Ensure that this API is enabled from within your dashboard to use it in your application. If not, you may receive a 403 error

View API in Directory

Client Libaries

To get started with minimal code, most of our APIs are available through client libraries:

run in postman button npm logo pypi logo nuget logo

Get Earthquake Data

1 Token

	
#GET Request
https://api.apiverve.com/v1/earthquake	

	
					

x-api-key (required)

This is a required header on every request. Your API Key is found from within your dashboard

accept

This is an optional header. Set the value to application/json, application/xml, or application/yaml



Sample Request
	
import requests

url = "https://api.apiverve.com/v1/earthquake"

querystring = {}

headers = {
	"x-api-key": "YOUR_API_KEY"
}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
	
							
	
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
	Method = HttpMethod.Get,
	RequestUri = new Uri("https://api.apiverve.com/v1/earthquake"),
	Headers =
	{
		{ "x-api-key", "YOUR_API_KEY" }
	},
};
using (var response = await client.SendAsync(request))
{
	response.EnsureSuccessStatusCode();
	var body = await response.Content.ReadAsStringAsync();
	Console.WriteLine(body);
}
	
							
	
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
	if (this.readyState === this.DONE) {
		console.log(this.responseText);
	}
});

xhr.open('GET', 'https://api.apiverve.com/v1/earthquake');
xhr.setRequestHeader('x-api-key', 'YOUR_API_KEY');
xhr.setRequestHeader('Content-Type', 'application/json');
xhr.setRequestHeader('Accept', 'application/json');

xhr.send(data);
	
							
	
const request = require('request');

const options = {
  method: 'GET',
  url: 'https://api.apiverve.com/v1/earthquake',
  headers: {
    'x-api-key': 'YOUR_API_KEY'
  }
};

request(options, function (error, response, body) {
	if (error) throw new Error(error);

	console.log(body);
});
	
							
	
HttpRequest request = HttpRequest.newBuilder()
		.uri(URI.create("https://api.apiverve.com/v1/earthquake"))
		.header("x-api-key", "YOUR_API_KEY")
		.method("GET", HttpRequest.BodyPublishers.noBody())
		.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
	
							
	
import Foundation

let headers = [
	"x-api-key": "YOUR_API_KEY"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.apiverve.com/v1/earthquake")! as URL,
				cachePolicy: .useProtocolCachePolicy,
                timeoutInterval: 10.0)

request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
	if (error != nil) {
		print(error as Any)
	} else {
		let httpResponse = response as? HTTPURLResponse
		print(httpResponse)
	}
})

dataTask.resume()
	
							
	
curl --request GET \
	--url 'https://api.apiverve.com/v1/earthquake' \
	--header 'x-api-key: YOUR_API_KEY'
	
							

Sample Response
	
{
  "status": "ok",
  "error": null,
  "data": {
    "earthquakes_LastUpdated": 1740085202,
    "earthquakes_LastHour": 13,
    "earthquakes": [
      {
        "mag": 1.63,
        "place": "4 km SSW of Home Gardens, CA",
        "time": 1740084740320,
        "status": "automatic",
        "tsunami": 0,
        "sig": 41,
        "net": "ci",
        "types": ",nearby-cities,origin,phase-data,scitech-link,",
        "nst": 30,
        "dmin": 0.07665,
        "rms": 0.16,
        "gap": 212,
        "magType": "ml",
        "type": "earthquake",
        "title": "M 1.6 - 4 km SSW of Home Gardens, CA",
        "coordinates": [
          -117.5313333,
          33.8441667
        ]
      },
      {
        "mag": 1.53,
        "place": "3 km  of The Geysers, CA",
        "time": 1740084398050,
        "status": "automatic",
        "tsunami": 0,
        "sig": 36,
        "net": "nc",
        "types": ",focal-mechanism,nearby-cities,origin,phase-data,",
        "nst": 31,
        "dmin": 0.01013,
        "rms": 0.04,
        "gap": 61,
        "magType": "md",
        "type": "earthquake",
        "title": "M 1.5 - 3 km  of The Geysers, CA",
        "coordinates": [
          -122.770835876465,
          38.8066673278809
        ]
      },
      {
        "mag": 1.5,
        "place": "36 km SSW of Los Ybanez, Texas",
        "time": 1740083760065,
        "status": "automatic",
        "tsunami": 0,
        "sig": 35,
        "net": "tx",
        "types": ",origin,phase-data,",
        "nst": 21,
        "dmin": 0,
        "rms": 0.5,
        "gap": 98,
        "magType": "ml",
        "type": "earthquake",
        "title": "M 1.5 - 36 km SSW of Los Ybanez, Texas",
        "coordinates": [
          -102.118,
          32.437
        ]
      },
      {
        "mag": 1.28,
        "place": "2 km NNE of Rancho San Diego, CA",
        "time": 1740083416660,
        "status": "automatic",
        "tsunami": 0,
        "sig": 25,
        "net": "ci",
        "types": ",nearby-cities,origin,phase-data,scitech-link,",
        "nst": 18,
        "dmin": 0.02613,
        "rms": 0.18,
        "gap": 117,
        "magType": "ml",
        "type": "earthquake",
        "title": "M 1.3 - 2 km NNE of Rancho San Diego, CA",
        "coordinates": [
          -116.9288333,
          32.7591667
        ]
      },
      {
        "mag": 1.3,
        "place": "2 km N of The Geysers, CA",
        "time": 1740083145550,
        "status": "automatic",
        "tsunami": 0,
        "sig": 26,
        "net": "nc",
        "types": ",nearby-cities,origin,phase-data,",
        "nst": 17,
        "dmin": 0.008002,
        "rms": 0.02,
        "gap": 75,
        "magType": "md",
        "type": "earthquake",
        "title": "M 1.3 - 2 km N of The Geysers, CA",
        "coordinates": [
          -122.758499145508,
          38.792667388916
        ]
      },
      {
        "mag": 2.03,
        "place": "23 km NE of San Ardo, CA",
        "time": 1740083087170,
        "status": "automatic",
        "tsunami": 0,
        "sig": 63,
        "net": "nc",
        "types": ",nearby-cities,origin,phase-data,",
        "nst": 24,
        "dmin": 0.04482,
        "rms": 0.08,
        "gap": 78,
        "magType": "md",
        "type": "earthquake",
        "title": "M 2.0 - 23 km NE of San Ardo, CA",
        "coordinates": [
          -120.757835388184,
          36.1879997253418
        ]
      },
      {
        "mag": 1.5,
        "place": "18 km N of Nellis Air Force Base, Nevada",
        "time": 1740082632669,
        "status": "automatic",
        "tsunami": 0,
        "sig": 35,
        "net": "nn",
        "types": ",origin,phase-data,",
        "nst": 12,
        "dmin": 0.142,
        "rms": 0.352,
        "gap": 324.6699999999999,
        "magType": "ml",
        "type": "earthquake",
        "title": "M 1.5 - 18 km N of Nellis Air Force Base, Nevada",
        "coordinates": [
          -115.0204,
          36.4137
        ]
      },
      {
        "mag": 2.4,
        "place": "42 km ENE of Susitna North, Alaska",
        "time": 1740082487421,
        "status": "automatic",
        "tsunami": 0,
        "sig": 89,
        "net": "ak",
        "types": ",origin,phase-data,",
        "rms": 0.58,
        "magType": "ml",
        "type": "earthquake",
        "title": "M 2.4 - 42 km ENE of Susitna North, Alaska",
        "coordinates": [
          -149.1448,
          62.358
        ]
      },
      {
        "mag": 0.58,
        "place": "0 km  of The Geysers, CA",
        "time": 1740082396860,
        "status": "automatic",
        "tsunami": 0,
        "sig": 5,
        "net": "nc",
        "types": ",nearby-cities,origin,phase-data,",
        "nst": 8,
        "dmin": 0.01016,
        "rms": 0.04,
        "gap": 122,
        "magType": "md",
        "type": "earthquake",
        "title": "M 0.6 - 0 km  of The Geysers, CA",
        "coordinates": [
          -122.75666809082,
          38.7779998779297
        ]
      },
      {
        "mag": 0.77,
        "place": "4 km NNW of The Geysers, CA",
        "time": 1740082221410,
        "status": "automatic",
        "tsunami": 0,
        "sig": 9,
        "net": "nc",
        "types": ",nearby-cities,origin,phase-data,",
        "nst": 7,
        "dmin": 0.006593,
        "rms": 0.01,
        "gap": 141,
        "magType": "md",
        "type": "earthquake",
        "title": "M 0.8 - 4 km NNW of The Geysers, CA",
        "coordinates": [
          -122.78116607666,
          38.8066673278809
        ]
      },
      {
        "mag": 0.76,
        "place": "9 km NW of The Geysers, CA",
        "time": 1740082075350,
        "status": "automatic",
        "tsunami": 0,
        "sig": 9,
        "net": "nc",
        "types": ",nearby-cities,origin,phase-data,",
        "nst": 12,
        "dmin": 0.005851,
        "rms": 0.02,
        "gap": 80,
        "magType": "md",
        "type": "earthquake",
        "title": "M 0.8 - 9 km NW of The Geysers, CA",
        "coordinates": [
          -122.842498779297,
          38.8226661682129
        ]
      },
      {
        "mag": 1.8,
        "place": "47 km ENE of Susitna North, Alaska",
        "time": 1740081957855,
        "status": "automatic",
        "tsunami": 0,
        "sig": 50,
        "net": "ak",
        "types": ",origin,phase-data,",
        "rms": 0.79,
        "magType": "ml",
        "type": "earthquake",
        "title": "M 1.8 - 47 km ENE of Susitna North, Alaska",
        "coordinates": [
          -149.0437,
          62.3668
        ]
      },
      {
        "mag": 3.14,
        "place": "73 km N of Brenas, Puerto Rico",
        "time": 1740081663500,
        "status": "reviewed",
        "tsunami": 0,
        "sig": 152,
        "net": "pr",
        "types": ",origin,phase-data,",
        "nst": 10,
        "dmin": 0.8083,
        "rms": 0.23,
        "gap": 271,
        "magType": "md",
        "type": "earthquake",
        "title": "M 3.1 - 73 km N of Brenas, Puerto Rico",
        "coordinates": [
          -66.3835,
          19.1311666666667
        ]
      }
    ]
  },
  "code": 200
}
	
							
	
<Root>
  <status>ok</status>
  <error />
  <data>
    <earthquakes_LastUpdated>1740085202</earthquakes_LastUpdated>
    <earthquakes_LastHour>13</earthquakes_LastHour>
    <earthquakes>
      <mag>1.63</mag>
      <place>4 km SSW of Home Gardens, CA</place>
      <time>1740084740320</time>
      <status>automatic</status>
      <tsunami>0</tsunami>
      <sig>41</sig>
      <net>ci</net>
      <types>,nearby-cities,origin,phase-data,scitech-link,</types>
      <nst>30</nst>
      <dmin>0.07665</dmin>
      <rms>0.16</rms>
      <gap>212</gap>
      <magType>ml</magType>
      <type>earthquake</type>
      <title>M 1.6 - 4 km SSW of Home Gardens, CA</title>
      <coordinates>-117.5313333</coordinates>
      <coordinates>33.8441667</coordinates>
    </earthquakes>
    <earthquakes>
      <mag>1.53</mag>
      <place>3 km  of The Geysers, CA</place>
      <time>1740084398050</time>
      <status>automatic</status>
      <tsunami>0</tsunami>
      <sig>36</sig>
      <net>nc</net>
      <types>,focal-mechanism,nearby-cities,origin,phase-data,</types>
      <nst>31</nst>
      <dmin>0.01013</dmin>
      <rms>0.04</rms>
      <gap>61</gap>
      <magType>md</magType>
      <type>earthquake</type>
      <title>M 1.5 - 3 km  of The Geysers, CA</title>
      <coordinates>-122.770835876465</coordinates>
      <coordinates>38.8066673278809</coordinates>
    </earthquakes>
    <earthquakes>
      <mag>1.5</mag>
      <place>36 km SSW of Los Ybanez, Texas</place>
      <time>1740083760065</time>
      <status>automatic</status>
      <tsunami>0</tsunami>
      <sig>35</sig>
      <net>tx</net>
      <types>,origin,phase-data,</types>
      <nst>21</nst>
      <dmin>0</dmin>
      <rms>0.5</rms>
      <gap>98</gap>
      <magType>ml</magType>
      <type>earthquake</type>
      <title>M 1.5 - 36 km SSW of Los Ybanez, Texas</title>
      <coordinates>-102.118</coordinates>
      <coordinates>32.437</coordinates>
    </earthquakes>
    <earthquakes>
      <mag>1.28</mag>
      <place>2 km NNE of Rancho San Diego, CA</place>
      <time>1740083416660</time>
      <status>automatic</status>
      <tsunami>0</tsunami>
      <sig>25</sig>
      <net>ci</net>
      <types>,nearby-cities,origin,phase-data,scitech-link,</types>
      <nst>18</nst>
      <dmin>0.02613</dmin>
      <rms>0.18</rms>
      <gap>117</gap>
      <magType>ml</magType>
      <type>earthquake</type>
      <title>M 1.3 - 2 km NNE of Rancho San Diego, CA</title>
      <coordinates>-116.9288333</coordinates>
      <coordinates>32.7591667</coordinates>
    </earthquakes>
    <earthquakes>
      <mag>1.3</mag>
      <place>2 km N of The Geysers, CA</place>
      <time>1740083145550</time>
      <status>automatic</status>
      <tsunami>0</tsunami>
      <sig>26</sig>
      <net>nc</net>
      <types>,nearby-cities,origin,phase-data,</types>
      <nst>17</nst>
      <dmin>0.008002</dmin>
      <rms>0.02</rms>
      <gap>75</gap>
      <magType>md</magType>
      <type>earthquake</type>
      <title>M 1.3 - 2 km N of The Geysers, CA</title>
      <coordinates>-122.758499145508</coordinates>
      <coordinates>38.792667388916</coordinates>
    </earthquakes>
    <earthquakes>
      <mag>2.03</mag>
      <place>23 km NE of San Ardo, CA</place>
      <time>1740083087170</time>
      <status>automatic</status>
      <tsunami>0</tsunami>
      <sig>63</sig>
      <net>nc</net>
      <types>,nearby-cities,origin,phase-data,</types>
      <nst>24</nst>
      <dmin>0.04482</dmin>
      <rms>0.08</rms>
      <gap>78</gap>
      <magType>md</magType>
      <type>earthquake</type>
      <title>M 2.0 - 23 km NE of San Ardo, CA</title>
      <coordinates>-120.757835388184</coordinates>
      <coordinates>36.1879997253418</coordinates>
    </earthquakes>
    <earthquakes>
      <mag>1.5</mag>
      <place>18 km N of Nellis Air Force Base, Nevada</place>
      <time>1740082632669</time>
      <status>automatic</status>
      <tsunami>0</tsunami>
      <sig>35</sig>
      <net>nn</net>
      <types>,origin,phase-data,</types>
      <nst>12</nst>
      <dmin>0.142</dmin>
      <rms>0.352</rms>
      <gap>324.6699999999999</gap>
      <magType>ml</magType>
      <type>earthquake</type>
      <title>M 1.5 - 18 km N of Nellis Air Force Base, Nevada</title>
      <coordinates>-115.0204</coordinates>
      <coordinates>36.4137</coordinates>
    </earthquakes>
    <earthquakes>
      <mag>2.4</mag>
      <place>42 km ENE of Susitna North, Alaska</place>
      <time>1740082487421</time>
      <status>automatic</status>
      <tsunami>0</tsunami>
      <sig>89</sig>
      <net>ak</net>
      <types>,origin,phase-data,</types>
      <rms>0.58</rms>
      <magType>ml</magType>
      <type>earthquake</type>
      <title>M 2.4 - 42 km ENE of Susitna North, Alaska</title>
      <coordinates>-149.1448</coordinates>
      <coordinates>62.358</coordinates>
    </earthquakes>
    <earthquakes>
      <mag>0.58</mag>
      <place>0 km  of The Geysers, CA</place>
      <time>1740082396860</time>
      <status>automatic</status>
      <tsunami>0</tsunami>
      <sig>5</sig>
      <net>nc</net>
      <types>,nearby-cities,origin,phase-data,</types>
      <nst>8</nst>
      <dmin>0.01016</dmin>
      <rms>0.04</rms>
      <gap>122</gap>
      <magType>md</magType>
      <type>earthquake</type>
      <title>M 0.6 - 0 km  of The Geysers, CA</title>
      <coordinates>-122.75666809082</coordinates>
      <coordinates>38.7779998779297</coordinates>
    </earthquakes>
    <earthquakes>
      <mag>0.77</mag>
      <place>4 km NNW of The Geysers, CA</place>
      <time>1740082221410</time>
      <status>automatic</status>
      <tsunami>0</tsunami>
      <sig>9</sig>
      <net>nc</net>
      <types>,nearby-cities,origin,phase-data,</types>
      <nst>7</nst>
      <dmin>0.006593</dmin>
      <rms>0.01</rms>
      <gap>141</gap>
      <magType>md</magType>
      <type>earthquake</type>
      <title>M 0.8 - 4 km NNW of The Geysers, CA</title>
      <coordinates>-122.78116607666</coordinates>
      <coordinates>38.8066673278809</coordinates>
    </earthquakes>
    <earthquakes>
      <mag>0.76</mag>
      <place>9 km NW of The Geysers, CA</place>
      <time>1740082075350</time>
      <status>automatic</status>
      <tsunami>0</tsunami>
      <sig>9</sig>
      <net>nc</net>
      <types>,nearby-cities,origin,phase-data,</types>
      <nst>12</nst>
      <dmin>0.005851</dmin>
      <rms>0.02</rms>
      <gap>80</gap>
      <magType>md</magType>
      <type>earthquake</type>
      <title>M 0.8 - 9 km NW of The Geysers, CA</title>
      <coordinates>-122.842498779297</coordinates>
      <coordinates>38.8226661682129</coordinates>
    </earthquakes>
    <earthquakes>
      <mag>1.8</mag>
      <place>47 km ENE of Susitna North, Alaska</place>
      <time>1740081957855</time>
      <status>automatic</status>
      <tsunami>0</tsunami>
      <sig>50</sig>
      <net>ak</net>
      <types>,origin,phase-data,</types>
      <rms>0.79</rms>
      <magType>ml</magType>
      <type>earthquake</type>
      <title>M 1.8 - 47 km ENE of Susitna North, Alaska</title>
      <coordinates>-149.0437</coordinates>
      <coordinates>62.3668</coordinates>
    </earthquakes>
    <earthquakes>
      <mag>3.14</mag>
      <place>73 km N of Brenas, Puerto Rico</place>
      <time>1740081663500</time>
      <status>reviewed</status>
      <tsunami>0</tsunami>
      <sig>152</sig>
      <net>pr</net>
      <types>,origin,phase-data,</types>
      <nst>10</nst>
      <dmin>0.8083</dmin>
      <rms>0.23</rms>
      <gap>271</gap>
      <magType>md</magType>
      <type>earthquake</type>
      <title>M 3.1 - 73 km N of Brenas, Puerto Rico</title>
      <coordinates>-66.3835</coordinates>
      <coordinates>19.1311666666667</coordinates>
    </earthquakes>
  </data>
  <code>200</code>
</Root>
	
							
	
status: ok
error: 
data:
  earthquakes_LastUpdated: 1740085202
  earthquakes_LastHour: 13
  earthquakes:
  - mag: 1.63
    place: 4 km SSW of Home Gardens, CA
    time: 1740084740320
    status: automatic
    tsunami: 0
    sig: 41
    net: ci
    types: ',nearby-cities,origin,phase-data,scitech-link,'
    nst: 30
    dmin: 0.07665
    rms: 0.16
    gap: 212
    magType: ml
    type: earthquake
    title: M 1.6 - 4 km SSW of Home Gardens, CA
    coordinates:
    - -117.5313333
    - 33.8441667
  - mag: 1.53
    place: 3 km  of The Geysers, CA
    time: 1740084398050
    status: automatic
    tsunami: 0
    sig: 36
    net: nc
    types: ',focal-mechanism,nearby-cities,origin,phase-data,'
    nst: 31
    dmin: 0.01013
    rms: 0.04
    gap: 61
    magType: md
    type: earthquake
    title: M 1.5 - 3 km  of The Geysers, CA
    coordinates:
    - -122.770835876465
    - 38.8066673278809
  - mag: 1.5
    place: 36 km SSW of Los Ybanez, Texas
    time: 1740083760065
    status: automatic
    tsunami: 0
    sig: 35
    net: tx
    types: ',origin,phase-data,'
    nst: 21
    dmin: 0
    rms: 0.5
    gap: 98
    magType: ml
    type: earthquake
    title: M 1.5 - 36 km SSW of Los Ybanez, Texas
    coordinates:
    - -102.118
    - 32.437
  - mag: 1.28
    place: 2 km NNE of Rancho San Diego, CA
    time: 1740083416660
    status: automatic
    tsunami: 0
    sig: 25
    net: ci
    types: ',nearby-cities,origin,phase-data,scitech-link,'
    nst: 18
    dmin: 0.02613
    rms: 0.18
    gap: 117
    magType: ml
    type: earthquake
    title: M 1.3 - 2 km NNE of Rancho San Diego, CA
    coordinates:
    - -116.9288333
    - 32.7591667
  - mag: 1.3
    place: 2 km N of The Geysers, CA
    time: 1740083145550
    status: automatic
    tsunami: 0
    sig: 26
    net: nc
    types: ',nearby-cities,origin,phase-data,'
    nst: 17
    dmin: 0.008002
    rms: 0.02
    gap: 75
    magType: md
    type: earthquake
    title: M 1.3 - 2 km N of The Geysers, CA
    coordinates:
    - -122.758499145508
    - 38.792667388916
  - mag: 2.03
    place: 23 km NE of San Ardo, CA
    time: 1740083087170
    status: automatic
    tsunami: 0
    sig: 63
    net: nc
    types: ',nearby-cities,origin,phase-data,'
    nst: 24
    dmin: 0.04482
    rms: 0.08
    gap: 78
    magType: md
    type: earthquake
    title: M 2.0 - 23 km NE of San Ardo, CA
    coordinates:
    - -120.757835388184
    - 36.1879997253418
  - mag: 1.5
    place: 18 km N of Nellis Air Force Base, Nevada
    time: 1740082632669
    status: automatic
    tsunami: 0
    sig: 35
    net: nn
    types: ',origin,phase-data,'
    nst: 12
    dmin: 0.142
    rms: 0.352
    gap: 324.67
    magType: ml
    type: earthquake
    title: M 1.5 - 18 km N of Nellis Air Force Base, Nevada
    coordinates:
    - -115.0204
    - 36.4137
  - mag: 2.4
    place: 42 km ENE of Susitna North, Alaska
    time: 1740082487421
    status: automatic
    tsunami: 0
    sig: 89
    net: ak
    types: ',origin,phase-data,'
    rms: 0.58
    magType: ml
    type: earthquake
    title: M 2.4 - 42 km ENE of Susitna North, Alaska
    coordinates:
    - -149.1448
    - 62.358
  - mag: 0.58
    place: 0 km  of The Geysers, CA
    time: 1740082396860
    status: automatic
    tsunami: 0
    sig: 5
    net: nc
    types: ',nearby-cities,origin,phase-data,'
    nst: 8
    dmin: 0.01016
    rms: 0.04
    gap: 122
    magType: md
    type: earthquake
    title: M 0.6 - 0 km  of The Geysers, CA
    coordinates:
    - -122.75666809082
    - 38.7779998779297
  - mag: 0.77
    place: 4 km NNW of The Geysers, CA
    time: 1740082221410
    status: automatic
    tsunami: 0
    sig: 9
    net: nc
    types: ',nearby-cities,origin,phase-data,'
    nst: 7
    dmin: 0.006593
    rms: 0.01
    gap: 141
    magType: md
    type: earthquake
    title: M 0.8 - 4 km NNW of The Geysers, CA
    coordinates:
    - -122.78116607666
    - 38.8066673278809
  - mag: 0.76
    place: 9 km NW of The Geysers, CA
    time: 1740082075350
    status: automatic
    tsunami: 0
    sig: 9
    net: nc
    types: ',nearby-cities,origin,phase-data,'
    nst: 12
    dmin: 0.005851
    rms: 0.02
    gap: 80
    magType: md
    type: earthquake
    title: M 0.8 - 9 km NW of The Geysers, CA
    coordinates:
    - -122.842498779297
    - 38.8226661682129
  - mag: 1.8
    place: 47 km ENE of Susitna North, Alaska
    time: 1740081957855
    status: automatic
    tsunami: 0
    sig: 50
    net: ak
    types: ',origin,phase-data,'
    rms: 0.79
    magType: ml
    type: earthquake
    title: M 1.8 - 47 km ENE of Susitna North, Alaska
    coordinates:
    - -149.0437
    - 62.3668
  - mag: 3.14
    place: 73 km N of Brenas, Puerto Rico
    time: 1740081663500
    status: reviewed
    tsunami: 0
    sig: 152
    net: pr
    types: ',origin,phase-data,'
    nst: 10
    dmin: 0.8083
    rms: 0.23
    gap: 271
    magType: md
    type: earthquake
    title: M 3.1 - 73 km N of Brenas, Puerto Rico
    coordinates:
    - -66.3835
    - 19.1311666666667
code: 200

	
							
Live Test API in Playground

Response Types

The Worldwide Earthquakes API supports the following response content types:

application/json, application/xml, application/yaml

You can specify the response content type by setting the Accept header in your request. If you don't specify a content type, the API will default to application/json.

Authentication

The Worldwide Earthquakes API uses an API Key to authenticate requests. You can view and manage your API key by visiting your dashboard.

Your API keys carry many privileges. To keep them from being abused, please do not share the keys on client-side code or Github etc. Keep them very secure.

To use any API, you must have it enabled from within your dashboard. Disabled APIs will fail to respond to your requests.

All requests made to the API must contain the header x-api-key in each of your requests. API requests without authentication will fail.

All API requests must also be made over secure HTTPS. Requests made over plain HTTP will fail.

Error Code Meaning
401 Your request was made with invalid credentials. This error also appears when you don't pass the x-api-key header in your request.
403 Typically, this occurs when you are trying to access an API that you have not enabled.

Rate Limits

	
{
    "status": "error",
    "data": null,
    "error": "tokens have been depleted",
    "code": 429
}
	
							

Each subscription has its own monthly token limit. Your token count is based on your subscription plan. If you reach your limits, don't worry. You can always upgrade or downgrade at any time.

When you reach your limit, the service will stop responding and typically return an HTTP 429 response status code. The error will also contain a detailed JSON.

The Worldwide Earthquakes API uses the following error code:

Error Code Meaning
429 You have exceeded your rate limit and further requests will be denied until the next cycle.

Error Codes

For reference, the Worldwide Earthquakes API uses the following error codes:

Error Code Meaning
Code Message
200 The request was successful. The response will include the requested data.
400 The request was invalid. The response will include a message that explains the error.
401 The request was not authorized. Usually, this means that the API key is missing or invalid.
403 This means that the request was trying to access a resource that it does not have permission to access.
404 This means that the resource you are trying to access does not exist.
429 This means that you have reached the rate limit. The response will include a Retry-After header that indicates how many seconds you need to wait before making a new request.
500 This means that there was an error on the server side. We are alerted when this happens and we will work to fix it as soon as possible.
ON THIS PAGE