Bundled API for countries, states, cities, IP geolocation, and live exchange rates
Full LLM thinking from the 4-phase benchmark pipeline.
{
"service_type": "rest_api",
"base_url": "https://api.apogeoapi.com",
"auth_method": "api_key_header",
"auth_config": {
"header": "X-API-Key",
"prefix": null
},
"endpoints": [
{
"path": "/v1/api/geo/countries",
"method": "GET",
"purpose": "Get paginated country list",
"params": {
"page": {"type": "number", "required": false},
"limit": {"type": "number", "required": false},
"fields": {"type": "string", "required": false},
"base": {"type": "string", "required": false}
},
"response_format": "json",
"is_primary": true
},
{
"path": "/v1/api/geo/countries/search",
"method": "GET",
"purpose": "Search countries by name",
"params": {
"q": {"type": "string", "required": true},
"fields": {"type": "string", "required": false}
},
"response_format": "json",
"is_primary": false
},
{
"path": "/v1/countries",
"method": "GET",
"purpose": "Get paginated country list (clean URL alias)",
"params": {
"page": {"type": "number", "required": false},
"limit": {"type": "number", "required": false},
"fields": {"type": "string", "required": false},
"base": {"type": "string", "required": false}
},
"response_format": "json",
"is_primary": true
},
{
"path": "/v1/ip",
"method": "GET",
"purpose": "IP geolocation lookup (clean URL alias)",
"params": {},
"response_format": "json",
"is_primary": true
},
{
"path": "/v1/exchange-rates",
"method": "GET",
"purpose": "Get live currency exchange rates (clean URL alias)",
"params": {},
"response_format": "json",
"is_primary": true
},
{
"path": "/v1/search",
"method": "GET",
"purpose": "Global search (clean URL alias)",
"params": {},
"response_format": "json",
"is_primary": false
}
],
"pricing_model": {
"type": "free_tier",
"details": {},
"free_tier": {
"requests": 1000,
"period": "month"
},
"paid_tiers": []
},
"rate_limits": {
"rpm": null,
"tpm": null,
"daily": null,
"concurrent": null
},
"capabilities": [
"geographic data",
"countries",
"states/provinces",
"cities",
"ip geolocation",
"currency exchange rates",
"search"
],
"agent_readiness": {
"supports_x402": false,
"supports_streaming": false,
"has_sandbox": false,
"sdks": [],
"agent_auth_methods": ["api_key"]
}
}{
"tests": [
{
"name": "list_countries_clean_alias",
"endpoint": "/v1/countries",
"method": "GET",
"headers": {"X-API-Key": "{{API_KEY}}", "Accept": "application/json"},
"payload": null,
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns paginated list of countries using the marketing-friendly clean URL alias",
"metrics": ["latency", "status_code", "accuracy"],
"validation": {"field": "data", "type": "array", "min_length": 1}
},
{
"name": "list_countries_canonical_path",
"endpoint": "/v1/api/geo/countries?page=1&limit=5&fields=basic",
"method": "GET",
"headers": {"X-API-Key": "{{API_KEY}}", "Accept": "application/json"},
"payload": null,
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Canonical geo route returns paginated country list respecting page/limit/fields projection",
"metrics": ["latency", "status_code", "accuracy"],
"validation": {"field": "data", "type": "array", "min_length": 1}
},
{
"name": "search_countries_by_name",
"endpoint": "/v1/countries/search?q=argentina",
"method": "GET",
"headers": {"X-API-Key": "{{API_KEY}}", "Accept": "application/json"},
"payload": null,
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Case-insensitive partial match returns at least Argentina",
"metrics": ["latency", "status_code", "accuracy"],
"validation": {"field": "data", "type": "array", "min_length": 1}
},
{
"name": "get_country_by_iso_code",
"endpoint": "/v1/countries/AR",
"method": "GET",
"headers": {"X-API-Key": "{{API_KEY}}", "Accept": "application/json"},
"payload": null,
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns full country record for ISO2 code AR",
"metrics": ["latency", "status_code", "accuracy"],
"validation": {"field": "data", "type": "object"}
},
{
"name": "global_search_clean_alias",
"endpoint": "/v1/search?q=buenos&limit=10",
"method": "GET",
"headers": {"X-API-Key": "{{API_KEY}}", "Accept": "application/json"},
"payload": null,
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Global search across countries/states/cities returns mixed results for 'buenos'",
"metrics": ["latency", "status_code", "accuracy"],
"validation": {"field": "data", "type": "array", "min_length": 1}
},
{
"name": "ip_self_geolocation",
"endpoint": "/v1/ip",
"method": "GET",
"headers": {"X-API-Key": "{{API_KEY}}", "Accept": "application/json"},
"payload": null,
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns geolocation for caller IP; may 403 on free tier (Starter+ feature) — treat 200 as success and note 403 tier gating",
"metrics": ["latency", "status_code"],
"validation": {"field": "data", "type": "object"}
},
{
"name": "exchange_rate_eur_usd",
"endpoint": "/v1/exchange-rates/EUR?base=USD",
"method": "GET",
"headers": {"X-API-Key": "{{API_KEY}}", "Accept": "application/json"},
"payload": null,
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Returns live EUR/USD exchange rate with lastUpdated timestamp and optional stale flag",
"metrics": ["latency", "status_code", "accuracy"],
"validation": {"field": "data", "type": "object"}
},
{
"name": "billing_plans_public_no_auth",
"endpoint": "/v1/billing/plans",
"method": "GET",
"headers": {"Accept": "application/json"},
"payload": null,
"expected_status": 200,
"intent": "happy_path",
"expected_behavior": "Public billing endpoint returns tier limits & pricing without an API key; used to verify free_tier 1000 req/month claim",
"metrics": ["latency", "status_code"],
"validation": {"field": "data", "type": "object"}
},
{
"name": "search_missing_required_q",
"endpoint": "/v1/search",
"method": "GET",
"headers": {"X-API-Key": "{{API_KEY}}", "Accept": "application/json"},
"payload": null,
"expected_status": 400,
"intent": "validation",
"expected_behavior": "Missing required 'q' query param is rejected with 4xx structured error — correct API behavior",
"metrics": ["status_code"],
"validation": {"field": "message", "type": "string"}
},
{
"name": "country_invalid_iso_code",
"endpoint": "/v1/countries/ZZZ",
"method": "GET",
"headers": {"X-API-Key": "{{API_KEY}}", "Accept": "application/json"},
"payload": null,
"expected_status": 404,
"intent": "validation",
"expected_behavior": "Unknown country code returns 404 with structured error — correct API behavior",
1/12 tests passed
| Test | Endpoint | Status | Latency |
|---|---|---|---|
| list_countries_clean_alias | GET /v1/countries | 401 | 106ms |
| list_countries_canonical_path | GET /v1/api/geo/countries?page=1&limit=5&fields=basic | 401 | 38ms |
| search_countries_by_name | GET /v1/countries/search?q=argentina | 401 | 38ms |
| get_country_by_iso_code | GET /v1/countries/AR | 401 | 40ms |
| global_search_clean_alias | GET /v1/search?q=buenos&limit=10 | 401 | 45ms |
| ip_self_geolocation | GET /v1/ip | 401 | 59ms |
| exchange_rate_eur_usd | GET /v1/exchange-rates/EUR?base=USD | 401 | 65ms |
| billing_plans_public_no_auth | GET /v1/billing/plans | 200 | 51ms |
| search_missing_required_q | GET /v1/search | 401 | 39ms |
| country_invalid_iso_code | GET /v1/countries/ZZZ | 401 | 38ms |
{"model": "deepseek", "data": {"overall": 22, "dimensions": {"token_efficiency": 6.0, "first_try_success": 2.0, "response_parseability": 9.0, "error_clarity": 5.0, "doc_quality": 5.0, "auth_simplicity": 8.0, "latency": 10.0, "consistency": 8.0}, "pricing_normalized": {"cost_per_1k_requests": 0.0, "cost_per_1m_input_tokens": null, "cost_per_1m_output_tokens": null, "free_tier_requests": 1000, "estimated_monthly_cost_light": 0.0, "estimated_monthly_cost_heavy": 0.0}, "issues": [{"severity": "critical", "detail": "All authenticated data endpoints returned 401 'Formato de API key inv\u00e1lido' because the benchmark used an invalid/missing API key. Authentication is required for core functionality; without a valid key no data endpoint is usable.", "endpoint": "/v1/countries"}, {"severity": "high", "detail": "Validation tests intended to probe malformed input (missing q, invalid ISO code) returned 401 instead of 400/404 because auth is checked before validation. The agent cannot reach validation feedback without a valid key.", "endpoint": "/v1/search"}, {"severity": "medium", "detail": "Auth boundary test for invalid key expected 403 but got 401 for both missing-key and invalid-key cases. Invalid credentials should ideally be distinguished (403 vs 401) for clearer agent diagnostics.", "endpoint": "/v1/countries"}, {"severity": "low", "detail": "Error messages are in Spanish ('Formato de API key inv\u00e1lido', 'API key requerida'), which may reduce clarity for non-Spanish-speaking agents.", "endpoint": "/v1/countries"}], "recommendations": ["Provide the benchmark harness with a valid API key so happy-path data endpoints can be exercised; current results reflect a missing/invalid credential rather than API quality.", "Return distinct status codes for missing key (401) vs malformed/invalid key (403) to let agents differentiate remediation steps.", "Move request validation ahead of authentication where possible, or document that auth is required before validation errors are surfaced, so agents get meaningful 400/404 feedback.", "Add English error messages (or locale negotiation via Accept-Language) to improve agent interpretability.", "Publish an OpenAPI spec with request/response examples and clearly document required headers (X-API-Key) and pagination fields (page, limit, fields, base).", "Ensure the /v1/exchange-rates and /v1/ip paths and their parameter contracts (e.g., path param EUR, base query) are documented, as the benchmark used undocumented variants."]}}Show your live agent-readiness score on your own site. Free, no auth — it updates as your score changes.
<a href="https://prowl.world/service/apogeoapi">
<img src="https://prowl.world/badge/apogeoapi.svg" height="56" alt="Agent-readiness on Prowl">
</a>
See operational metrics, LLM evaluations, agent readiness, and more.
Open in Dashboard