# searchFacilities

**Identifier:** `gdelt_searchFacilities`

**Provider:** [GDELT](https://kirha.com/providers/gdelt.md)

Search industrial and infrastructure sites worldwide (power plants, mines, pipelines, LNG terminals, ports, steel and cement plants, data centers, refineries) by name, type, country or owner, with status, capacity and owners. Use getFacilityContext for recent news on a site's owner.

## Run it with the CLI

```bash
kirha tools run gdelt_searchFacilities \
  --input '{}'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "gdelt_searchFacilities",
  "input": {}
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "commodity": {
      "description": "e.g., copper, lithium, rare_earths",
      "type": "string"
    },
    "country": {
      "description": "ISO-3",
      "type": "string"
    },
    "cursor": {
      "description": "nextCursor from a previous call with the same filters",
      "type": "string"
    },
    "limit": {
      "default": 10,
      "maximum": 25,
      "minimum": 1,
      "type": "number"
    },
    "minCapacityMw": {
      "minimum": 0,
      "type": "number"
    },
    "name": {
      "description": "Site name substring",
      "type": "string"
    },
    "ownerEntityId": {
      "description": "From resolveEntity, or an owner name",
      "type": "string"
    },
    "sort": {
      "enum": [
        "capacity_desc",
        "name",
        "news_activity",
        "recent",
        "relevance"
      ],
      "type": "string"
    },
    "types": {
      "items": {
        "enum": [
          "coal_plant",
          "oil_gas_plant",
          "nuclear_plant",
          "geothermal_plant",
          "bioenergy_plant",
          "hydropower_plant",
          "solar_farm",
          "wind_farm",
          "coal_mine",
          "oil_gas_field",
          "iron_ore_mine",
          "coal_terminal",
          "lng_terminal",
          "gas_pipeline",
          "oil_pipeline",
          "port",
          "steel_plant",
          "cement_plant",
          "chemical_plant",
          "data_center",
          "mineral_mine",
          "smelter",
          "mineral_refinery",
          "mineral_processing_plant",
          "recycling_plant",
          "manufacturing_factory"
        ],
        "type": "string"
      },
      "type": "array"
    }
  },
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "facilities": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "capacity": {
            "description": "Non-MW capacity with unit",
            "type": "string"
          },
          "capacityMw": {
            "type": "number"
          },
          "commodities": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "country": {
            "type": "string"
          },
          "facilityId": {
            "type": "string"
          },
          "lat": {
            "type": "number"
          },
          "lon": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "owners": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "entityId": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "name"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "source": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "unitCount": {
            "type": "number"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "facilityId",
          "commodities",
          "owners"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "facilityIds": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "nextCursor": {
      "type": "string"
    }
  },
  "required": [
    "context",
    "facilities",
    "facilityIds"
  ],
  "type": "object"
}
```

## Related tools

Other GDELT tools that this tool refers to, or that refer to it.

- [`getFacilityContext`](https://kirha.com/providers/gdelt/getFacilityContext.md)
- [`resolveEntity`](https://kirha.com/providers/gdelt/resolveEntity.md)

-----

[All GDELT tools](https://kirha.com/providers/gdelt.md) · [< Back to tools list](https://kirha.com/tools.md)