NASA Node: "Get a DONKI solar flare" returns HTML page instead of JSON due to NASA API migration`

I was following the tutorial “Build your first workflow” Build your first workflow | n8n Docs and could not continue due to the nasa donki solar flame node returning an array of values.

Describe the problem/error/question

Execute the “Get a DONKI solar flare” node. It returns HTML page from the NASA CCMC Announcements page.
Root Cause: NASA migrated the DONKI system backend on the 30th of September CCMC Announcements | NASA CCMC

What is the error message (if any)? n/a

Please share your workflow

Same as step 3 in the tutorial

Share the output returned by the last node

[
  "<!DOCTYPE html><html><head><meta charSet=\"utf-8\"/><meta name=\"viewport\" content=\"width=device-width\"/><title>CCMC Announcements | NASA CCMC</title><meta name=\"description\" content=\"NASA&#x27;s Community Coordinated Modeling Center (CCMC) provides free access to space weather models, simulation runs-on-request, real-time space weather predictions, visualization tools, and model validation for the research community.\"/><meta property=\"og:site_name\" content=\"NASA CCMC\"/><meta property=\"og:title\" content=\"CCMC Announcements\"/><meta property=\"og:description\" content=\"NASA&#x27;s 
...

Cutting output due to char limit

Information on your n8n setup

  • n8n version: 2.41.7
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker compose
  • Operating system: Windows (running on WSL)

Hi @AlessandroR Welcome! The NASA node in 2.41.7 still calls the old DONKI endpoint. Replace just that node with an HTTP Request node.

Set Method to GET, Authentication to None, and URL to:
https://ccmc.gsfc.nasa.gov/DONKI-API/get/FLR

Turn on Send Query Parameters and add startDate. Set its value to Expression:
{{ $now.toUTC().minus({ days: 7 }).toISODate() }}

Under Options > Response, set Response Format to JSON and leave Include Response Headers and Status off. No NASA API key is needed for this endpoint.

Connect it to your existing If node. Each flare comes out as a separate item with classType, so you can continue the tutorial without changing that condition.

@Anshul_Namdev’s HTTP Request swap works. I ran it on a test workflow and each flare comes back as its own item with classType, so the tutorial’s If node works without changes.

One thing that can still catch you out: the If node only gets items when there were flares in the date window. If the sun has been quiet for the last 7 days, the request returns no items and the rest of the tutorial looks broken even though it isn’t. While you’re learning, use a wider window:

{{ $now.toUTC().minus({ days: 30 }).toISODate() }}

Here’s the node, ready to paste between your trigger and the If node:

The built-in NASA node still calls the old DONKI URL, which now forwards to the CCMC announcements page. That’s why you got a single HTML string. Please open an issue on the n8n GitHub repo so the node and the Build your first workflow tutorial get updated for everyone who hits this.