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

225
Vistas
How to call the Serapi from a project - localhost in Nodejs and Angular

How can I call the URL?

node-controller.js

const SerpApi = require('google-search-results-nodejs');
const search = new SerpApi.GoogleSearch("serpApi-key");

const params = {
  api_key: "secret_api_key",
  q: "Coffee",
  location: "Austin, Texas, United States",
  hl: "en",
  gl: "us",
  google_domain: "google.com"
};
const callback = function(data) {
  console.log(data);
};

  
router.post('/seekSearchApi/serpapi.com/search.json', seekSearchApi);
 module.exports = router;
function seekSearchApi(req, res) { 
search.json(params, callback);
}

server.js

var express = require ('express');
var app = express();
app.use('/seekSearchApi/serpapi.com/search.json', require('./server/nodejs-serverapi'));

I tried to call the API using various URLs like -

http://localhost:3003/serpapi.com/search.json/?q= "Coffee",&location= "Austin, Texas, United States",&hl= "en",&gl= "us",&google_domain= "google.com"

But it did not work. What can I try next?

about 4 years ago · Juan Pablo Isaza
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