{
  "success": {
    "v": 2,
    "license": "CC-BY 4.0",
    "description": "Returns mineral names and formulas",
    "options": {
      "parameters": {
        "all": "return all available minerals",
        "mineral": "string, name of mineral",
        "mineral_type": "string, type of mineral (e.g., feldspar)",
        "element": "string, chemical element abbreviation, case sensitive (e.g., Co)",
        "format": "Desired output format"
      },
      "output_formats": [
        "json",
        "csv"
      ],
      "examples": [
        "api/v2/defs/minerals?all",
        "api/v2/defs/minerals?mineral_id=1",
        "api/v2/defs/minerals?mineral_type=clinopyroxene",
        "api/v2/defs/minerals?element=Co"
      ],
      "fields": {
        "mineral_id": "integer, unqiue identifier for mineral",
        "mineral": "string, name of mineral",
        "mineral_type": "string, name of mineral group",
        "hardness_min": "decimal, minimum value for Moh's hardness scale",
        "hardness_max": "decimal, maximum value for Moh's hardness scale",
        "mineral_color": "text, color description of mineral",
        "lustre": "text, description of mineral lustre",
        "crystal_form": "text, crystal form of mineral",
        "formula": "string, chemical formula of mineral",
        "formula_tags": "chemical formula of mineral with sub/superscript tags",
        "url": "text, URL where additional information, the source or contributing publication can be found"
      }
    }
  }
}