Headers from API

I’m having trouble getting the header data using the API. I found this link in the docs, but I, unfortunately, can’t figure it out. If anyone could point me in the right direction, I would appreciate it.

Thanks!