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.
openapi: 3.2.0
info:
title: Fast Similar Videos API
version: 0.1.0
tags:
- name: Similar Videos
paths:
/v1/videos/{video_id}/similar:
get:
tags:
- Similar Videos
summary: Similar Videos
description: 'Fetch YouTube''s suggested/related videos for a given video ID. Each result is enriched with the channel''s subscriberCount, channelAvgViews, uploadFrequency, and outlierRatio (this video''s views over that channel average), so a genuine breakout is distinguishable from a big channel''s routine upload. Those keys are omitted for channels that can''t be resolved. Note: this rail is unfiltered by date, so an evergreen catalog video''s lifetime views get compared against the channel''s recent-uploads average — expect very high ratios on old videos.'
operationId: get_similar_videos_v1_videos__video_id__similar_get
parameters:
- name: video_id
in: path
required: true
schema:
type: string
title: Video Id
- name: limit
in: query
required: false
schema:
type: integer
maximum: 30
minimum: 1
description: Max suggestions
default: 10
title: Limit
description: Max suggestions
- name: X-API-Key
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Api-Key
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
responses:
'200':
description: List of similar videos
content:
application/json:
schema:
type: object
additionalProperties: true
title: Response Get Similar Videos V1 Videos Video Id Similar Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError