REST APIOpenAPI Spec
OpenAPI Spec
Machine-readable OpenAPI 3.1 specification for the Moviie REST API.
OpenAPI Specification
The Moviie API ships a machine-readable OpenAPI 3.1 specification, generated directly from our source code. It is always up to date.
Spec URL
https://api.moviie.ai/openapi.jsonImport into Postman
- Open Postman → Import.
- Select Link and paste
https://api.moviie.ai/openapi.json. - Click Import. All endpoints are ready to test.
- Set the
BearerAuthvariable to your API key.
Generate a TypeScript client
npx openapi-typescript https://api.moviie.ai/openapi.json -o moviie.d.tsThen use with openapi-fetch:
import createClient from 'openapi-fetch'
import type { paths } from './moviie'
const client = createClient<paths>({
baseUrl: 'https://api.moviie.ai',
headers: { Authorization: `Bearer ${process.env.MOVIIE_API_KEY}` },
})
const { data } = await client.GET('/v1/videos', {
params: { query: { limit: 24 } },
})