REST API Endpoints

To retrieve video data using the WordPress REST API, you can use the following endpoints:

Videos:

{yourdomain.com}/wp-json/wp/v2/wpvsvideos

Genres / Categories:

{yourdomain.com}/wp-json/wp/v2/wpvsgenres

TV Shows (Categories marked as TV Show)

{yourdomain.com}/wp-json/wp/v2/wpvsgenres?tvshows=1

Actors:

{yourdomain.com}/wp-json/wp/v2/wpvsactors

Directors:

{yourdomain.com}/wp-json/wp/v2/wpvsdirectors

Video Tags:

{yourdomain.com}/wp-json/wp/v2/wpvsvideotags

You can also access an individual Video, Genre or other term by adding its id at the end of the url.

Single Video:

{yourdomain.com}/wp-json/wp/v2/wpvsvideos/{id_of_video}

Single Genre:

{yourdomain.com}/wp-json/wp/v2/wpvsgenres/{id_of_term}

Single Actor:

{yourdomain.com}/wp-json/wp/v2/wpvsactors/{id_of_term}

Single Director:

{yourdomain.com}/wp-json/wp/v2/wpvsdirectors/{id_of_term}

Single Tag:

{yourdomain.com}/wp-json/wp/v2/wpvsvideotags/{id_of_term}