3
$\begingroup$

I am trying to create a Wolfram API that returns, for an input expression, how Wolfram Alpha interprets that input.

For example, given the string "1 plus 2", the API should return "1 + 2".

Locally, the following definition works.

api = APIFunction[{"expr" -> "String"}, First[WolframAlpha[#expr, "WolframForms"]] &]

However, when deploying it, using CloudDeploy[api], the result returned is always First[$Failure].

Why does the WolframAlpha function work locally, but not when used in CloudDeploy?

$\endgroup$
  • 1
    $\begingroup$ My guess it is a limitation of a license plan you have for Mathematica Online. You can ask Wolfram Support. $\endgroup$ – Kuba Oct 31 '18 at 19:54
  • $\begingroup$ @Kuba I see. Thanks! $\endgroup$ – ArVID220u Oct 31 '18 at 19:56
  • 2
    $\begingroup$ Otoh every plan has WA calls included :/ wolfram.com/development-platform/pricing you never know. There's a lot of confusion about what is possible, where and for how much. $\endgroup$ – Kuba Oct 31 '18 at 19:57
  • 1
    $\begingroup$ I have a license for Wolfram|One and this doesn't work. My impression is that WolframAlpha intentionally does not work in CloudDeploy under these circumstances. $\endgroup$ – Carl Lange Jun 11 at 17:17
  • 1
    $\begingroup$ Same issue appears when you do CloudEvaluate[WolframAlpha["1+1"]], for instance. $\endgroup$ – Carl Lange Jun 11 at 17:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.