Having trouble calling ipfs API

Hi guys, could you please help me out here?

I try to call below API
https://ipfs.infura.io:5001/api/v0/get?arg=QmTAPNi45P849msKDEKQyzyoALe2ThAiPdoJqik48BQqUA
but I keep getting connection time out or the “invalid project Id or project secret”

pretty sure the username I input is the correct projectId and the password is the project secret. Am I doing it the wrong way?

I also tried another way to add a key-value in header (“authorization”, “Basic OGNiZmUzMTM1Y********NTliYmMxNTI1N2EyZjY0MDU=”)
but still failed with connetion time out.

also, I got the error below when trying to call:
https://ipfs.infura.io:5001/api/v0/object/data?arg=QmTAPNi45P849msKDEKQyzyoALe2ThAiPdoJqik48BQqUA

/api/v0/object has been removed, use /api/v0/dag instead

But the website still shows old api url…

1 Like

Colin,

Welcome and thanks for reaching out! if you are using Postman, try changing your “type” of authorization to API, add your project secret inside the value field.

Yes, we apologize about the outdated documentation. Use /dag instead. When calling try it this way:
https://ipfs.infura.io:5001/api/v0/cat?arg=QmTAPNi45P8

kind regards,
Alex | Infura Support | Consensys

1 Like