GET from rest API with javascript using Authentication headers

I never used Authentication headers with javascript when sending a GET request to a REST API before and i struggle finding anything helpful when searching. This is the API im trying to connect to, but unless you use Authentication headers you simply get the message "Authentication required"

As listed in the starting guide below i have an account along with an API key, but how do i use these to get a response from the API?

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum