oneapi
Sign in
Mediu v1 / Mediu

A single earthquake

The code is the origin time, compacted: 19770304T192154.

GET
https://oneapi.ro/api/mediu/v1/seism/{cod}

Path parameters

NameTypeDescriptionExample
codrequired string Event code in the ROMPLUS earthquake catalogue (e.g. 19770304T192154).

Query parameters

This route accepts no query parameters.

How it behaves

  • The code is the origin time, compacted: the 4 March 1977 earthquake is 19770304T192154. The catalogue has no identifiers of its own, and the origin time is unique in practice — at import, one event out of 39,597 shared its second with another.
  • The route accepts only the exact YYYYMMDDTHHMMSS format; anything else does not match the route.

What it is for

  • Drill into an event found in a list, with all magnitudes and solution uncertainties.
  • Put a stable link to a specific earthquake in a report.

Response structure

All fields below live inside data.

FieldTypeDescription
eveniment.cod string Cheia publică a evenimentului: momentul originii compactat, AAAALLZZTHHMMSS.
eveniment.data_ora string Momentul originii, în UTC. La evenimentele istorice ora poate fi o convenție (00:00:00), nu o observație.
eveniment.an integer Anul, util la filtrare și grupare.
eveniment.latitudine number Latitudinea epicentrului (WGS84).
eveniment.longitudine number Longitudinea epicentrului (WGS84).
eveniment.adancime_km number Adâncimea focarului, în kilometri. null când sursa nu a determinat-o.
eveniment.adancime_fixata boolean true dacă adâncimea a fost FIXATĂ de analist, nu determinată din date. Sunt 6.839 de astfel de evenimente — tratează-le altfel într-o analiză.
eveniment.magnitudine number Magnitudinea de lucru: Mw dacă există, altfel ML, altfel MD. null la 339 de evenimente.
eveniment.tip_magnitudine string Scara din care provine magnitudine: Mw, ML sau MD. Nu compara valori între scări diferite fără s-o iei în seamă.
eveniment.magnitudini object Every determined magnitude, by scale, each with its error.
eveniment.magnitudini.Mw number Magnitudinea moment, dacă e determinată.
eveniment.magnitudini.Mw_eroare number Incertitudinea Mw.
eveniment.magnitudini.ML number Magnitudinea locală (Richter), dacă e determinată.
eveniment.magnitudini.ML_eroare number Incertitudinea ML.
eveniment.magnitudini.MD number Magnitudinea de durată, dacă e determinată.
eveniment.magnitudini.MD_eroare number Incertitudinea MD.
eveniment.solutie object Location quality: horizontal error, RMS, error ellipse, number of phases and stations, azimuthal gap and quality class.
eveniment.solutie.eroare_orizontala_km number Eroarea orizontală a localizării.
eveniment.solutie.rms number Reziduul RMS al soluției.
eveniment.solutie.elipsa_smaj_km number Semiaxa mare a elipsei de eroare.
eveniment.solutie.elipsa_smin_km number Semiaxa mică a elipsei de eroare.
eveniment.solutie.elipsa_azimut integer Azimutul elipsei de eroare, în grade.
eveniment.solutie.nr_faze integer Câte faze seismice au intrat în soluție.
eveniment.solutie.nr_statii integer Câte stații au contribuit.
eveniment.solutie.nr_magnitudini integer Câte determinări de magnitudine s-au mediat.
eveniment.solutie.gap_azimutal integer Cel mai mare unghi fără stații, în grade. Peste ~180° localizarea e slab constrânsă.
eveniment.solutie.calitate string Clasa de calitate a soluției, A–D, așa cum o atribuie INFP.
sursa object The ROMPLUS catalogue of the National Institute for Earth Physics, with its licence.
sursa.nume string Catalogul și instituția care îl publică.
sursa.url string Pagina oficială a catalogului.
sursa.licenta string Temeiul reutilizării.

Response examples

GEThttps://oneapi.ro/api/mediu/v1/seism/18021026T105500
{
    "data": {
        "eveniment": {
            "cod": "18021026T105500",
            "data_ora": "1802-10-26 12: 39: 24+01: 44: 24",
            "an": 1802,
            "latitudine": 45.7,
            "longitudine": 26.6,
            "adancime_km": 150,
            "adancime_fixata": false,
            "magnitudine": 7.9,
            "tip_magnitudine": "Mw",
            "magnitudini": {
                "Mw": 7.9
            },
            "solutie": {
                "calitate": "D"
            }
        },
        "sursa": {
            "nume": "Catalogul ROMPLUS — Institutul Naţional de Cercetare-Dezvoltare pentru Fizica Pământului (INCDFP)",
            "url": "https://www.infp.ro/index.php?i=romplus",
            "licenta": "Date de sector public, reutilizabile conform Legii 109/2007, cu indicarea sursei."
        }
    }
}

Error codes

CodeSlugWhen it occurs
401neautentificatToken missing, invalid, expired or revoked.
403feature_indisponibilThe current plan does not include the feature the route depends on.
404negasitNo event with this code exists in the catalogue.
429cota_depasitaThe plan's monthly quota has been exceeded (see Retry-After).

All errors share the same shape. eroare.cod is stable and is the value you should branch on in code — not the text in mesaj, which may change.

{
    "eroare": {
        "cod": "negasit",
        "mesaj": "No event with this code exists in the catalogue."
    }
}