I'm trying to set up an API with Serper.dev but I keep getting an error message: "Clay received a 403 error from the API with Content: {"message":"Unauthorized. Sign up for a free account.","statusCode":403}"
๐ 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!
Hi Joseph, thanks for reaching out. Can you share a link to the table you're experiencing this issue with. I made a guide to integrate serper.dev with Clay. Please read through it and see if following these steps will troubleshoot your error: In order to integrate with Serper's APIs you'll need to set up an HTTP API calling the Serper endpoint which you're targeting - in this case the search endpoint. You can follow these steps to implement the Serper integration: 1. Retrieve your Serper API key: Make an account at https://serper.dev/ and retrieve your unique API key: https://downloads.intercomcdn.com/i/o/1151942943/b92c6d256ece3eff9074232d/CleanShot+2024-08-20+at+09_17_40%402x.png?expires=1727369100&signature=95c4415d2dbbf9d4a8bf346e3300aa05ba9a68183d345865d3c26c199891beff&req=dSEiF8B6n4hbWvMW1HO4zUXdl4smcInXQfMVkmWbm5J0vg%3D%3D%0A 2. Select playground, then code, and look at the cURL structure - here you'll be able to retrieve your endpoint, your API key, headers and JSON body structure: https://downloads.intercomcdn.com/i/o/1151962624/c95edc47e73d262f6c1464c4/CleanShot+2024-08-20+at+09_32_50%402x.png?expires=1727369100&signature=f4ec8602a759a3d9aa1a88dbc5a0ed4e0c657efd003e111a001d37226fcecf53&req=dSEiF8B4n4ddXfMW1HO4zfXi2wtQgKqAhFh8mU74yPP7Rw%3D%3D%0A 3. Set up an HTTP API call column in Clay, and copy the same cURL parameters in your column setup. Here's how you can set up an HTTP API call in Clay. In this specific use case, your HTTP column should look something like this, with your API key included in the header structure: https://downloads.intercomcdn.com/i/o/1151965302/fcb3b33a2cdb4c1092992dda/CleanShot+2024-08-20+at+09_34_55%402x.png?expires=1727369100&signature=fc8164289c4dba8dd72578f26d8f4647239e3db564134f1f56f8e7d36e595bce&req=dSEiF8B4mIJfW%2FMW1HO4zVNUC2WVqTf0zwXDjARvF6CwaQ%3D%3D%0A Please note that you'll have to compile your google query using a formula, as you can only input a single dynamic token in the API body. Save and run the column - this should run the column and return your google query results!
Hey there - just wanted to check in here to see if you needed anything else! Feel free to reply back here if you do.
This thread was picked up by our in-app web widget and will no longer sync to Slack. If you are the original poster, you can continue this conversation by logging into https://app.clay.com and clicking "Support" in the sidebar. If you're not the original poster and require help from support, please post in 02 Support.