usernamestringerforderlich
Reddit username
https://api.sandbase.ai/v1/api/reddit/app/user-active-subredditsReturns a list of Reddit communities where a specified user participates most actively. Supports optional response formatting.
[
{
"data": {
"redditorInfoByName": {
"__typename": "Redditor",
"activeSubreddits": []
}
}
}
]Wählen Sie ein Beispiel aus, um seine Eingaben und das Ergebnis in den Playground zu laden.
Returns the Reddit communities where a given user is most active. It needs a Reddit username, such as spez. The sample call for spez returned the user object with activeSubreddits set to null.
activeSubreddits value across several usernames to see which accounts have data.curl -X POST "https://api.sandbase.ai/v1/api/reddit/app/user-active-subreddits" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"username": "spez"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
username | string | Yes | Reddit username |
need_format | boolean | No | Whether to clean and format the data |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"redditorInfoByName": {
"__typename": "Redditor",
"activeSubreddits": null
}
}
| Field | Meaning |
|---|---|
redditorInfoByName | The user record that matches the username you sent. |
redditorInfoByName.__typename | The object type. The value Redditor confirms the lookup found a Reddit user account. |
redditorInfoByName.activeSubreddits | The list of communities where the user is most active. It is null in the sample response for spez, so no active subreddits came back for that call. |
username without the u/ prefix, as in the example spez.null value in activeSubreddits in your code, since the sample response for spez returned no list.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
curl -X POST "https://api.sandbase.ai/v1/api/reddit/app/user-active-subreddits" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"username": "example"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
usernamestringerforderlichReddit username
need_formatbooleanWhether to clean and format the data
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
[
{
"data": {
"redditorInfoByName": {
"__typename": "Redditor",
"activeSubreddits": []
}
}
}
]Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
Reddit User Active SubredditsDiese API Reddit | $0.001 pro Aufruf | JSON |
Reddit | $0.001 pro Aufruf | JSON |
Reddit | $0.001 pro Aufruf | JSON |
Reddit | $0.001 pro Aufruf | JSON |
Reddit | $0.001 pro Aufruf | JSON |
Reddit | $0.001 pro Aufruf | JSON |
Anleitungen:Best Reddit API in 2026: Pricing Compared
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/reddit/app/user-active-subreddits mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
$0.001 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Erforderlich: username (string). Optional: need_format (boolean). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. Reddit User Active Subreddits läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Reddit API beantragen.