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

314
Vistas
Reading JSON from IPFS IMPOSSIBLE?

I'm attempting to get the JSON object from a known ipfs link. When I use a function like $.getJSON() or node-fetch I am greeted with an error telling me I can only use http. I've searched around for hours now and found nothing on this. Thanks!

Example IPFS link: ipfs://bafybeignop35wemk2eu2z34qurwusjeuri6unpyzrzeetmxs4hrwksq7dq/?filename=tokenURI.json

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

0

That function will not work through the IPFS protocol ipfs://. The quickest and dirtiest way to get that JSON file is to use a trusted public gateway.

You'll find the list of public gateways via the link below.
https://ipfs.github.io/public-gateway-checker/

The most important bit of information in that link is your CID that might refer to a folder or a single file. You can link to your JSON file with that CID using any of these public gateways.

e.g.; https://ipfs.io/ipfs/bafybeignop35wemk2eu2z34qurwusjeuri6unpyzrzeetmxs4hrwksq7dq/?filename=tokenURI.json

Please note that these gateways are not there to use in any production environment. They usually come with restrictions such as rate-limiting.

You can read more here:
https://docs.ipfs.io/concepts/ipfs-gateway/#can-websites-rely-on-the-ipfs-io-gateway-for-hosting

I also recommend you this article they have, you'll better understand the whole concept.
https://docs.ipfs.io/concepts/ipfs-gateway/#gateway-providers

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