CarGene Model Relations API

The model-relations API from CarGene — 2 operation(s) for model-relations.

GitHub OpenAPI

Operations 2

1 of 2 operations are conformant: apis.io called them with no credentials and the responses matched this contract; 1 more answered but could not be checked against a schema. Checked 2026-11-12. how this works · status file

GET /api/model-relations Get Model Relations observed #
GET /api/model-relations/kinds Get Model Relation Kinds conformant #

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/car-gene-com:car-gene-com-model-relations-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

car-gene-com-model-relations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Car Gene Com Model Relations API
  version: 1.0.0
  description: 'Operations tagged model-relations across 2 of this provider''s published API definitions: car-gene-com-openapi.json, car-gene-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.car-gene.com
  description: CarGene API host (named on https://car-gene.com/mcp/; spec served at https://api.car-gene.com/openapi.json)
tags:
- name: model-relations
paths:
  /api/model-relations:
    get:
      tags:
      - model-relations
      summary: Get Model Relations
      description: '世代どうしのつながりを取得 (**種別は `/kinds` が返すマスタが正**)


        **渡した世代が `from` の行も `to` の行も返る。** DB は1組に1行しか

        持たないので、片方向で引くとつながりが半分落ちる。


        **`kind_directed` が false の行は、from と to に意味が無い。**

        読む側は両方の世代のページに同じ行を出す。


        **空配列は「つながりを調べていない」で、「つながりが無い」ではない。**


        `lang` を付けると、両端の世代とシリーズの訳があり、理由を持つ行は理由の訳も

        ある行だけが返る (**日本語で埋めない**。#576)。逐語 (`source_excerpt`) は

        出典の文なので日本語のまま。'
      operationId: get_model_relations_api_model_relations_get
      parameters:
      - description: 世代IDでフィルタ
        required: false
        schema:
          type: string
          title: Model Id
          description: 世代IDでフィルタ
        name: model_id
        in: query
      - description: シリーズIDでフィルタ
        required: false
        schema:
          type: string
          title: Series Id
          description: シリーズIDでフィルタ
        name: series_id
        in: query
      - description: 訳を返す言語。省略すると日本語
        required: false
        schema:
          allOf:
          - $ref: '#/components/schemas/Lang'
          description: 訳を返す言語。省略すると日本語
        name: lang
        in: query
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetModelRelationsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/model-relations/kinds:
    get:
      tags:
      - model-relations
      summary: Get Model Relation Kinds
      description: 'つながりの種別のマスタ一覧 (**種別はこの口が返す行が正**)


        **表示名を持つのは DB だけ。画面はここから引く** (`/api/engineer-roles` と

        同じ形)。管理画面が `sibling` から「兄弟車」を組み立てると、種別を足した

        ときに backend と frontend の両方を直すことになる。


        配下に置けるのは、**この prefix に `/{id}` の口が無い**ため。マスタの行は

        数個で、閲覧者のページは引かない。'
      operationId: get_model_relation_kinds_api_model_relations_kinds_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetModelRelationKindsResponse'
components:
  schemas:
    ModelRelationResponse:
      properties:
        id:
          type: string
          title: Id
        kind:
          type: string
          title: Kind
        kind_name:
          type: string
          title: Kind Name
        kind_directed:
          type: boolean
          title: Kind Directed
        from_model:
          $ref: '#/components/schemas/ModelRelationEndpointResponse'
        to_model:
          $ref: '#/components/schemas/ModelRelationEndpointResponse'
        source_url:
          type: string
          title: Source Url
        source_excerpt:
          type: string
          title: Source Excerpt
        rationale:
          type: string
          title: Rationale
        provenance:
          type: string
          title: Provenance
        translation_source_url:
          type: string
          title: Translation Source Url
      type: object
      required:
      - id
      - kind
      - kind_name
      - kind_directed
      - from_model
      - to_model
      title: ModelRelationResponse
      description: '世代と世代のつながり、1行


        **同じシリーズの中の世代交代もここに入る** (issue #1254 §1 で #1229 の判断を

        覆した)。直系の置き場はこの行だけで、`models.start_year` の並びは後継を

        主張しない。**行が無い世代交代は「未確認」**で、後継がなかったことでは

        ない。`models.group` (画面では「系統」) は描画の列だけを表す。'
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    GetModelRelationKindsResponse:
      properties:
        kinds:
          items:
            $ref: '#/components/schemas/ModelRelationKindResponse'
          type: array
          title: Kinds
      type: object
      required:
      - kinds
      title: GetModelRelationKindsResponse
    GetModelRelationsResponse:
      properties:
        relations:
          items:
            $ref: '#/components/schemas/ModelRelationResponse'
          type: array
          title: Relations
      type: object
      required:
      - relations
      title: GetModelRelationsResponse
    ModelRelationEndpointResponse:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        chassis_code:
          type: string
          title: Chassis Code
        start_year:
          type: integer
          title: Start Year
        end_year:
          type: integer
          title: End Year
        series_id:
          type: string
          title: Series Id
        series_name:
          type: string
          title: Series Name
        maker_id:
          type: string
          title: Maker Id
      type: object
      required:
      - id
      - name
      - start_year
      - series_id
      - series_name
      - maker_id
      title: ModelRelationEndpointResponse
      description: 'つながりの端点。**シリーズではなく世代**


        「86 は BRZ の兄弟車」は初代と2代目のそれぞれで成り立っている別の事実で、

        シリーズを端点にすると、まだ出ていない次の世代にも同じ関係があるという、

        出典の無い主張が行に含まれる (issue #1229)。


        シリーズ名とメーカー id を添えているのは、画面が相手を「トヨタ 86 の

        初代 86」と書くのに `/api/models` を引き直さずに済ませるため

        (`EngineerModelResponse` が series_name を添えているのと同じ理由)。'
    ModelRelationKindResponse:
      properties:
        code:
          type: string
          title: Code
        name:
          type: string
          title: Name
        name_en:
          type: string
          title: Name En
        description:
          type: string
          title: Description
        directed:
          type: boolean
          title: Directed
      type: object
      required:
      - code
      - name
      - name_en
      - description
      - directed
      title: ModelRelationKindResponse
      description: 'つながりの種別のマスタ (`EngineerRoleResponse` と同じ形)


        表示名と説明を持つのは DB のマスタだけ。画面がコードから日本語を

        組み立てると、種別を足すたびに frontend も直すことになる。'
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    Lang:
      type: string
      enum:
      - en
      title: Lang
      description: An enumeration.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
x-refined-from:
- car-gene-com-openapi.json
- car-gene-com-openapi.yml