# OpenCageData Grok API Evaluation

**Category:** Geocoding
**Score:** 84 (B)

This is the agent-readable Devtool Arena evaluation page for OpenCageData on Grok API.

## Summary

| Metric | Value |
|--------|-------|
| Status | completed |
| Overall score | 84 |
| Grade | B |
| Eval score | 83 |
| Discovery score | 86 |
| Cost | $0.22 |
| Runtime | 1m 5s |
| Tool calls | 10 |
| Errors | 0 |
| Tokens used | 216138 |
| Success | Yes |

## Agent-Readiness Checklist

| Signal | Evidence |
|--------|----------|
| Context7 | Not found |
| llms.txt | https://opencagedata.com/llms.txt |
| MCP server | https://github.com/OpenCageData/opencage-geocoding-mcp |
| Typed SDK | https://github.com/OpenCageData/jopencage |
| OpenAPI | https://opencagedata.com/openapi.yaml |
| Agent skills | https://github.com/OpenCageData/opencage-skills |
| CLI | https://pypi.org/project/opencage-cli/ |

## Evaluation Prompt

````text

# Task
Using https://opencagedata.com/api, complete the following task:

Using the OpenCageData Python SDK, build me a script that performs geocoding operations:

1. Install the official OpenCageData Python SDK (pip install)
2. Forward geocode the address: "1600 Amphitheatre Parkway, Mountain View, CA"
3. Reverse geocode the coordinates: latitude 48.8584, longitude 2.2945 (Eiffel Tower)
4. Print both results as JSON with fields: query, latitude, longitude, formatted_address, confidence

You MUST use the official OpenCageData Python SDK — do not make raw HTTP/REST calls. 

## Execution
After creating the script, run it to verify it works:
```bash
cd /home/daytona/app && python <your_script>.py
```

The script should print output to stdout. If there are errors, debug and fix them until it runs successfully.

````

## Grader Results

| Check | Passed | Weight | Score | Details |
|-------|--------|--------|-------|---------|
| Cost | Yes | 0 | 0 | $0.22 ($0.20–0.40, good) |
| Time | Yes | 0 | 1 | 65s (1–2min, great) |
| Efficiency | Yes | 0 | 1 | 10 tool calls (≤10, great) |
| Found Docs | Yes | 0 | — | Touched [REDACTED:TENANT] at opencagedata.com: yes (3 matching tool calls) |
| Zero Errors | Yes | 0 | — | No errors in tool outputs |
| Syntax Valid | Yes | 0 | — | Code compiles/parses correctly |
| Created Files | Yes | 0 | — | Generated files: 1 (need ≥1) |
| Full Execution | Yes | 0 | — | Method: full_execution, Exit: 0 |

## Run Artifacts

| Artifact | Value |
|----------|-------|
| Conversation turns | 11 |
| Tool call traces | 10 |
| Generated files | 1 |
| Exit code | 0 |
| Completed at | 2026-10-19T16:40:30.387672+00:00 |

### Generated Files

- /home/daytona/app/geocode.py

## Related Pages

- [Grok API leaderboard](/grok/api)
- [Compare Grok API companies](/grok/api/compare)
- [Agent Landscape](/discoverability)

Canonical URL: https://devtoolarena.com/grok/api/opencagedata
