Steps
- Install requests: pip install requests
- Copy your API key from the dashboard
- Run the script below
Example (python)
import requests
r = requests.post(
"https://blogjh.lovable.app/api/public/v1/posts",
headers={"Authorization": "Bearer bpk_live_YOUR_KEY"},
json={"title": "Hello from Python", "html": "<p>Auto posted</p>", "is_draft": False},
)
print(r.json())FAQ
Can I schedule posts from Python?
Yes — run the script with cron, GitHub Actions or any scheduler. Keep 3–5 minutes between posts to stay safe with Google's anti-spam limits.
Does it work with Hindi content?
Yes. Any UTF-8 HTML works, including Hindi and other Indian languages.
