Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

Reddit User Active Subreddits

Dokumentasi API
https://api.sandbase.ai/v1/api/reddit/app/user-active-subreddits

Returns a list of Reddit communities where a specified user participates most actively. Supports optional response formatting.

Harga
$0.001USD / panggilan
Metode
POST
Respons
JSON
Parameter
1 wajib · 1 opsional

Playground

Input
Reddit username
Whether to clean and format the data
OutputContoh
Responsoutputs · 134 B · 10 baris
[
  {
    "data": {
      "redditorInfoByName": {
        "__typename": "Redditor",
        "activeSubreddits": []
      }
    }
  }
]

Contoh

Pilih contoh untuk memuat input dan hasilnya ke playground.

README API

Reddit User Active Subreddits API

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.

Use cases

  • Check which subreddits a Reddit user is listed as active in.
  • Confirm that a username resolves to a Redditor record before you call other user APIs.
  • Compare the activeSubreddits value across several usernames to see which accounts have data.

Request

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.

Parameters

NameTypeRequiredDescription
usernamestringYesReddit username
need_formatbooleanNoWhether to clean and format the data

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "redditorInfoByName": {
    "__typename": "Redditor",
    "activeSubreddits": null
  }
}

Response fields

FieldMeaning
redditorInfoByNameThe user record that matches the username you sent.
redditorInfoByName.__typenameThe object type. The value Redditor confirms the lookup found a Reddit user account.
redditorInfoByName.activeSubredditsThe 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.

Notes

  • Send username without the u/ prefix, as in the example spez.
  • Handle a null value in activeSubreddits in your code, since the sample response for spez returned no list.
  • To see what a user posts or comments, call Reddit User Posts or Reddit User Comments.
  • For account details, call Reddit App User Profile.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
Reddit$0.001 per panggilanJSON
Reddit$0.001 per panggilanJSON
Reddit$0.001 per panggilanJSON
Reddit$0.001 per panggilanJSON
Reddit$0.001 per panggilanJSON
Reddit$0.001 per panggilanJSON

Panduan:Best Reddit API in 2026: Pricing Compared

Pertanyaan

FAQ

Bagaimana cara menggunakan API Reddit User Active Subreddits?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/reddit/app/user-active-subreddits dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API Reddit User Active Subreddits?

$0.001 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API Reddit User Active Subreddits?

Wajib: username (string). Opsional: need_format (boolean). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API Reddit User Active Subreddits?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.

Apakah saya memerlukan akun developer atau kunci API Reddit?

Tidak. Reddit User Active Subreddits berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Reddit secara terpisah.