{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://apizie.tech"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/movie:tvmaze/cast/{id}":{"get":{"operationId":"movie_tvmaze_cast","summary":"Cast","description":"Main cast of a show with the characters they play.","tags":["movie"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"example":"526"},{"name":"page","in":"query","required":false,"description":"1-based page number","schema":{"type":"integer","default":1,"minimum":1,"maximum":100,"description":"1-based page number"}},{"name":"count","in":"query","required":false,"description":"Items per page","schema":{"type":"integer","default":50,"minimum":1,"maximum":200,"description":"Items per page"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":3600,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/movie:tvmaze/episode/{id}":{"get":{"operationId":"movie_tvmaze_episode","summary":"Episode","description":"One episode by TVmaze episode id.","tags":["movie"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"example":"1"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":3600,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/movie:tvmaze/episodes/{id}":{"get":{"operationId":"movie_tvmaze_episodes","summary":"Episodes","description":"Episode list of a show, optionally limited to one season.","tags":["movie"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"example":"526"},{"name":"season","in":"query","required":false,"schema":{"type":"integer","minimum":0}},{"name":"page","in":"query","required":false,"description":"1-based page number","schema":{"type":"integer","default":1,"minimum":1,"maximum":500,"description":"1-based page number"}},{"name":"count","in":"query","required":false,"description":"Items per page","schema":{"type":"integer","default":50,"minimum":1,"maximum":200,"description":"Items per page"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":3600,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/movie:tvmaze/person/{id}":{"get":{"operationId":"movie_tvmaze_person","summary":"Person","description":"One person by TVmaze id.","tags":["movie"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"example":"1"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":3600,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/movie:tvmaze/schedule":{"get":{"operationId":"movie_tvmaze_schedule","summary":"Schedule","description":"Episodes airing on a given day for a country (broadcast TV) or on streaming services (web).","tags":["movie"],"parameters":[{"name":"country","in":"query","required":false,"description":"ISO country code","schema":{"type":"string","default":"US","description":"ISO country code"}},{"name":"date","in":"query","required":false,"description":"YYYY-MM-DD, defaults to today","schema":{"type":"string","description":"YYYY-MM-DD, defaults to today"},"example":"2024-01-15"},{"name":"web","in":"query","required":false,"description":"Use the web/streaming schedule","schema":{"type":"boolean","default":false,"description":"Use the web/streaming schedule"}},{"name":"limit","in":"query","required":false,"description":"Items per page","schema":{"type":"integer","default":100,"minimum":1,"maximum":500,"description":"Items per page"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":900,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/movie:tvmaze/search":{"get":{"operationId":"movie_tvmaze_search","summary":"Search","description":"Find TV shows and/or people by name.","tags":["movie"],"parameters":[{"name":"q","in":"query","required":true,"description":"Search text","schema":{"type":"string","description":"Search text"},"example":"the office"},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["all","show","person"],"default":"show"}},{"name":"limit","in":"query","required":false,"description":"Items per page","schema":{"type":"integer","default":10,"minimum":1,"maximum":50,"description":"Items per page"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":3600,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/movie:tvmaze/show/{id}":{"get":{"operationId":"movie_tvmaze_show","summary":"Show","description":"Full details for one show by TVmaze id.","tags":["movie"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"example":"526"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":3600,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}