{
  "openapi": "3.1.0",
  "info": {
    "title": "cv.cm public API",
    "version": "1.0.0",
    "summary": "Read-only search and data API for cv.cm. Free, no key.",
    "description": "Search cv.cm's pages (tools, tests, rankings, datasets, tutorials and more) in nine languages and read its rankings and datasets as JSON. No key and no sign-up; about 60 requests a minute per IP (back off on HTTP 429). Every result has the cv.cm page URL: link it when you show or quote the result. Ranking and dataset rows keep the licence of their source. Docs: https://cv.cm/en/api/. The same functions are an MCP server at https://cv.cm/mcp.",
    "termsOfService": "https://cv.cm/en/terms/",
    "contact": {
      "name": "cv.cm",
      "email": "m@cv.cm",
      "url": "https://cv.cm/en/api/"
    }
  },
  "servers": [
    {
      "url": "https://cv.cm/api/v1"
    }
  ],
  "externalDocs": {
    "url": "https://cv.cm/en/api/"
  },
  "paths": {
    "/search": {
      "get": {
        "operationId": "search",
        "summary": "Search every cv.cm page",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 60
            }
          },
          {
            "name": "language",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "en",
              "examples": [
                "en",
                "zh-cn",
                "zh-tw",
                "ja",
                "ko",
                "vi",
                "id",
                "es",
                "pt-br"
              ]
            },
            "description": "Page language: en, zh-cn, zh-tw, ja, ko, vi, id, es, pt-br. Language tags such as zh-Hant or pt are mapped to the nearest one."
          },
          {
            "name": "channel",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "tool",
                "learn",
                "kb",
                "tests",
                "datasets",
                "rankings",
                "reference",
                "slang",
                "ideas",
                "nostalgia",
                "manuals",
                "calories",
                "calendar",
                "games",
                "countries",
                "elements",
                "emoji",
                "currency",
                "breeds"
              ]
            },
            "description": "tool (free browser tools (image, PDF, audio, text, calculators, AI that runs on the device)); learn (illustrated how-to tutorials); kb (sourced explainers: coding, AI, photography, self-massage, relationships); tests (personality tests and quizzes); datasets (public reference tables with CSV); rankings (sourced rankings with CSV); reference (pose, hairstyle, expression and outfit reference for artists and photographers); slang (memes and internet slang); ideas (business ideas with a demand outlook); nostalgia (things from 1980s–2000s childhoods); manuals (help for lost product manuals); calories (food calories and nutrition); calendar (calendars, public holidays, lunar dates); games (browser games); countries (country profiles); elements (periodic table); emoji (emoji meanings); currency (exchange rates); breeds (dog and cat breeds)"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 10
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Matching pages, best first",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "query": {
                      "type": "string"
                    },
                    "language": {
                      "type": "string"
                    },
                    "channel": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "channel": {
                            "type": "string",
                            "enum": [
                              "tool",
                              "learn",
                              "kb",
                              "tests",
                              "datasets",
                              "rankings",
                              "reference",
                              "slang",
                              "ideas",
                              "nostalgia",
                              "manuals",
                              "calories",
                              "calendar",
                              "games",
                              "countries",
                              "elements",
                              "emoji",
                              "currency",
                              "breeds"
                            ]
                          },
                          "language": {
                            "type": "string",
                            "description": "The page's language; en for a section not yet translated in the asked language."
                          },
                          "title": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "description": "The cv.cm page. Link it when you use the result."
                          }
                        },
                        "required": [
                          "channel",
                          "language",
                          "title",
                          "description",
                          "url"
                        ]
                      }
                    },
                    "attribution": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad parameter or unknown id",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "More than 60 requests a minute from one IP address"
          }
        }
      }
    },
    "/pages": {
      "get": {
        "operationId": "listPages",
        "summary": "List the pages of one section",
        "parameters": [
          {
            "name": "channel",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "tool",
                "learn",
                "kb",
                "tests",
                "datasets",
                "rankings",
                "reference",
                "slang",
                "ideas",
                "nostalgia",
                "manuals",
                "calories",
                "calendar",
                "games",
                "countries",
                "elements",
                "emoji",
                "currency",
                "breeds"
              ]
            },
            "description": "tool (free browser tools (image, PDF, audio, text, calculators, AI that runs on the device)); learn (illustrated how-to tutorials); kb (sourced explainers: coding, AI, photography, self-massage, relationships); tests (personality tests and quizzes); datasets (public reference tables with CSV); rankings (sourced rankings with CSV); reference (pose, hairstyle, expression and outfit reference for artists and photographers); slang (memes and internet slang); ideas (business ideas with a demand outlook); nostalgia (things from 1980s–2000s childhoods); manuals (help for lost product manuals); calories (food calories and nutrition); calendar (calendars, public holidays, lunar dates); games (browser games); countries (country profiles); elements (periodic table); emoji (emoji meanings); currency (exchange rates); breeds (dog and cat breeds)"
          },
          {
            "name": "language",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "en",
              "examples": [
                "en",
                "zh-cn",
                "zh-tw",
                "ja",
                "ko",
                "vi",
                "id",
                "es",
                "pt-br"
              ]
            },
            "description": "Page language: en, zh-cn, zh-tw, ja, ko, vi, id, es, pt-br. Language tags such as zh-Hant or pt are mapped to the nearest one."
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "One page of the section's pages",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "channel": {
                      "type": "string"
                    },
                    "language": {
                      "type": "string"
                    },
                    "total": {
                      "type": "integer"
                    },
                    "offset": {
                      "type": "integer"
                    },
                    "pages": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "channel": {
                            "type": "string",
                            "enum": [
                              "tool",
                              "learn",
                              "kb",
                              "tests",
                              "datasets",
                              "rankings",
                              "reference",
                              "slang",
                              "ideas",
                              "nostalgia",
                              "manuals",
                              "calories",
                              "calendar",
                              "games",
                              "countries",
                              "elements",
                              "emoji",
                              "currency",
                              "breeds"
                            ]
                          },
                          "language": {
                            "type": "string",
                            "description": "The page's language; en for a section not yet translated in the asked language."
                          },
                          "title": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri",
                            "description": "The cv.cm page. Link it when you use the result."
                          }
                        },
                        "required": [
                          "channel",
                          "language",
                          "title",
                          "description",
                          "url"
                        ]
                      }
                    },
                    "attribution": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad parameter or unknown id",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "More than 60 requests a minute from one IP address"
          }
        }
      }
    },
    "/rankings/{id}": {
      "get": {
        "operationId": "getRanking",
        "summary": "Rows, source and licence of one ranking",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "ai-models",
                "ai-coding-models",
                "ai-image-models",
                "ai-video-models",
                "ai-usage",
                "ai-companies",
                "browser-market-share",
                "os-market-share",
                "search-engine-market-share",
                "phone-market-share",
                "social-media-market-share",
                "crypto-market-cap",
                "commodity-prices",
                "currency-strength",
                "tallest-mountains",
                "longest-rivers",
                "largest-lakes",
                "largest-islands",
                "largest-deserts",
                "tallest-buildings",
                "largest-cities",
                "largest-stadiums"
              ]
            }
          },
          {
            "name": "language",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "en",
              "examples": [
                "en",
                "zh-cn",
                "zh-tw",
                "ja",
                "ko",
                "vi",
                "id",
                "es",
                "pt-br"
              ]
            },
            "description": "Page language: en, zh-cn, zh-tw, ja, ko, vi, id, es, pt-br. Language tags such as zh-Hant or pt are mapped to the nearest one."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The table",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "language": {
                      "type": "string"
                    },
                    "updated": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "source": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        },
                        "license": {
                          "type": "string"
                        },
                        "license_url": {
                          "type": "string"
                        }
                      }
                    },
                    "csv_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "columns": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "total_rows": {
                      "type": "integer"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "attribution": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad parameter or unknown id",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Bad parameter or unknown id",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "More than 60 requests a minute from one IP address"
          }
        }
      }
    },
    "/datasets/{id}": {
      "get": {
        "operationId": "getDataset",
        "summary": "Rows, source and licence of one dataset",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "gdp",
                "gdp-ppp",
                "gdp-per-capita",
                "gdp-ppp-per-capita",
                "gni-per-capita",
                "gdp-growth",
                "inflation",
                "unemployment",
                "youth-unemployment",
                "female-labor-force",
                "exports",
                "imports",
                "remittances",
                "foreign-reserves",
                "military-spending",
                "military-spending-gdp",
                "rd-spending",
                "gini-index",
                "poverty-rate",
                "population",
                "population-growth",
                "population-density",
                "urban-population",
                "aged-0-14",
                "aged-65-plus",
                "international-migrants",
                "life-expectancy",
                "life-expectancy-female",
                "life-expectancy-male",
                "fertility-rate",
                "birth-rate",
                "death-rate",
                "infant-mortality",
                "maternal-mortality",
                "physicians",
                "health-spending-per-capita",
                "education-spending",
                "literacy-rate",
                "homicide-rate",
                "suicide-rate",
                "alcohol-consumption",
                "tobacco-use",
                "land-area",
                "forest-area",
                "co2-emissions",
                "co2-per-capita",
                "air-pollution",
                "renewable-energy",
                "electricity-access",
                "electricity-consumption",
                "internet-users",
                "mobile-subscriptions",
                "broadband-subscriptions",
                "country-codes",
                "calling-codes",
                "currency-codes",
                "time-zones",
                "paper-sizes",
                "ascii"
              ]
            }
          },
          {
            "name": "language",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "en",
              "examples": [
                "en",
                "zh-cn",
                "zh-tw",
                "ja",
                "ko",
                "vi",
                "id",
                "es",
                "pt-br"
              ]
            },
            "description": "Page language: en, zh-cn, zh-tw, ja, ko, vi, id, es, pt-br. Language tags such as zh-Hant or pt are mapped to the nearest one."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The table",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "language": {
                      "type": "string"
                    },
                    "updated": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "source": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        },
                        "license": {
                          "type": "string"
                        },
                        "license_url": {
                          "type": "string"
                        }
                      }
                    },
                    "csv_url": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "columns": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "total_rows": {
                      "type": "integer"
                    },
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "attribution": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad parameter or unknown id",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Bad parameter or unknown id",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "More than 60 requests a minute from one IP address"
          }
        }
      }
    }
  }
}
