Geo-Parity Compare.json API

The Compare.json API from Geo-Parity — 1 operation(s) for compare.json.

GitHub OpenAPI

Operations 1

GET /api/compare.json Two-country cost-of-living comparison across all datasets #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/geo-parity-com:geo-parity-com-compare-json-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

geo-parity-com-compare-json-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Geo-Parity Compare.json API
  version: 1.0.0
  description: 'Free, key-less JSON APIs behind geo-parity.com: purchasing power parity, fair global salaries, Schengen 90/180 compliance, cross-timezone meetings, contractor economics, freelance rates, tax-residency day counts, country comparison, cloud region latency, and a digital-nomad visa directory. All GET responses are cacheable; errors return { ok:false, code, message, example }. No key is required: anonymous callers get 1,500 requests/month per IP plus a 30/minute burst cap. An optional API key (Authorization: Bearer gp_live_..., created at /account) only raises those ceilings — responses are identical either way, and a key is metered per account rather than per key. Every response carries X-RateLimit-Limit / -Remaining / -Reset (the minute window) and X-Quota-Limit / -Remaining / -Reset (the calendar month, resetting on the 1st UTC); exceeding either returns 429 with Retry-After and code RATE_LIMITED (slow down) or QUOTA_EXCEEDED (allowance spent — retrying will not help). Figures are informational estimates, not financial/tax/legal advice. Machine discovery: /llms.txt and /.well-known/mcp.json; the same tools are also registered with the browser''s WebMCP ModelContext on every page, executing through /api/mcp.'
  contact:
    url: https://geo-parity.com
servers:
- url: https://geo-parity.com
security:
- {}
- bearerAuth: []
- apiKeyQuery: []
tags:
- name: Compare.json
paths:
  /api/compare.json:
    get:
      operationId: compareCountries
      summary: Two-country cost-of-living comparison across all datasets
      parameters:
      - name: a
        in: query
        required: true
        schema:
          type: string
      - name: b
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: spreads, ratioAtoB, pctDifference, salary100k both directions
        '400':
          $ref: '#/components/responses/MissingParams'
        '422':
          $ref: '#/components/responses/InvalidInput'
        '429':
          $ref: '#/components/responses/RateLimited'
      tags:
      - Compare.json
components:
  responses:
    InvalidInput:
      description: Well-formed but invalid input; body includes a machine-readable code (e.g. UNKNOWN_TARGET) and message.
    MissingParams:
      description: Required parameters missing; body includes code, message, and a worked example.
    RateLimited:
      description: A ceiling was exceeded. Body is { ok:false, code, message, retryAfterSeconds } where code is RATE_LIMITED (per-minute burst — back off and retry within the minute) or QUOTA_EXCEEDED (the monthly allowance is spent; retrying will not help until it resets on the 1st). Honour Retry-After.
      headers:
        Retry-After:
          description: Seconds until the exceeded ceiling resets.
          schema:
            type: integer
        X-RateLimit-Limit:
          description: Requests allowed per minute for this caller (burst).
          schema:
            type: integer
        X-RateLimit-Remaining:
          description: Requests left in the current minute.
          schema:
            type: integer
        X-RateLimit-Reset:
          description: Minute window reset, epoch seconds.
          schema:
            type: integer
        X-Quota-Limit:
          description: Requests allowed this calendar month for this caller.
          schema:
            type: integer
        X-Quota-Remaining:
          description: Requests left this month.
          schema:
            type: integer
        X-Quota-Reset:
          description: Quota reset (1st of next month, UTC), epoch seconds.
          schema:
            type: integer
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Optional Geo-Parity API key (gp_live_...), created at /account. Raises the monthly quota and per-minute burst; never changes a response. Metered per account, so extra keys do not add allowance.
    apiKeyQuery:
      type: apiKey
      in: query
      name: key
      description: The same key, for clients that cannot set headers.
externalDocs:
  description: 'Developer guide: quota ladder, error codes, API keys and MCP setup'
  url: https://geo-parity.com/developers/