AI Studio API Support
Overview
This documentation provides details on how to use the DappLooker SDK to interact with AI Studio API. It explains how to install the SDK, retrieve schema details of projects, and query data using Natural Language Query (NLQ). The API Key is required for accessing the data securely.
Visit AI Studio here.
Prerequisites:
You must have a valid DappLooker API Key. Sign up at DappLooker or Get API key from here.
Node.js environment installed.
1. Install SDK
You can install the DappLooker SDK in your project using npm
.
2. Get the Details of a Project
The following code retrieves the schema details of projects available in DappLooker.
Sample Response:
This response provides the projectName
, schemaName
, and the networkName
for different projects that are supported by DappLooker.
3. Query Data Using Natural Language (NLQ)
DappLooker supports querying data using simple natural language queries. You will need to pass your API Key and the query string to retrieve data.
Sample Response:
This response contains the visualized data with columns such as Hour
, average_value
, and low_value
. Additionally, it includes metadata such as the query used and the time zone.
4. Important Notes:
Always ensure your API Key is securely stored and not hardcoded in production environments.
Modify NLQ queries according to your data needs, and you can interact with multiple blockchain networks and schemas through the SDK.
Last updated