# Opencage

OpenCage Geocoder provides a simple API for forward and reverse geocoding using open data sources.

- **Category:** developer tools
- **Auth:** API_KEY
- **Composio Managed App Available?** N/A
- **Tools:** 7
- **Triggers:** 0
- **Slug:** `OPENCAGE`
- **Version:** 20260407_00

## Tools

### Forward Geocode Address

**Slug:** `OPENCAGE_GEOCODE_FORWARD`

Tool to convert a human-readable address into geographic coordinates. Use when you need to retrieve latitude and longitude from an address.

### Geocode to GeoJSON

**Slug:** `OPENCAGE_GEOCODE_GEOJSON`

Geocode addresses or coordinates and return results in GeoJSON FeatureCollection format. Use this tool when you need: - Geographic data in standard GeoJSON format for mapping applications - Forward geocoding: convert addresses to coordinates - Reverse geocoding: convert coordinates to addresses The response includes coordinates, formatted addresses, and optional annotations like timezone, currency, and sun times for each location.

### Geocode with JSONP

**Slug:** `OPENCAGE_GEOCODE_GEOJSONP`

Geocode an address and return results wrapped in a JavaScript callback function (JSONP format). Use this tool when you need geocoding results that can be directly consumed by JavaScript through a callback function, typically for cross-domain AJAX requests in browser environments. The response wraps standard geocoding JSON with your specified callback function name. Example response: myCallback({"results":[{"geometry":{"lat":52.5,"lng":13.4},"formatted":"Berlin, Germany",...}],...})

### Geocode Google v3 JSON

**Slug:** `OPENCAGE_GEOCODE_GOOGLE_V3_JSON`

Tool to perform forward geocoding and return results in Google Geocoding API v3 compatible JSON format. Use when you need Google v3 compatible output for legacy integrations. Note: This is a legacy format that may be discontinued; using the standard JSON format is recommended.

### Reverse Geocode Coordinates

**Slug:** `OPENCAGE_GEOCODE_REVERSE`

Tool to convert coordinates to a human-readable address. Use when you have latitude and longitude and need a readable location.

### Geocode XML

**Slug:** `OPENCAGE_GEOCODE_XML`

Geocode a location query and return results in XML format. Supports both forward geocoding (address to coordinates) and reverse geocoding (coordinates to address). Use this when you need XML-formatted output instead of JSON.

### Check API Health

**Slug:** `OPENCAGE_PING_OPENCAGE`

Tool to check API health and connectivity. Returns 'pong' if the API is reachable. Use when you need to verify that the OpenCage API is accessible and operational.
