Clay Icon

Troubleshooting API Requests: Dealing with Unexpected Data Responses

·
·

Am I doing something wrong? I'm doing a simple API request and getting a ton of random data back.

  • Avatar of Channeled
    Channeled
    APP
    ·
    ·

    👋 Hey there! Our support team has got your message - we'll be back in touch within 24 hours (often sooner!). If you haven't already, please include the URL of your table in this thread so that we can help you as quickly as possible!

  • Avatar of Vlad M.
    Vlad M.
    ·
    ·
  • Avatar of Bo (.
    Bo (.
    ·
    ·

    Hey, thanks for reaching out! I’m checking your table, but I can’t seem to find that call. Could you point me to where it’s happening? Please provide the Table URL and the Row #, and I’ll take a closer look 😊.

  • Avatar of Vlad M.
    Vlad M.
    ·
    ·

    sent in DM

  • Avatar of Bo (.
    Bo (.
    ·
    ·

    Hey, got it—thanks! Feel free to send it here next time; it’s secure, and no one else will have access. Out of curiosity, which specific enrichments are you trying to pull? You can refer to the documentation here: Whois XML API. As for the issue this is because you're receiving a Buffer instead of readable content, it’s due to the API returning data in XML rather than JSON. This can happen if the outputFormat parameter isn’t set or if the default is XML. Solution: • Verify the response format—if it’s XML, either parse it as XML or specify "JSON" as the outputFormat and in the Body in your request. • Test the request in Postman to ensure everything’s formatted correctly. • Once it’s working as expected, you ca integrate it into Clay. Let me know if you need any more help! 😊

  • Avatar of Vlad M.
    Vlad M.
    ·
    ·

    Got it! Switched the output format to JSON and that fixed it. I'm looking up when these domains were registered to see the age of the website

  • Avatar of Channeled
    Channeled
    APP
    ·
    ·

    We haven't heard back from you in a bit, so we're going to go ahead and close things out here - feel free to let us know if you still need something!

  • Avatar of Channeled
    Channeled
    APP
    ·
    ·

    Hi Vlad M.! This thread was recently closed by our Support team. If you have a moment, please share your feedback: