Home Multi-Country Search About Admin Login


About

The Global Lexicon is an extensive database to facilitate the exploration and understanding of geological formations around the world. The associated websites allow users to access detailed geological information and visual representations of various formations using models of the ancient Earth.


Download

Download the contents of our database:

Download Excel File

API Documentation

API calls only query data in a specific region. Format: <server-url>/<API>?<params>

Server URL: Replace <server-url> with the region-specific URL.
API: Replace <API> with the desired API endpoint. The two endpoints are searchAPI.php and provinceAPI.php
Parameters: Replace <params> with required or optional parameters.

These regions have APIs that can be accessed:
China ⇒ "https://chinalex.geolex.org"
Indian Plate ⇒ "https://indplex.geolex.org"
Thailand ⇒ "https://thailex.geolex.org"
Vietnam ⇒ "https://vietlex.geolex.org"
Niger ⇒ "https://nigerlex.geolex.org"
Malaysia ⇒ "https://malaylex.geolex.org"
Africa ⇒ "https://africalex.geolex.org"
Belgium ⇒ "https://belgiumlex.geolex.org"
Middle East ⇒ "https://mideastlex.geolex.org"
Panama ⇒ "https://panamalex.geolex.org"
Qatar ⇒ "https://qatarlex.geolex.org"
South America ⇒ "https://southamerlex.geolex.org"
Dev ⇒ "https://dev.geolex.org"

These are the parameters that SearchAPI accept:
searchquery: String. Full or partial names of formations, including contents in the Synonym section. Optional.
periodfilter: String. Name of the period limiting the search. Optional.
provincefilter: String. Name of the province limiting the search. Optional.
agefilterstart: Number (Ma). Bottom age of the search. Optional.
agefilterend: Number (Ma). Top age of the search, not greater than agefilterstart. Optional.
lithofilter: String. Names of lithology patterns. Optional.
response: String. 'long' returns all fields. Optional.

This API will return a JSON Object with these fields (each is a formation):
name: String. Name of the formation.
endAge: Number. Top age of the formation.
begAge: Number. Bottom age of the formation.
province: String. Provinces of the formation.
geojson: GeoJSON. Coordinates of the formation.
period: String. Bottom period of the formation.
stage: String. Bottom stage of the formation.
lithology_pattern: String. Lithology pattern of the formation.
isSynonym:Boolean. If this formation is the result of a search in the Synonym section (see searchquery parameter).

Fields below are only returned when the response=long argument is passed in. “Optional” means that the field may be empty.
age_interval: String. A description of age span of the formation. Optional.
lithology: String. Full description of the lithology of the formation. Optional.
lower_contact: String. Optional.
upper_contact: String. Optional.
regional_extent: String. Optional.
fossils: String. Optional.
age: String. Optional.
depositional: String. Optional.
additional_info: String. Optional.
compiler: String. Optional.
age_span: String. Optional.
beginning_stage: String. This is the same as the `stage` field.
frac_upB: Number. The fraction of age span in the bottom stage.
beg_date: Number. This is the same as the `begAge` field.
end_stage: Number. Top stage of the formation.
frac_upE: Number. The fraction of age span in the top stage.
end_date: Number. This is the same as the `endAge` field.
depositional_pattern: String. Optional.

No parameters needed or accepted.

This API will return a JSON Object that is an array of province names, which are Strings, sorted by alphabetical order.