Questions tagged [api]
The api tag has no usage guidance.
55
questions
0
votes
0
answers
50
views
How to use JLink to connect and read data from Tableau Hyper using Hyper API?
First of all, here is the link to download the API for Java for Windows.
I initially wanted to use NETLink since I have some experience with it but they have ...
2
votes
0
answers
122
views
How to get satellite image directly from Mathematica?
First, I get the image of the bands of the desired area from the site https://earthexplorer.usgs.gov/, then I import the images into Mathmatica by addressing them as below:
Select dataset directory:
<...
1
vote
1
answer
100
views
Is there any Mathematica API for Z3?
Z3 has bindings for various programming languages, e.g., C, C++, Java, Python, and so on. Are there any for Mathematica? Or how to implement one?
1
vote
1
answer
376
views
Format of api call for Open AI chat completions endpoint
I've been using MMA (v13.1.0) to experiment with various apis provided by OpenAI (https://platform.openai.com/docs/api-reference). For example, OpenAI provides a chat completion endpoint using the '...
0
votes
1
answer
74
views
Error "cannot find the required native library named JLinkNativeLibrary"
I have a problem running my test program on linux. I want to connect to mathematica kernel using java API. On windows, I put both jlink.jar and JLinkNativeLibrary.dll next to my executable file, let's ...
0
votes
0
answers
74
views
Can I connect to Cloud API using Java code?
I have a Java program that connects to a Mathematica Kernel, installed on my computer. I am able to call the APIs and receive the expression results, like to the code below. But is there any cloud ...
0
votes
0
answers
42
views
How can we change the EoS (to PR using the Flags function) for REFPROP used within Mathematica?
I would like to change the EoS used by REFPROP to the PR EoS for several calculations.
It's stated that the Flags function must be used.
"
Peng-Robinson or PR 0: Turn off the Peng-Robinson ...
0
votes
1
answer
94
views
How to obtain stock information from a website
I want to obtain some information of stock markets from TradingView website.
For instance, let us access to S&P index chart through the URL,
https://www.tradingview.com/chart/?symbol=SP%3ASPX
Now, ...
0
votes
1
answer
50
views
Combine multipage API results in Mathematica
Updated to show more code
Can't seem to find a good post/answer to this so I'm asking the question.
I'm pulling data from the Swarm/Foursquare API, and it's paged (max 250 results per pull):
...
4
votes
1
answer
68
views
How to specify the type/Head of the optional named arguments to a function?
I am trying to improve my own dsolver API. Currently it takes optional arguments.
Is it possible to specify that an optional argument should say be String only? Or List Only? Or Integer only? and so ...
0
votes
0
answers
45
views
ServiceConnect with Instagram [duplicate]
WRI has told me they don't support Instagram anymore due to their change in privacy policy. Instagram still remains in $Services.
I came across this and was ...
3
votes
2
answers
95
views
Character encoding of the output from URLExecute
Bug persisting through 13.1.0 [CASE:4932406]
I'm using URLExecute to fetch some data from the arXiv preprint server
but it seems that the encoding of the text I ...
1
vote
2
answers
997
views
Getting stock quotes from Yahoo Finance API in Mathematica
I have obtained a Yahoo Finance API key and would like to try it out by making a simple request from within Mathematica. Their tutorial page has some nice little example code snippets in various ...
0
votes
0
answers
43
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
...
0
votes
0
answers
54
views
taking a mathematica notebook on the cloud, mathlink applications, data file input and turning it into an API
I have several mathematica applications, usually made of a single notebook calling several .m files and usually importing data from some datafiles (.txt) and linking some external mathlink ...
2
votes
0
answers
70
views
Creating an online interactive interface
I want to cloud deploy a dynamic interface on which I have multiple types of widgets for different parameters and where, upon the click of a button, I send a list of arguments to a certain function, ...
2
votes
0
answers
116
views
BlockchainBlockData request limit exceeded
I'm trying to replicate this Blog entry on Bitcoin queries:
https://blog.wolfram.com/2021/05/25/sleuthing-darkside-crypto-ransom-payments-with-the-wolfram-language/
However, I don't get very far ...
3
votes
1
answer
184
views
Deploying A Classifier Function
Let's say we train a classifier on the titanic dataset
cl = Classify[
ResourceData["Sample Data: Titanic Survival"] -> "SurvivalStatus"]
...
6
votes
1
answer
683
views
Is anyone aware of Mathematica implementation of OpenAI's GPT-3 API?
Is anyone aware of Mathematica's implementation of OpenAI's GPT-3 API?
0
votes
0
answers
31
views
How to specify authenticity of SSL for querying APIs?
While ago I was using this command with no issue, now I have an SSL error:
...
1
vote
1
answer
76
views
How to pass a URL parameter to FormPage?
I'm trying to pass a parameter on a FormPage. I know that passing parameters on a APIFunction works, like:
https://wolframcloud.com/...?x=5&y=10
But, I see no ...
5
votes
1
answer
150
views
How to enable WakaTime for the Mathematica front end?
WakaTime is a tool for logging one's coding activities, and now have amazing coverage for code editors. Although I write Wolfram in VS Code, I still spend a lot of time tweaking and testing in the ...
0
votes
0
answers
46
views
When I insert an if block into the ScheduledTask, I'm entering the password and the program is closing
I'm new in Mathematica. So I'm unable to settle a matter. When I insert an if block into the ScheduledTask, I'm entering the password and the program is closing. What is my mistake? Can you help me ...
9
votes
1
answer
225
views
Generating Google BigQuery API Access Token in Wolfram Language
I'm working on a Wolfram Language Package to connect into Google Bigquery (that I'll make public available). In order to finish It, I need to solve a last step, that is how to get an authentication ...
1
vote
1
answer
481
views
Accessing Nutritionix API
I'm working on a project to build a graph based on nutritional elements of common foods. A popular source of this information is Nutritionix, which provides data via a set of APIs. I'm using MMA (v12....
3
votes
0
answers
131
views
APIFunction with TextRecognize problems
I have a simple API that takes a recipe and returns the list of ingredients:
...
2
votes
1
answer
60
views
Authentication dialog triggered by URLExecute in Wolfram player does not allow me to type in username/password
I have exploration tool that reaches out to elasticsearch for data from a Manipulate call. The idea is to share a notebook with some support folk and they can ...
2
votes
1
answer
132
views
Cannot submit valid form in FormFunction
I have a simple FormFunction like this:
FormFunction[{"expr" -> ToExpression}, HTTPRequestData[] &]
When I use ...
1
vote
1
answer
199
views
How to download user faves on Flickr?
The Flickr service API doesn’t seem to have the getfavorites() request implemented. Is there an good way to do this with WebExecute?
Code to get started with:
For ...
1
vote
1
answer
70
views
Where does Wolfram publish an index of built-in functions on the web? [duplicate]
Where is a online reference for the built-in functions of Mathematica/Wolfram?
2
votes
0
answers
117
views
How to use EmbedCode with CloudDeploy correctly?
I ran EmbedCode[CloudDeploy[Manipulate[Plot[Sin[x + c], {x, -6, 6}], {c, -1, 1}]]] based on this instruction and obtained the html code for embedding as below:-
<...
3
votes
1
answer
219
views
How to make an API with CloudDeploy to download an image into the local disk?
Actually related question 127248. But in that post, the answer from Kuba suggest provide a URL for API-user. But I still hope the API can output the file into the local disk directly. Is it possible?
...
2
votes
1
answer
75
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/...
2
votes
0
answers
624
views
Is there a API to scrape WhatsApp?
Is there an API to scrape WhatsApp messages into Mathematica? Either doing it directly in Wolfram Language or using some python API and WL's ExternalEvaluate.
All ...
6
votes
0
answers
198
views
Can I use Mathematica and the Google BigQuery API
I would like to query a large public dataset hosted in Google BigQuery using the Google BigQuery API. I notice there are client libraries for C#, Go, Java, PHP, Python, and Ruby along with examples ...
2
votes
1
answer
115
views
How to pass a list to APIFunction?
My problem is I have a list of 170 values. To use API function, I had to represent these values by 170 parameters (not the most elegant thing). My question is, can I pass a list to APIFunction, or ...
2
votes
0
answers
45
views
Deploy APIFunction on my server? [duplicate]
I have an APIFunction and I would l like to serve it from my own machine. I already have a license and an AWS account and I don't want to pay cloud credits or run my code on someone else's hardware. ...
0
votes
0
answers
614
views
HTTPRequest and Verbose cURL (curl -vX ...)
Using CouchDB, Windows 10, M11.3
This curl command works fine at the command line,
curl -X PUT http://127.0.0.1:5984/dbName
and this works fine with
...
6
votes
0
answers
180
views
Connecting to Twitter API Manually in Mathematica to Pull Down All Followers of a Specified User (e.g. More than 5,000)
I have been going through old StackExchange threads to see how to potentially use Mathematica's built-in connection/authentication to the Twitter API to connect to it manually, and access some ...
2
votes
0
answers
57
views
connecting to an existing application's C API from Mathematica
I have a general question about accessing the contents of an existing application's C API (https://libfive.com/) from Mathematica.
Can it be done, and some hints on how?
I am about to embark on ...
7
votes
1
answer
131
views
How to CloudDeploy an APIFunction that takes audio as input?
I have a function whose argument is Audio and I'd like to deploy it as an API (and then call it from Python). This works as with ...
3
votes
1
answer
1k
views
API HTTP Request Signing using base64 encoding/decoding and HMAC (Cryptocurrencies Exchange, GDAX)
I am trying to access the GDAX API private methods which can be seen here, GDAX Documentation
There is some great Python code that does it that I am trying to recreate in Mathematica. That code can ...
6
votes
1
answer
497
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 ...
6
votes
1
answer
530
views
Oauth for Khan Academy API
About the project
I’m am building an online dashboard for my students that shows their up-to-the-minute Khan Academy progress. This will require access to the Khan Academy API. I’d like to build ...
7
votes
1
answer
404
views
How to upload an image to the Stack Exchange Imgur account?
This is not a duplicate of How to call Imgur API.
I tried to upload to imgur using its API, but (as my friends test) the API of imgur cannot be called in Chinese mainland. Then I found that ...
2
votes
1
answer
678
views
How to call Imgur API
My image host returns a link starting with http://. It seems this format is not supported in SE anymore. To avoid this, I want to change the image host to Imgur. ...
1
vote
0
answers
168
views
2
votes
1
answer
388
views
Tweeting an image, using URLExecute?
I am trying to tweet an image from Mathematica. I know, this should work on 11, but I am still using 10. My bad.
How I understand that it should work
get an authorisation token. Check.
Upload an ...
4
votes
2
answers
331
views
How to call Picture Bed API
I want to call this Picture bed API to upload my picture and return its link.I have translated the official instructional the page into English.And there is a example succeed to use it with Python. I ...
6
votes
1
answer
385
views
How do I display my weather data in JSON format from Wolfram Mathematica API?
Good day
I am trying to display my weather data in a JSON format in order to use it in an iOS app (using swift in Xcode). This is what my code looks like at the moment:
...