CompareFairly Compare Fairly API

The CompareFairly API from CompareFairly — 2 operation(s) for comparefairly.

GitHub OpenAPI

Operations 2

GET /{lang}/{country}/{slug}.json Un comparatif complet, en JSON #
GET /{lang}/{country}/{slug}.md Le meme comparatif, en Markdown #

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/comparefairly-com:comparefairly-com-comparefairly-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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

comparefairly-com-comparefairly-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Compare Fairly API
  version: 1.0.0
  contact:
    url: https://comparefairly.com/contact
  license:
    name: Conditions d'usage
    url: https://comparefairly.com/mentions-legales
  description: 'Operations tagged CompareFairly across 2 of this provider''s published API definitions: comparefairly-com-openapi.json, comparefairly-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://comparefairly.com
tags:
- name: CompareFairly
paths:
  /{lang}/{country}/{slug}.json:
    get:
      description: 'Options classees, criteres, sous-scores, et pour chaque valeur l''URL de sa source. `unranked: true` signale une liste volontairement NON classee, faute de donnees comparables - ne pas en deduire un ordre.'
      operationId: getComparisonJson
      parameters:
      - description: Code langue ISO 639-1 (fr, en, de...)
        in: path
        name: lang
        required: true
        schema:
          pattern: ^[a-z]{2}$
          type: string
      - description: Code pays ISO 3166-1 alpha-2 en MAJUSCULES (FR, GB, US...)
        in: path
        name: country
        required: true
        schema:
          pattern: ^[A-Z]{2}$
          type: string
      - description: Identifiant du comparatif, tel que donne par le sitemap
        in: path
        name: slug
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Comparison'
          description: Le comparatif
        '404':
          description: Aucun comparatif a cette adresse dans ce marche
        '429':
          description: Quota de lecture machine depasse. L'en-tete `Retry-After` donne le delai. Le HTML n'est jamais limite.
      summary: Un comparatif complet, en JSON
      tags:
      - CompareFairly
    servers:
    - url: https://comparefairly.com
  /{lang}/{country}/{slug}.md:
    get:
      operationId: getComparisonMarkdown
      parameters:
      - in: path
        name: lang
        required: true
        schema:
          pattern: ^[a-z]{2}$
          type: string
      - in: path
        name: country
        required: true
        schema:
          pattern: ^[A-Z]{2}$
          type: string
      - in: path
        name: slug
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            text/markdown:
              schema:
                type: string
          description: Markdown
        '429':
          description: Quota de lecture machine depasse
      summary: Le meme comparatif, en Markdown
      tags:
      - CompareFairly
    servers:
    - url: https://comparefairly.com
components:
  schemas:
    Option:
      properties:
        link_url:
          description: Destination publique de l'option. Peut etre un lien remunere - voir /mentions-legales.
          format: uri
          type: string
        name:
          type: string
        non_note:
          description: true quand aucun critere n'a pu etre note faute de donnee. `score` est alors absent, et l'option figure en fin de liste sans que cela signifie qu'elle est mauvaise.
          type: boolean
        provider:
          type: string
        score:
          description: 'Note sur 100. ABSENTE si l''option n''a produit aucun sous-score : voir `non_note`. Une option sans donnee comparable n''est pas notee 0, elle n''est pas notee.'
          type: number
        source_url:
          description: D'ou viennent les valeurs
          format: uri
          type: string
        subscores:
          additionalProperties:
            type: number
          type: object
        values:
          description: Valeur par critere
          type: object
        verified:
          description: Au moins une source TIERCE atteste cette option
          type: boolean
      required:
      - name
      type: object
    Comparison:
      properties:
        category:
          description: Criteres, poids, FAQ et metadonnees du comparatif
          type: object
        country:
          type: string
        freshness:
          description: Date de derniere mise a jour des donnees
          type: string
        items:
          items:
            $ref: '#/components/schemas/Option'
          type: array
        lang:
          type: string
        license:
          type: string
        markdown_url:
          format: uri
          type: string
        neutral:
          description: Sujet traite SANS classement (religions, partis...)
          type: boolean
        notice:
          type: string
        query:
          description: La demande d'origine
          type: string
        title:
          type: string
        unranked:
          description: Liste non classee faute de donnees comparables
          type: boolean
        url:
          description: La page HTML equivalente
          format: uri
          type: string
      required:
      - title
      - lang
      - country
      - url
      - items
      type: object
externalDocs:
  description: Méthodologie
  url: https://comparefairly.com/methodologie
x-refined-from:
- comparefairly-com-openapi.json
- comparefairly-com-openapi.yml