Docs
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.json

Import into Postman

  1. Open PostmanImport.
  2. Select Link and paste https://api.moviie.ai/openapi.json.
  3. Click Import. All endpoints are ready to test.
  4. Set the BearerAuth variable to your API key.

Generate a TypeScript client

npx openapi-typescript https://api.moviie.ai/openapi.json -o moviie.d.ts

Then 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 } },
})

On this page