Short Answer with Detail Fallback
A 2-step recipe with Wolfram|Alpha. We can help you get access.
Recipe · 2 steps
Short Answer with Detail Fallback
with Wolfram|Alpha
Try the Short Answers API first, then fall back to Full Results when no short answer exists.
- Ask the Short Answers API for a single concise plain-text answer to the query. A 200 means a short answer is available; a 501 means none exists.
- When the Short Answers API has no concise answer, request the complete Full Results pods in JSON so the caller still receives a detailed result.
What you'll need to have ready
- appid: Wolfram|Alpha AppID used to authenticate every request.
- input: The natural language query to answer (e.g. "How far is the Moon from Earth?").
- units: Measurement system preference, either metric or imperial.
- timeout: Maximum processing time in seconds for each query.
For your developer
Arazzo workflow wolframalpha:short-answer-with-detail-fallback, 2 operations: queryShortAnswer → queryFullResults. Specs on APIs.io.