You can use cURL to call any algorithm on the marketplace and manage your data through Algorithmia.
Calling an Algorithm via cURL
To call an algorithm, use cURL to POST to the API. Be sure to specify the content type and authorize by passing in your API key.
Working with Data via cURL
Specifying an On-Premises or Private Cloud Endpoint
This feature is available to Algorithmia Enterprise users only.
If you are running Algorithmia Enterprise, replace
https://api.algorithmia.com/v1/data/.my in the codesamples below with your own API endpoint URL.
Create a directory
You can use cURL to interact with the Data API from the command line. To create a directory, POST the new directory name to the Data API URI. You will get a result that returns the address of the new data collection.
To upload a file, use cURL to
PUT the file to a directory.
Be sure to pass in your API key and the data directory URI.
The response will return a result with the location of the file.
Upload data as a file
You can also use cURL to upload data to the collection as a file. Be sure to pass in your API key and the data collection URI. The response will return a result with the location of the file.
Retrieve a file
Use cURL to
GET any file that YOUR_API_KEY is allowed to access:
See the full API Specification for additional details on calling algorithms and managing data with cURL.
Your account can make up to 80 Algorithmia requests at the same time (this limit can be raised if needed).