SQL Query avatar
SQL Query

No credit card required

View all Actors
SQL Query

SQL Query

useful-tools/sql-query

No credit card required

Run SQL queries over Apify Platform (currently supports only Datasets).

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn mode

Node.js

Python

curl

1# Set API token
2API_TOKEN=<YOUR_API_TOKEN>
3
4# Prepare Actor input
5cat > input.json <<'EOF'
6{
7  "query": "SELECT 'test data' as `test column`"
8}
9EOF
10
11# Run the Actor
12curl "https://api.apify.com/v2/acts/useful-tools~sql-query/runs?token=$API_TOKEN" \
13  -X POST \
14  -d @input.json \
15  -H 'Content-Type: application/json'
Developer
Community logoMaintained by Community
Actor metrics
  • 2 monthly users
  • 100.0% runs succeeded
  • Modified 4 months ago
Categories

You might also like these Actors