Every API is different, there’s no single way to provide an API key. It’s up to the designer of the API. So we can’t tell if your code fetches the JSON as intended unless you share a link to the API documentation.
The code has another potential problem as-well; the variable spid
may not be available when draw
is called. (Like I mentioned last time.) You can see one possible solution to that problem in the documentation (the code right below the comment // wait until the data is loaded
).