Correupted IPFS get?

I’m getting a lot of extra binary output on getting a particular file using Infura’s IPFS API, whereas other IPFS gateways give me the simple text of a file. Unsure if I’m using it wrong or something. Also not sure why the CID is in the content.

Here’s the file in particular:
https://gateway.ipfs.io/ipfs/QmX9rfasXtMep5quAyMU65Y98h7BebGtfuewwooMiok9eQ

This is the request I am trying:
https://ipfs.infura.io:5001/api/v0/get?arg=QmX9rfasXtMep5quAyMU65Y98h7BebGtfuewwooMiok9eQ

The gateway documented in Infura Documentation | Infura Documentation is https://ipfs.infura.io/ipfs/, so for your example this seems to work fine: https://ipfs.infura.io/ipfs/QmX9rfasXtMep5quAyMU65Y98h7BebGtfuewwooMiok9eQ

I believe the API documented at Infura Documentation | Infura Documentation is for querying IPFS metadata.

The equivalent call through that API would be: https://ipfs.infura.io:5001/api/v0/object/data?arg=QmX9rfasXtMep5quAyMU65Y98h7BebGtfuewwooMiok9eQ

(Edit: Bunch of edits :slight_smile: )