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

109
Vistas
Same nextPageUrl in flipkart API pagination
let axios = require('axios')

let getShipmentDetails = async (url) => {

        var res = await axios({
            method: 'post',
            url: url,
            headers: { Authorization: "<Bearer token>"},
            data: {
                "filter" : {
                    "type" : "postDispatch",
                    "states" : ["Delivered"],
                    "orderDate" : {
                        "from" : "2022-03-02",
                        "to" : "2022-03-10"
                    }
                }
            }
        })

        if (res['data']['hasMore'] == true) {
            var newurl = "https://api.flipkart.net/sellers"+res['data']['nextPageUrl'];
            console.log(newurl)
            let more = await getShipmentDetails(newurl)
            return res['data']['shipments'].concat(more);
        }
        else {
            console.log(res['data'])
            return res['data']['shipments']
        }
}

getShipmentDetails("https://api.flipkart.net/sellers/v3/shipments/filter/")
.then(result => {})

The newUrl is same everytime. I cannot able to access content of next page in results.

Documentation

res['data']['nextPageUrl'] = /v3/shipments/filter?next_token=ewogICJmaWx0ZXJUeXBlIiA6ICJwb3N0RGlzcG......GF0ZSIgOiAib2FwaV9wb3N0X2Rpc3BhdGNoIgp9

about 4 years ago · Santiago Gelvez
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