Pay-per-call social profile enrichment for AI agents. Instagram, TikTok, X. Powered by x402 + USDC on Base.
Project description
gocreative-agent-api
Pay-per-call social profile enrichment for AI agents. Instagram, TikTok, X — one Python client, one wallet, one unified schema. Powered by x402 on Base.
Install
pip install gocreative-agent-api
30-second example
import os
from gocreative_agent_api import GoCreativeClient
client = GoCreativeClient(wallet_private_key=os.environ["MY_WALLET_KEY"])
# Single profiles — $0.05 each
ig = client.enrich.instagram("nasa")
tt = client.enrich.tiktok("tiktok")
x = client.enrich.x("elonmusk")
print(ig["followers"], ig["business_category"])
# 104410161 Government Agencies
# Hashtag search — up to 30 results, $0.05
posts = client.search.instagram_hashtag("realestate")
print(len(posts["posts"]), "posts")
# Recent tweets — up to 30, $0.05
tweets = client.posts.x("nasa")
print(tweets["tweets"][0]["text"])
Every call costs $0.05 USDC, pulled automatically from the wallet you pass in. The SDK handles the HTTP 402 → sign → retry dance under the hood — your code never sees it.
Why
You're building an AI agent that needs to know "is this Instagram handle a real business with engagement?" or "what's trending on TikTok for #fitness?" — the existing options are:
- Scrape it yourself: maintain proxies, handle bans, build parsers for 3 platforms.
- Sign up for 5 different SaaS APIs: 5 different auth schemes, 5 invoices.
- Use this: one wallet, one client, three platforms, sub-cent gas.
Configuration
| Constructor arg | Env var | Default |
|---|---|---|
wallet_private_key |
GOCREATIVE_WALLET_KEY |
required |
base_url |
– | https://api.gocreativeai.com/v1 |
max_payment_usd |
– | 1.00 (per-call safety cap) |
timeout |
– | 60.0 seconds |
Endpoints
| Method | Cost | Returns |
|---|---|---|
client.enrich.instagram(username) |
$0.05 | followers, bio, verified, business category, profile pic |
client.enrich.tiktok(username) |
$0.05 | followers, bio, verified, post count |
client.enrich.x(username) |
$0.05 | followers, bio, verified, post count |
client.search.instagram_hashtag(tag) |
$0.05 | up to 30 top posts (caption, likes, comments) |
client.search.tiktok_hashtag(tag) |
$0.05 | up to 30 top videos (plays, likes, comments) |
client.posts.x(username) |
$0.05 | up to 30 recent tweets (text, likes, retweets, views) |
Cost control
max_payment_usd=0.10will refuse any 402 asking more than 10¢- Server-side responses cache for 24h, so repeat calls for the same handle return instantly (and the server still bills $0.05 — that's the deal)
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gocreative_agent_api-0.1.0.tar.gz.
File metadata
- Download URL: gocreative_agent_api-0.1.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00be810f2f6e452eb08da0a641aa48993d63a260b3a879e75c4d1d8b7e994800
|
|
| MD5 |
ab62e1becd4f9723768691d6c98d3964
|
|
| BLAKE2b-256 |
2ad928a9d452561722e834b6581946b3eac8acca8d05d6f1ed7035a1b7017142
|
File details
Details for the file gocreative_agent_api-0.1.0-py3-none-any.whl.
File metadata
- Download URL: gocreative_agent_api-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff491e2ddc7730d38d6bf2e0d2395fda25af02d7be12044fd83092ec2ac7b012
|
|
| MD5 |
ed4dd97adbdf57d1c86e8adf8ddead39
|
|
| BLAKE2b-256 |
7db1c0a02ca252f874579cbe985198c19de985bd1bca120b55be7245323577ce
|