Ciné Series: Your Movie and TV Series Expert

Ciné Series: Your Movie and TV Series Expert · Acciones GPT

Trakt API

API for accessing information about TV shows and movies on Trakt.

  • GET /search/show?query={id}getQueryShows
  • GET /shows/{id}?extended=fullgetDetailsShows
  • GET /search/movie?query={id}getQueryMovies
  • GET /movies/{id}?extended=fullgetDetailsShows
Esquema original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "Trakt API",
    "description": "API for accessing information about TV shows and movies on Trakt.",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://api.trakt.tv"
    }
  ],
  "paths": {
    "/search/show?query={id}": {
      "get": {
        "operationId": "getQueryShows",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
"/shows/{id}?extended=full": {
      "get": {
        "operationId": "getDetailsShows",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/shows"
                }
              }
            }
          }
        }
      }
    },
   "/search/movie?query={id}": {
      "get": {
        "operationId": "getQueryMovies",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/movies/{id}?extended=full": {
      "get": {
        "operationId": "getDetailsShows",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/shows"
                }
              }
            }
          }
        }
      }
    },
  },
  "components": {
    "schemas": {
      "shows": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "poster": {
            "type": "string"
          },
          "runtime": {
            "type": "integer"
          },
          "genres": {
            "type": "string"
          },
          "overview": {
            "type": "string"
          },
          "trailer": {
            "type": "string"
          },
          "year": {
            "type": "integer"
          }
        }
      },
      "movies": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "poster": {
            "type": "string"
          },
          "runtime": {
            "type": "integer"
          },
          "genres": {
            "type": "string"
          },
          "overview": {
            "type": "string"
          },
          "trailer": {
            "type": "string"
          },
          "year": {
            "type": "integer"
          }
        }
      }
    }
  }
}

fanart API

API for accessing information about TV shows and movies on Trakt.

  • GET /movies/{id}getDetailsMovies
  • GET /tv/{id}getDetailsTv
Esquema original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "fanart API",
    "description": "API for accessing information about TV shows and movies on Trakt.",
    "version": "v1.0.0",
    "condition": {
      "language": "fr"
    }
  },
  "servers": [
    {
      "url": "https://webservice.fanart.tv/v3"
    }
  ],
  "paths": {
    "/movies/{id}": {
      "get": {
        "operationId": "getDetailsMovies",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/movies"
                }
              }
            }
          }
        }
      }
    },
    "/tv/{id}": {
      "get": {
        "operationId": "getDetailsTv",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/tv"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "movies": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "tvposter": {
            "type": "string"
          }
        }
      },
      "tv": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "tvposter": {
            "type": "string"
          }
        }
      }
    }
  }
}