Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

351
Vistas
How to get more result than default ten results from API in node.js?

I have an simple express app. I want to get twenty results from API at each time. This is API http://www.omdbapi.com/ that i use. Whenever i make the call each time, i get ten results. How do i get twenty results for each call efficiently? This is my code:

exports.getMovieFromApi = async (req, res) => {

  const response = await axios.get(
    http://www.omdbapi.com/?apikey=${process.env.API_KEY}&s=${req.query.s}&page=${req.query.page}
  );
 
  res.status(200).json({
    data: JSON.parse(JSON.stringify(response.data)),
  });
};

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I don't think there is a parameter for page size. I can see that they have a n open ticket: https://github.com/omdbapi/OMDb-API/issues/221

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda