If you’re using this to retrieve JSON:
<cfhttp
authtype="basic"
username=#UserName#
password=#APIkey#
url="https://api.example.com/v2/getThings?page=1&page_size=10"
>
And find your response is JSON wrapped in a bare-bones HTML document, rather than just the JSON you were expecting, you might need to add a cfhttpparam accept tag to specifically reference application/json, like so:
<cfhttp
authtype="basic"
username=#UserName#
password=#APIkey#
url="https://api.example.com/v2/getThings?page=1&page_size=10"
>
<cfhttpparam type="header" name="Accept" value="application/json">
</cfhttp>