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.
API Documentation
API calls only query data in a specific region. Format: <server-url>/<API>?<params>
<server-url>
with the region-specific URL.API: Replace
<API>
with the desired API endpoint. The two endpoints are searchAPI.php and provinceAPI.phpParameters: Replace
<params>
with required or optional parameters.
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"
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.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.- https://chinalex.geolex.org/searchAPI.php?agefilterstart=70 - This searches for all formations in China that span over 70 Ma regardless of their names, provinces, or lithology patterns.
- https://thailex.geolex.org/searchAPI.php?agefilterstart=70&response=long - This searches for the same set of formations in Thailand like the previous example, but this query will return more detailed information for each formation.
- https://chinalex.geolex.org/searchAPI.php?searchquery=changxing&lithofilter=limestone - This searches for all formations in the China that have "changxing" in their names and "limestone" in their lithology patterns.
- https://dev.geolex.org/provinceAPI.php - This returns an array of province names available in Dev.