Weather.gov API giving error

The National Weather Service has an API for extreme weather alerts. I can plug it into my browser (https://api.weather.gov/alerts/active?status=actual&message_type=alert&region_type=land&limit=5) and get the JSON, no problem. When I input into Bubble’s API Connector and initialize, I get:

There was an issue setting up your call.

undefined error: this header name is not correct undefined

I have set the headers to the requirements stated on the API website:

What am I missing? Thank you for any ideas.

Looking at weather.gov site, I see the following

Seems to imply that User-Agent must have data that looks like xxx.com, contact@xxx.com

For ContentType, are they asking for something else?

The key may be “Accept” and not “ContentType”.

I have not read the detailed API documentation. Maybe I am mistaken but why not give this a try instead.

Good ideas. Thank you!

I have just tried “User-Agent” and “UserAgent” with different formats for the requested contact info (www.website.com, email@website.com)

I also tried “Accept” instead of “ContentType”.

No luck so far…

Hi Jon

I managed to get it to work. Screen capture below:

You need to give them User-Agent in the form of (your application domain name, your contact email)

The return result below:

You saved the day! Thank you so much.
I noticed you opted for cap+xml format. I had to enter this as a new API. Editing the old one still didn’t work. Cookie issue? Anyway. All good now.

Thank you for your help.

Glad it works out.

If you wanted GeoJson you need to give it “application/geo+json”.