datadotworld / query / 0.2.0 - query

Royalty Free
Execute a query on
No Tags
Python 3.x
API Calls - 450 Avg call duration - N/A
The Algorithm Platform License is the set of terms that are stated in the Software License section of the Algorithmia Application Developer and API License Agreement. It is intended to allow users to reserve as many rights as possible without limiting Algorithmia's ability to run it as a service. Learn more
This is necessary for algorithms that rely on external services, however it also implies that this algorithm is able to send your input data outside of the Algorithmia platform.

Run an example

  "data": [
      "Country": "Finland",
      "Overall subscore": 100
      "Country": "Netherlands",
      "Overall subscore": 100
      "Country": "Sweden",
      "Overall subscore": 100
      "Country": "Czech Republic",
      "Overall subscore": 95
      "Country": "Denmark",
      "Overall subscore": 95
  "header": [
    "Overall subscore"

Install and use


Install the Algorithmia CLI client by running:

curl -sSLf | sh

Then authenticate by running:

          $ algo auth
# When prompted for api endpoint, hit enter
# When prompted for API key, enter your key: YOUR_API_KEY
CLI install docs


    algo run datadotworld/query/0.2.0 -d '{
     "SELECT Country, `Overall subscore` FROM `ODIN-2015-2016-standardized` WHERE Year=? AND Elements=? ORDER BY `Overall subscore` DESC LIMIT 5",
  "query_type": "sql",
  "parameters": ["2016", "Population & Vital Statistics"]   
}' --timeout 300
CLI docs