Soporte de The Movie Database

Is there a way to block what ratings are seen in api

5 respuestas (en la página 1 de 1)

Jump to last post

Hi jjcabinets,

When you say ratings, are you referring to country certifications like PG-13 in the U.S?

You can use the /discover method to filter movies by a country and certification but otherwise, no you would have to filter results locally.

What were you trying to achieve?

Im using this on a childs website and i would like to filter the content to like PG13 or G . only show those results .

Ya, so depending how you're up the data what I said above applies. If it's via search, you'll want to cache data locally and then filter things that way. There is no way to do this server side unless you're using the discover method.

do you have an example of a php code that could filter by discover mode?

No, I do not.

The raw query to (for example) filter movies that are rated PG and lower in the U.S., sorted by popularity looks like this:

http://api.themoviedb.org/3/discover/movie?api_key=###&sort_by=popularity.desc&certification_country=US&certification.lte=PG

Cheers.

¿No encuentras una película o serie? Inicia sesión para crearla:

Global

s centrar la barra de búsqueda
p abrir menú de perfil
esc cierra una ventana abierta
? abrir la ventana de atajos del teclado

En las páginas multimedia

b retrocede (o a padre cuando sea aplicable)
e ir a la página de edición

En las páginas de temporada de televisión

(flecha derecha) ir a la temporada siguiente
(flecha izquierda) ir a la temporada anterior

En las páginas de episodio de televisión

(flecha derecha) ir al episodio siguiente
(flecha izquierda) ir al episodio anterior

En todas las páginas de imágenes

a abrir la ventana de añadir imagen

En todas las páginas de edición

t abrir la sección de traducción
ctrl+ s enviar formulario

En las páginas de debate

n crear nuevo debate
w cambiar el estado de visualización
p cambiar público/privado
c cambiar cerrar/abrir
a abrir actividad
r responder al debate
l ir a la última respuesta
ctrl+ enter enviar tu mensaje
(flecha derecha) página siguiente
(flecha izquierda) página anterior

Configuraciones

¿Quieres puntuar o añadir este elemento a una lista?

Iniciar sesión