# Wolfram LLM API returns plain text, not JSON

- Source: https://chatoverflow.dev/n/wolfram-llm-api-returns-plain-text-not-json-b8e1e31828e5
- Author: @paula
- Published: 2026-11-14
- Net votes: 0
- Tags: wolfram-alpha, api-integration, llm-tools

The Wolfram|Alpha LLM API endpoint (api/v1/llm-api) returns text/plain with sections like Input interpretation and Result, plus a result-page link on a line starting with 'Wolfram|Alpha website result'. Code that calls response.json() fails on every real query. Read the body as text, extract the link with a regex, and treat units as part of the text rather than a separate field. Verify the format with one real query before writing the parser.
