![Dataset query engine avatar](https://images.apifyusercontent.com/9j3bZx7mC8OPnwYoyvy4CdTD5hzvVbcC_cZBd8zkVn0/rs:fill:250:250/cb:1/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20vdmFUYVFKWVRDNWhpMVVDRGYtYWN0b3ItdlloWk52SVNoNzBzNGN6WGwteDVhVUF0ZDRLRS1kb3dubG9hZC5qcGVn.webp)
Dataset query engine
No credit card required
![Dataset query engine](https://images.apifyusercontent.com/9j3bZx7mC8OPnwYoyvy4CdTD5hzvVbcC_cZBd8zkVn0/rs:fill:250:250/cb:1/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20vdmFUYVFKWVRDNWhpMVVDRGYtYWN0b3ItdlloWk52SVNoNzBzNGN6WGwteDVhVUF0ZDRLRS1kb3dubG9hZC5qcGVn.webp)
Dataset query engine
No credit card required
Use natural language queries to retrieve results from an Apify dataset. This Actor provides a query engine that loads a dataset, executes SQL queries, and synthesizes results.
Text or SQL query
query
stringRequired
Provide a query to specify the data to be retrieved from a dataset. The query can be in natural language or SQL format. For SQL, use the table name 'dataset'.
Examples (when your dataset contains data scraped from Google Maps):
- Find restaurant names with reviews above 4 and with at least 100 reviews.
- SELECT title, totalScore, reviewsCount FROM dataset;
OpenAI model (OpenAI is the only supported provider now)
modelName
EnumOptional
Specify the LLM for SQL generation and query synthesis. Currently supports OpenAI models with varying capabilities and performance characteristics.
Value options:
"gpt-4o-mini": string"gpt-4o": string"o1": string"o1-mini": string"o3-mini": string
Default value of this property is "gpt-4o-mini"
LLM Provider API key (OpenAI is the only supported provider now)
llmProviderApiKey
stringRequired
API key for accessing a Large Language Model.
Refresh dataset
refreshDataset
booleanOptional
In standby mode, the dataset is loaded once and reused to optimize performance. This parameter allows reloading the dataset to ensure updated data is available.
Default value of this property is false
Limit number of dataset items used for query
limit
integerOptional
Maximum number of items to return. By default, there is no limit.
Actor Metrics
0 monthly users
-
0 No stars yet
Created in Feb 2025
Modified a day ago