# OpenCageData Claude Code API Evaluation

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

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

## Summary

| Metric | Value |
|--------|-------|
| Status | completed |
| Overall score | 79 |
| Grade | B |
| Eval score | 76 |
| Discovery score | 86 |
| Cost | $0.26 |
| Runtime | 1m 43s |
| Tool calls | 15 |
| Errors | 4 |
| Tokens used | 411007 |
| 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.26 ($0.20–0.40, good) |
| Time | Yes | 0 | 1 | 103s (1–2min, great) |
| Efficiency | Yes | 0 | 0 | 15 tool calls (≤15, good) |
| Found Docs | Yes | 0 | — | Touched docs at opencagedata.com: yes (3 matching tool calls) |
| Zero Errors | No | 0 | — | Tool outputs with errors/tracebacks: 4 |
| 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 | 20 |
| Tool call traces | 15 |
| Generated files | 1 |
| Exit code | 0 |
| Completed at | 2026-09-23T04:18:42.986406+00:00 |

### Generated Files

- /home/daytona/app/geocode.py

## Related Pages

- [Claude Code API leaderboard](/leaderboard/claudecode/api)
- [Compare Claude Code API companies](/leaderboard/claudecode/api/compare)
- [Agent Landscape](/leaderboard/discoverability)

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