import asyncio
from eth_account import Account
from x402 import x402Client
from x402.http.clients import x402HttpxClient
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
async def main():
private_key = "0xYOUR_PRIVATE_KEY" # EVM wallet with USDC on Base
account = Account.from_key(private_key)
client = x402Client()
register_exact_evm_client(client, EthAccountSigner(account))
async with x402HttpxClient(client) as http:
response = await http.get(
"https://socialintel.dev/v1/search",
params={"category": "Fitness", "country": "US", "limit": 10}
)
data = response.json()
print(f"Found {data['count']} influencers")
for user in data["results"]:
print(f" @{user['username']} — {user.get('public_email', 'no email')}")
asyncio.run(main())