Content analysis filters
The fields the content analysis filters accept.
GET /v1/contentanalysis/filtersBeta0 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/contentanalysis/filters",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 0 credits{ "filters": [ { "field": "platform", "type": "string", "values": [ "reddit", "x", "… 14 more" ] }, { "field": "language", "type": "string", "values": [ "en", "es", "… 19 more" ] }, "… 4 more" ], "page_types": [ "posts", "videos", "… 3 more" ], "example": "{\"language\":\"en\",\"sentiment\":\"negative\",\"min_likes\":10}"}Status codes
| Status | Meaning |
|---|---|
200 | Filter fields. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | No citation of that keyword was found. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Content analysis is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
Does it cost anything?
No. Discovery endpoints are free and need no API key, so an agent can look around before it signs up.
Reddit, X and every other platform named here are trademarks of their owners. We are not affiliated with or endorsed by any of them.