đPython
Learn how to integrate Airstack APIs to your Python-based application using the Airstack Python SDK.
đ Python
In this tutorial, you will learn how to start integrating Airstack API into your Python application.
Table Of Contents
Step 0: Pre-requisites
Completed Get API Key
Git
Node v.16+
Step 1: Install Airstack Python SDK
Use a package manager to install the Airstack Python SDK into your Python project:
Step 2: Set Environment Variable
Create a new .env
file:
Add the Airstack API key as the environment variable:
Install python-dotenv
package to your project:
and import it into your Python project to inject the environment variables:
Step 3: Create API Client
Wrap your application or React component with AirstackClient
from the SDK to initialize it with the Airstack API key:
Step 4: Call Your Query
Once you have initialized the SDK, you can use the execute_query
to call the Airstack API.
Below you have been provided with Airstack query to fetch the 0x address and Farcaster owned by vitalik.eth
:
The data
variable will return and logged into your terminal as follows:
Developer Support
If you have any questions or need help regarding integrating Airstack into your Python application, please join our Airstack's Telegram group.
More Resources
Learn to build more with Airstack using our tutorials:
Last updated
Was this helpful?