Questions tagged [apifunction]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
38 views

Instant API and cloud deploy not updating correctly

I set up an API and cloud deployed it to get the current weather in my city with ...
user avatar
  • 145
6 votes
1 answer
136 views

Can I Import data into Google Spreadsheet using a Wolfram Cloud API?

I would like to use the IMPORTDATA Google Sheets function to load a Wolfram Cloud API into my Spreadsheet. How can I do that?
user avatar
  • 25.3k
2 votes
0 answers
51 views

Is there a feasible way to passively crosscheck sequences against the OEIS database?

What this questions is not: Can I access OEIS from Mathematica? This topic has been raised more than once and has been well addressed. Here's the situation as it seems to me: OEIS is a tremendously ...
user avatar
  • 611
2 votes
1 answer
99 views

Deploying A Classifier Function

Let's say we train a classifier on the titanic dataset cl = Classify[ ResourceData["Sample Data: Titanic Survival"] -> "SurvivalStatus"] ...
user avatar
  • 747
5 votes
1 answer
124 views

Build API Function

If I want to create an API function that takes two numbers a and b and returns an image. This image is supposed to be dynamically embedded on a web page that collects a and b and passes the values to ...
user avatar
1 vote
1 answer
43 views

CloudDeploy DataSet does not work

I'm getting the following error when the code bellow is CloudDeployed: ...
user avatar
  • 21
3 votes
0 answers
116 views

APIFunction with TextRecognize problems

I have a simple API that takes a recipe and returns the list of ingredients: ...
user avatar
  • 30.3k
0 votes
1 answer
57 views

How to CloudDeploy an Association as an API

A basic example for APIFunction[] is doubled = APIFunction[{"x" -> "Real"}, #x*2&]; doubled["x"->6.5] which shows ...
user avatar
  • 31
1 vote
0 answers
43 views

Use Wolfram Cloud to Create Site Visitor Database

Question: Is there a way to use Wolfram Cloud to create a web API function that, when pinged, does the following: Gets the geographical location of the user (as an Wolfram entity, like ...
user avatar
  • 2,975
4 votes
1 answer
103 views

How to return JSON from APIFunction without string encapsulation?

I am trying to get an APIFunction to send valid JSON. This is my demo function. ...
user avatar
  • 29.1k
2 votes
1 answer
66 views

How can I deal with a 502 error? [closed]

I am working on a program that interfaces with a web API. Mathematica runs perfectly fine for a few hours and then, after a while, will sometimes return: The request to URL https://api.polygon.io/...
user avatar
  • 1,397
1 vote
0 answers
56 views

what is equivalent of dataset when using with APIFunction? [duplicate]

I am researching on building a backend for website using Wolfram. APIFunction is great to use, but I can't figure out how should I store data like using dataset in a local notebook when using ...
user avatar
1 vote
1 answer
64 views

Is there any logging for cloud deployed API? If yes, how to check those?

I am testing using CloudDeploy[APIFunction[...]]. I can not find any info about real time logging. If there is any problem happening with the cloud deployed API,...
user avatar
2 votes
1 answer
110 views

How to pass parameter to an API function?

I have a very simple question. I don't know how to pass multiple parameters to a web deployed APIFunction. I created a function: ...
user avatar
  • 21
15 votes
3 answers
591 views

How to set ZeroMQ subscribe channel in Mathematica?

Mathematica 11.2 can do ZMQ socket programming now! But I cannot find out how to set subscribe channel from searching the doc. When using c language there is a function ...
user avatar
  • 261
5 votes
1 answer
436 views

APIFunction can not access HTTP request body when used with URLDispatcher

I noticed a strange behavior regarding the APIFunctionwhen used with URLDispatcher. It does not allow me to access the body of a ...
user avatar
  • 14.2k
5 votes
1 answer
82 views

How to create an APIFunction that takes a list with constraints on the list elements?

This APIFunction takes a list as an argument: ...
user avatar
8 votes
1 answer
335 views

Cloud Deploying a Scheduled Task

cross-posted on the Wolfram Community forum I am trying to deploy a ScheduledTask that monitors the state of a google spread sheet every hour. I want the object to ...
user avatar
3 votes
0 answers
169 views

APIFunction calling another API

I've built a set of Wolfram APIs that call another API which builds specific queries given the parameters of a database and then outputs that query for the client in the query language syntax. Using <...
user avatar
8 votes
1 answer
352 views

How to authenticate in Wolfram Cloud created API?

Maybe this is stupid, but lets take a look at the following scenario: I created an API in Wolfram Cloud and deployed it with private permissions. However, I can't access it from the autogenerated code ...
user avatar
6 votes
1 answer
290 views

How to make APIFunction accept parameters from body?

How to make APIFunction get its parameters from the body? By default it uses the request URI, which is first insecure, and second, won't allow me to pass e.g. ...
user avatar
2 votes
1 answer
166 views

How to return multiple types in APIFunction?

I'd like to publish an api that returns an image as well as a number, but it seems that the docs for APIFunction specifies only a single possible format type: Here's an example to play with: ...
user avatar
  • 30.3k
7 votes
2 answers
293 views

Build API without the WolframCloud?

I'd like to have my code and api deployed, but not to the Wolfram Cloud. I have a an APIFunction, and I'd like to CloudDeploy it ...
user avatar
  • 30.3k
5 votes
1 answer
829 views

Calling APIFunction from Javascript

I want to load a csv file describing a graph from jQuery and call an APIFunction to evaluate its global clustering coefficient. I'm not sure on how to call the APIFunction from the html form. I'm ...
user avatar
  • 2,283