Soporte de The Movie Database

Hi, I'm using api to search for movies and actors in my personal blog. I've coded all I need in php but for 2 weeks performance is become a huge problem. For example for actor's page (here an example: https://www.kafaizni.org/test/kisi.php?id=85 ) I'm making arrays request via;

  • Person, in Turkish
  • Person, in English
  • Person images
  • Person movie credits

When I coded the page, in the begining, pages are fast as lightning but now I need to refresh page 4-5 (sometimes more) times to get all I request. And I changeg nothing. I'm not a proffesional coder and I'm not taking any cache copy . Every page request is instantaneous.

Are there any request limitation for API or do you recommend any coding tips/tricks to get data faster?

Thank you.

1 respuesta (en la página 1 de 1)

Jump to last post

Hi there,

As mentioned in the docs, we do impose rate limits which is probably what you're running up against. My suggestion to you would be to cache the data as you request it, that way you don't need to make multiple requests of the same data over and over. As time goes by, your cache will fill up and you'll be hitting our service less and less.

¿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 discusión

n crear nueva discusión
w cambiar el estado de visualización
p cambiar público/privado
c cambiar cerrar/abrir
a abrir actividad
r responder a la discusión
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