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

147
Vistas
Obtain the redirected url Javascript/React/NextJS

I have a url that redirects to a second url, and I want to be able to access the second redirected url. If I paste the url into my browser and open Chrome Dev Tools, I can see the redirected url in the Response Headers.

Image of redirect url in Chrome Dev Tools

I can also see the redirect url in Terminal with curl. Image of curl GET request/response

However, performing a regular GET request using Postman I am unable to access the response headers, and making a GET request in axios returns an error.

export const getTikTokRedirectLink = async () => {
  try {
      const finalUrl = 'https://www.tiktok.com/t/ZTRemVWYt/?k=1';

      const response = await axios.get(`${finalUrl}`);

      console.log(response);

      return response.data;

  } catch(error) {
      const result: IAPIResponse = {
          data: null,
          hasError: true,
      };
      console.log('Error:' , error);
      return result;
  }
};

How can I get access to the redirect url https://www.tiktok.com/@shopmybazar/video/7094675643446807854?_t=8TYGqYqaUSA&_r=1 using the input url https://www.tiktok.com/t/ZTRemVWYt/?k=1?

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

0

Are you passing all the required request headers? You can check same in the image .

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