Let’s play with the enrichment feature of the Clearbit API!
Clone the app and run it with:
yarn
webpack-dev-server
- Sign up on Clearbit to get an API key (you can use a temporary email for that)
- Check how authenticathion works for this specific API, and remember you can pass HTTP Headers to
fetch
:
fetch(url, {
headers: {
'User-Agent': 'Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20100101 Firefox/15.0.1',
},
// ...
})
Once you are done with your version, you can check another possible solution in the clearbit
branch.