### cURL Request Example Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_ba21d9ce-d25e-4dd1-97fa-c97f803f8c29 Example of how to make a request to the Reddit API endpoint using cURL. Ensure you have the correct 'post_url' parameter. ```bash curl -X POST \ 'https://api.reddit.com/search?q=example' \ -H 'Content-Type: application/json' \ -H 'Accept: application/json' ``` -------------------------------- ### Get Subreddit Rules using cURL Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_ba4a5867-4750-4280-bbbe-69256db39f8a This snippet demonstrates how to fetch subreddit rules using a GET request with cURL. It includes the necessary URL, headers, and query parameters for the request. ```cURL curl --request GET \ --url 'https://reddit34.p.rapidapi.com/getSubredditRules?subreddit=askreddit' \ --header 'Content-Type: application/json' \ --header 'x-rapidapi-host: reddit34.p.rapidapi.com' ``` -------------------------------- ### Get New Subreddits Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_a23d0f25-f86d-4bb7-8fb8-bc752b42acc3 This endpoint retrieves a list of new subreddits. It accepts an optional cursor for pagination. ```APIDOC ## GET /getNewSubreddits ### Description Retrieves a list of new subreddits. Supports pagination via a cursor. ### Method GET ### Endpoint https://reddit34.p.rapidapi.com/getNewSubreddits ### Parameters #### Query Parameters - **cursor** (string) - Optional - Used for paginating through results. #### Headers - **x-rapidapi-host** (string) - Required - The host of the API. - **Content-Type** (string) - Required - Specifies the content type of the request, typically 'application/json'. ### Request Example ```json { "example": "curl --request GET \t--url https://reddit34.p.rapidapi.com/getNewSubreddits \t--header 'Content-Type: application/json' \t--header 'x-rapidapi-host: reddit34.p.rapidapi.com'" } ``` ### Response #### Success Response (200) (Response structure not detailed in source) #### Response Example (Response example not detailed in source) ``` -------------------------------- ### Get Comments by Username Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_69f5caca-a3b1-43f6-80e5-51bfc949df97 Fetches comments for a given username, with options for sorting and pagination. ```APIDOC ## GET /getCommentsByUsername ### Description Retrieves comments made by a specific Reddit user. Supports sorting by 'new' or 'hot' and pagination using a cursor. ### Method GET ### Endpoint /getCommentsByUsername ### Parameters #### Query Parameters - **username** (String) - Required - The username of the Reddit user whose comments are to be retrieved. - **sort** (String) - Required - The sorting order for comments. Accepted values are `new` or `hot`. - **cursor** (String) - Optional - A cursor for paginating through results. ### Request Example ```json { "example": "https://reddit34.p.rapidapi.com/getCommentsByUsername?username=spez&sort=hot" } ``` ### Response #### Success Response (200) - **comments** (Array) - A list of comment objects. - **next_cursor** (String) - The cursor for the next page of results. #### Response Example ```json { "example": "{\"comments\": [{\"id\": \"comment1\", \"text\": \"This is a comment.\"}], \"next_cursor\": \"some_cursor_string\"}" } ``` ``` -------------------------------- ### Get New Subreddits using cURL Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_a23d0f25-f86d-4bb7-8fb8-bc752b42acc3 This snippet shows how to make a GET request to the getNewSubreddits endpoint using cURL. Ensure you have the correct 'x-rapidapi-host' header set. ```curl curl --request GET \ --url https://reddit34.p.rapidapi.com/getNewSubreddits \ --header 'Content-Type: application/json' \ --header 'x-rapidapi-host: reddit34.p.rapidapi.com' ``` -------------------------------- ### Get Subreddit Rules Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_ba4a5867-4750-4280-bbbe-69256db39f8a Retrieves the rules for a specified subreddit. Requires the subreddit name as a query parameter and the x-rapidapi-host header. ```APIDOC ## GET /getSubredditRules ### Description Retrieves the rules for a specified subreddit. ### Method GET ### Endpoint /getSubredditRules ### Parameters #### Query Parameters - **subreddit** (string) - Required - Name of the subreddit (e.g. askreddit) - **x-rapidapi-host** (string) - Required - The host for the RapidAPI endpoint. ### Request Example ```json { "subreddit": "askreddit" } ``` ### Response #### Success Response (200) - **rules** (array) - A list of rules for the subreddit. - **rule_details** (string) - Detailed description of each rule. #### Response Example ```json { "rules": [ { "rule_details": "No personal information." }, { "rule_details": "Be respectful." } ] } ``` ``` -------------------------------- ### Get Post Duplicates using cURL Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_c1fb469e-027d-4145-abaf-fcf022f9dc10 This snippet demonstrates how to use cURL to call the getPostDuplicates endpoint. It requires the post_url and x-rapidapi-host as headers. ```cURL curl --request GET \ --url 'https://reddit34.p.rapidapi.com/getPostDuplicates?post_url=https%3A%2F%2Fwww.reddit.com%2Fr%2Ftechnology%2Fcomments%2Fabc123%2Fpost_title' \ --header 'Content-Type: application/json' \ --header 'x-rapidapi-host: reddit34.p.rapidapi.com' ``` -------------------------------- ### Get Posts by Username Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_efbf6a79-5236-49e8-8f88-bd16a3f64306 Retrieves posts from Reddit based on a specified username. Supports sorting and pagination. ```APIDOC ## GET /getPostsByUsername ### Description Retrieves posts from Reddit associated with a given username. This endpoint allows filtering and sorting of posts. ### Method GET ### Endpoint /getPostsByUsername ### Parameters #### Query Parameters - **username** (String) - Required - The username of the Reddit user whose posts are to be retrieved. - **sort** (String) - Required - Specifies the sorting order for the posts. Accepted values are `new` or `hot`. - **cursor** (String) - Optional - Used for pagination to fetch subsequent sets of posts. #### Headers - **x-rapidapi-host** (String) - Required - The host of the RapidAPI endpoint. ### Request Example ```json { "username": "GoldenChrysus", "sort": "new" } ``` ### Response #### Success Response (200) - **data** (Object) - Contains the list of posts and pagination information. - **children** (Array) - An array of post objects. - **after** (String) - Cursor for the next page of results. - **before** (String) - Cursor for the previous page of results. #### Response Example ```json { "data": { "children": [ { "data": { "title": "Example Post Title", "score": 100, "author": "GoldenChrysus", "created_utc": 1678886400 } } ], "after": "t3_examplecursor1", "before": null } } ``` ``` -------------------------------- ### Get Subreddit Info Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_60fef89a-cfc7-4d93-b89a-3de07ac3d048 Retrieves information about a specified subreddit. This endpoint requires the subreddit name as a query parameter. ```APIDOC ## GET /getSubredditInfo ### Description Retrieves information about a specified subreddit. This endpoint requires the subreddit name as a query parameter. ### Method GET ### Endpoint /getSubredditInfo ### Parameters #### Query Parameters - **subreddit** (String) - Required - The name of the subreddit to retrieve information for. - **x-rapidapi-host** (String) - Required - The host for the RapidAPI request. ### Request Example ```json { "subreddit": "memes" } ``` ### Response #### Success Response (200) (Response structure not provided in source) #### Response Example (Response example not provided in source) ``` -------------------------------- ### Get Search Users Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_aba5324d-2e5c-4499-a63a-8f8f8e0d29b1 Retrieves a list of users based on a search query. Supports pagination through a cursor. ```APIDOC ## GET /getSearchUsers ### Description This endpoint allows you to search for Reddit users based on a given query. It supports optional pagination using a cursor. ### Method GET ### Endpoint /getSearchUsers ### Parameters #### Query Parameters - **query** (String) - Required - Search keyword (e.g. spez) - **cursor** (String) - Optional - Pagination cursor from previous response #### Headers - **x-rapidapi-host** (String) - Required ### Request Example ```json { "query": "spez" } ``` ### Response #### Success Response (200) (Response structure not provided in source) #### Response Example (Response example not provided in source) ``` -------------------------------- ### Get User Overview Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_d5d4a6c5-dedf-4ee7-9102-4d8473d88536 Use this cURL command to retrieve a user's overview on Reddit. Specify the username and sort order. Optional parameters include time and cursor for pagination. ```cURL curl --request GET \ --url 'https://reddit34.p.rapidapi.com/getUserOverview?username=spez&sort=new' \ --header 'Content-Type: application/json' \ --header 'x-rapidapi-host: reddit34.p.rapidapi.com' ``` -------------------------------- ### Get Subreddit Information Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_60fef89a-cfc7-4d93-b89a-3de07ac3d048 This snippet shows how to retrieve information about a specific subreddit using cURL. Ensure you replace 'memes' with the desired subreddit name. ```curl curl --request GET \ --url 'https://reddit34.p.rapidapi.com/getSubredditInfo?subreddit=memes' \ --header 'Content-Type: application/json' \ --header 'x-rapidapi-host: reddit34.p.rapidapi.com' ``` -------------------------------- ### Get Similar Subreddits Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_25c89ebf-c082-43cb-93ef-6ce895ae155d Retrieves a list of subreddits similar to the specified subreddit. This endpoint is useful for discovering related communities. ```APIDOC ## GET /getSimilarSubreddits ### Description Retrieves a list of subreddits similar to the specified subreddit. This endpoint is useful for discovering related communities. ### Method GET ### Endpoint /getSimilarSubreddits ### Parameters #### Query Parameters - **subreddit** (String) - Required - Name of the subreddit (e.g. python) - **cursor** (String) - Optional - Pagination cursor from previous response ### Request Example ```json { "subreddit": "python" } ``` ### Response #### Success Response (200) - **results** (object) - Contains a list of similar subreddits and a pagination cursor. - **subreddits** (array) - List of similar subreddit objects. - **name** (string) - The name of the subreddit. - **score** (number) - A score indicating relevance or similarity. - **cursor** (string) - A cursor for fetching the next page of results. #### Response Example ```json { "results": { "subreddits": [ { "name": "learnpython", "score": 0.95 }, { "name": "Python", "score": 0.92 } ], "cursor": "next_page_cursor_string" } } ``` ``` -------------------------------- ### Get Top Posts by Username (cURL) Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_22e6b96c-f42a-4a86-9551-4dc3eb2d2a94 Use this cURL command to fetch the top posts for a given username and time frame. Ensure you provide a valid username and select a time frame from the allowed options. ```shell curl --request GET \ --url 'https://reddit34.p.rapidapi.com/getTopPostsByUsername?username=GoldenChrysus&time=all' \ --header 'Content-Type: application/json' \ --header 'x-rapidapi-host: reddit34.p.rapidapi.com' ``` -------------------------------- ### Get Post Comments with Sort Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_26de8891-f358-42c0-bdc5-0973753a1aaf This snippet demonstrates how to fetch comments for a given Reddit post URL, with options to sort the comments. Ensure the 'post_url' and 'sort' parameters are correctly provided. ```curl curl --request GET \ --url 'https://reddit34.p.rapidapi.com/getPostCommentsWithSort?post_url=https%3A%2F%2Fwww.reddit.com%2Fr%2Ffut%2Fcomments%2F1jv41on%2Fbaby_coming_in_team_2%2F&sort=new' \ --header 'Content-Type: application/json' \ --header 'x-rapidapi-host: reddit34.p.rapidapi.com' ``` -------------------------------- ### Get Popular Subreddits Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_5bcc5a56-2a71-4f44-b4a4-97c46955f137 Retrieves a list of popular subreddits. This endpoint can be filtered by a cursor for pagination. ```APIDOC ## GET /getPopularSubreddits ### Description Retrieves a list of popular subreddits. This endpoint can be filtered by a cursor for pagination. ### Method GET ### Endpoint https://reddit34.p.rapidapi.com/getPopularSubreddits ### Parameters #### Query Parameters - **cursor** (string) - Optional - Used for pagination to fetch the next set of results. #### Headers - **x-rapidapi-host** (string) - Required - The host of the API. - **Content-Type** (string) - Required - Specifies the content type of the request, typically 'application/json'. ### Request Example ```json { "example": "curl --request GET \n\t--url https://reddit34.p.rapidapi.com/getPopularSubreddits \n\t--header 'Content-Type: application/json' \n\t--header 'x-rapidapi-host: reddit34.p.rapidapi.com'" } ``` ### Response #### Success Response (200) (Response structure not detailed in the source) #### Response Example (Response example not detailed in the source) ``` -------------------------------- ### Get Top Comments by Username (cURL) Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_bd966729-3bd8-4241-9dcd-da083993985b Use this cURL command to fetch the top comments for a given username and time frame. Ensure you replace placeholders with actual values. ```shell curl --request GET \ --url 'https://reddit34.p.rapidapi.com/getTopCommentsByUsername?username=GoldenChrysus&time=all' \ --header 'Content-Type: application/json' \ --header 'x-rapidapi-host: reddit34.p.rapidapi.com' ``` -------------------------------- ### Get User Stats Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_2883368a-e94f-446d-830d-ecf509b3fdf4 Fetches statistics for a specified Reddit username. Requires 'username' as a query parameter and 'x-rapidapi-host' in the headers. ```APIDOC ## GET /getUserStats ### Description Retrieves statistical data for a given Reddit user. ### Method GET ### Endpoint /getUserStats ### Parameters #### Query Parameters - **username** (String) - Required - The username of the Reddit user to retrieve stats for. #### Headers - **x-rapidapi-host** (String) - Required - The host of the API. - **Content-Type** (String) - Required - Set to 'application/json'. ### Request Example ```http GET /getUserStats?username=GoldenChrysus HTTP/1.1 Host: reddit34.p.rapidapi.com Content-Type: application/json ``` ### Response #### Success Response (200) (Response structure not detailed in source) #### Response Example (Response example not detailed in source) ``` -------------------------------- ### Get Posts by Subreddit Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_f5785ad4-83bb-405a-9b29-f19a1b448ab0 Retrieves a list of posts from a given subreddit. You can specify the sorting order and optionally provide a cursor for pagination. ```APIDOC ## GET /getPostsBySubreddit ### Description Fetches posts from a specified subreddit, with options to sort the results and paginate using a cursor. ### Method GET ### Endpoint /getPostsBySubreddit ### Parameters #### Query Parameters - **subreddit** (String) - Required - The name of the subreddit to fetch posts from (e.g., `memes`). - **sort** (String) - Required - The sorting order for the posts. Accepted values: `new`, `hot`, `rising`. - **cursor** (String) - Optional - A cursor for fetching the next page of results. #### Headers - **x-rapidapi-host** (String) - Required - The host for the RapidAPI request. ### Request Example ```json { "subreddit": "memes", "sort": "new" } ``` ### Response #### Success Response (200) (Response structure not explicitly defined in source, but would typically include a list of posts) #### Response Example (Example response not provided in source) ``` -------------------------------- ### Get Similar Subreddits using cURL Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_25c89ebf-c082-43cb-93ef-6ce895ae155d This snippet demonstrates how to use cURL to call the getSimilarSubreddits API endpoint. Ensure you replace 'python' with the desired subreddit name. ```curl curl --request GET \ --url 'https://reddit34.p.rapidapi.com/getSimilarSubreddits?subreddit=python' \ --header 'Content-Type: application/json' \ --header 'x-rapidapi-host: reddit34.p.rapidapi.com' ``` -------------------------------- ### Get Comments by Subreddit using cURL Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_0fdf1819-95b2-4c52-8e4a-b0ff5e2093ba Use this cURL command to fetch comments from a specific subreddit. Ensure you replace 'memes' with your desired subreddit and include the necessary headers. ```curl curl --request GET \ --url 'https://reddit34.p.rapidapi.com/getCommentsBySubreddit?subreddit=memes' \ --header 'Content-Type: application/json' \ --header 'x-rapidapi-host: reddit34.p.rapidapi.com' ``` -------------------------------- ### Get Top Posts by Subreddit (cURL) Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_6c1d3bb9-e10b-455f-813d-befec97d0797 This snippet shows how to fetch the top posts from a specific subreddit for a given time period using cURL. Ensure you replace 'memes' and 'year' with your desired subreddit and time frame. ```curl curl --request GET \ --url 'https://reddit34.p.rapidapi.com/getTopPostsBySubreddit?subreddit=memes&time=year' \ --header 'Content-Type: application/json' \ --header 'x-rapidapi-host: reddit34.p.rapidapi.com' ``` -------------------------------- ### Get Posts by Username using cURL Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_efbf6a79-5236-49e8-8f88-bd16a3f64306 Use this cURL command to fetch posts from a specific Reddit user. Ensure you provide the username and sort order (e.g., 'new' or 'hot'). ```cURL curl --request GET \ --url 'https://reddit34.p.rapidapi.com/getPostsByUsername?username=GoldenChrysus&sort=new' \ --header 'Content-Type: application/json' \ --header 'x-rapidapi-host: reddit34.p.rapidapi.com' ``` -------------------------------- ### Get User Statistics Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_2883368a-e94f-446d-830d-ecf509b3fdf4 Use this cURL command to fetch user statistics from the Reddit API. Ensure you include the required headers and query parameters. ```shell curl --request GET \ --url 'https://reddit34.p.rapidapi.com/getUserStats?username=GoldenChrysus' \ --header 'Content-Type: application/json' \ --header 'x-rapidapi-host: reddit34.p.rapidapi.com' ``` -------------------------------- ### Get Search Subreddits Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_d61cfe4f-2b7e-4bfe-a20a-dcf4e4ac3735 Retrieves a list of subreddits matching the provided query. This endpoint supports optional cursor-based pagination and requires specific headers for host identification. ```APIDOC ## GET /getSearchSubreddits ### Description Searches for subreddits based on a query string. This endpoint is useful for finding communities related to specific topics. ### Method GET ### Endpoint /getSearchSubreddits ### Parameters #### Query Parameters - **query** (String) - Required - The search term to find subreddits. - **cursor** (String) - Optional - A cursor for fetching the next page of results. #### Headers - **x-rapidapi-host** (String) - Required - The host of the API. - **Content-Type** (String) - Required - Specifies the content type of the request, typically 'application/json'. ### Request Example ```json { "query": "nike" } ``` ### Response #### Success Response (200) - **data** (Object) - Contains the search results. - **children** (Array) - A list of subreddit objects. - **data** (Object) - Subreddit details. - **display_name** (String) - The name of the subreddit. - **subscribers** (Number) - The number of subscribers. - **public_description** (String) - The public description of the subreddit. #### Response Example ```json { "data": { "children": [ { "data": { "display_name": "r/Nike", "subscribers": 1000000, "public_description": "The official subreddit for Nike." } } ] } } ``` ``` -------------------------------- ### Get Post Comments with Sort Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_26de8891-f358-42c0-bdc5-0973753a1aaf Retrieves comments for a given Reddit post URL and allows sorting the comments by various criteria. ```APIDOC ## GET /getPostCommentsWithSort ### Description Retrieves comments for a given Reddit post URL and allows sorting the comments by various criteria. ### Method GET ### Endpoint /getPostCommentsWithSort ### Parameters #### Query Parameters - **post_url** (String) - Required - The URL of the Reddit post. - **sort** (String) - Required - The sorting criteria for comments. Valid options are: confidence, top, new, controversial, old, qa. - **cursor** (String) - Optional - Used for pagination to fetch the next set of comments. ``` -------------------------------- ### Get Comments by Subreddit Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_0fdf1819-95b2-4c52-8e4a-b0ff5e2093ba Retrieves comments from a specified subreddit. Requires the subreddit name as a parameter. An optional cursor can be provided for pagination. ```APIDOC ## GET /getCommentsBySubreddit ### Description Retrieves comments from a specified subreddit. Requires the subreddit name as a parameter. An optional cursor can be provided for pagination. ### Method GET ### Endpoint /getCommentsBySubreddit ### Parameters #### Query Parameters - **subreddit** (String) - Required - The name of the subreddit to fetch comments from. - **cursor** (String) - Optional - A cursor for pagination, used to fetch the next set of comments. #### Headers - **x-rapidapi-host** (String) - Required - The host for the RapidAPI request. ### Request Example ```json { "subreddit": "memes" } ``` ### Response #### Success Response (200) - **comments** (Array) - A list of comments from the subreddit. - **next_cursor** (String) - The cursor for the next page of results, if available. ``` -------------------------------- ### Get Reddit User Profile Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_66789855-e08b-4d3e-8004-2c4be06b8c42 This snippet shows how to fetch a Reddit user's profile using cURL. Ensure you have the correct API host and username. ```curl curl --request GET \ --url 'https://reddit34.p.rapidapi.com/getProfile?username=GoldenChrysus' \ --header 'Content-Type: application/json' \ --header 'x-rapidapi-host: reddit34.p.rapidapi.com' ``` -------------------------------- ### Get User Profile Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_66789855-e08b-4d3e-8004-2c4be06b8c42 Retrieves the profile information for a given Reddit username. This endpoint requires the username as a query parameter and specific RapidAPI headers. ```APIDOC ## GET /getProfile ### Description Retrieves the profile information for a given Reddit username. ### Method GET ### Endpoint /getProfile ### Parameters #### Query Parameters - **username** (String) - Required - The username of the Reddit profile to retrieve. #### Headers - **x-rapidapi-host** (String) - Required - The host for the RapidAPI endpoint. - **Content-Type** (String) - Required - Specifies the content type of the request, typically 'application/json'. ### Request Example ```json { "example": "curl --request GET \t--url 'https://reddit34.p.rapidapi.com/getProfile?username=GoldenChrysus' \t--header 'Content-Type: application/json' \t--header 'x-rapidapi-host: reddit34.p.rapidapi.com'" } ``` ### Response #### Success Response (200) (Response structure not explicitly defined in the source text, but would typically include user profile details.) ``` -------------------------------- ### Search Reddit Posts using cURL Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_b8cdfb67-903d-4ebb-bad4-feebb59a3ce1 Use this cURL command to make a GET request to the Reddit API to search for posts. Ensure you replace 'nike' with your desired query. ```curl curl --request GET \ --url 'https://reddit34.p.rapidapi.com/getSearchPosts?query=nike' \ --header 'Content-Type: application/json' \ --header 'x-rapidapi-host: reddit34.p.rapidapi.com' ``` -------------------------------- ### Get Post Comments Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_869beb0c-f19f-49af-aa97-4cc6292e56cc Retrieves comments for a specified Reddit post URL. This endpoint requires the post URL and RapidAPI host as parameters. ```APIDOC ## GET /getPostComments ### Description Retrieves comments for a specified Reddit post URL. ### Method GET ### Endpoint /getPostComments ### Parameters #### Query Parameters - **post_url** (String) - Required - The URL of the Reddit post. - **x-rapidapi-host** (String) - Required - The RapidAPI host for the service. ### Request Example ```json { "post_url": "https://www.reddit.com/r/fut/comments/1jv41on/baby_coming_in_team_2/" } ``` ### Response #### Success Response (200) - **comments** (Array) - A list of comments for the post. #### Response Example ```json { "comments": [ { "author": "string", "body": "string", "score": "integer" } ] } ``` ``` -------------------------------- ### Get Subreddit Moderators using cURL Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_2d4132cb-a69f-453f-8c66-e5f1c7684751 Use this cURL command to test the getSubredditModerators endpoint. Ensure you replace 'askreddit' with the desired subreddit name. ```cURL curl --request GET \ --url 'https://reddit34.p.rapidapi.com/getSubredditModerators?subreddit=askreddit' \ --header 'Content-Type: application/json' \ --header 'x-rapidapi-host: reddit34.p.rapidapi.com' ``` -------------------------------- ### Get Rising Popular Posts Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_24fcd25e-feb5-4dc0-a10f-95ede4becd12 Retrieves a list of rising popular posts from Reddit. This endpoint can be used to fetch trending content. ```APIDOC ## GET /getRisingPopularPosts ### Description Retrieves a list of rising popular posts from Reddit. ### Method GET ### Endpoint https://reddit34.p.rapidapi.com/getRisingPopularPosts ### Parameters #### Query Parameters - **cursor** (string) - Optional - Used for pagination to fetch subsequent sets of results. #### Headers - **x-rapidapi-host** (string) - Required - The host of the API endpoint. - **Content-Type** (string) - Required - Specifies the content type of the request, typically 'application/json'. ### Request Example ```json { "example": "curl --request GET \n\t--url https://reddit34.p.rapidapi.com/getRisingPopularPosts \n\t--header 'Content-Type: application/json' \n\t--header 'x-rapidapi-host: reddit34.p.rapidapi.com'" } ``` ### Response #### Success Response (200) (Response structure not detailed in the source) #### Response Example (Response example not detailed in the source) ``` -------------------------------- ### Get User Post Rank in Subreddit (cURL) Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_204e2f4b-3a1f-4756-bbc3-b67e827960db Use this cURL command to test the getUserPostRankInSubreddit endpoint. Ensure you replace placeholder values with actual subreddit and username details. ```cURL curl --request GET \ --url 'https://reddit34.p.rapidapi.com/getUserPostRankInSubreddit?username=spez&subreddit=reddit&sort=new' \ --header 'Content-Type: application/json' \ --header 'x-rapidapi-host: reddit34.p.rapidapi.com' ``` -------------------------------- ### Get Popular Subreddits Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_5bcc5a56-2a71-4f44-b4a4-97c46955f137 Use this cURL command to fetch a list of popular subreddits from the Reddit API. Ensure you include the necessary headers for authentication and host identification. ```curl curl --request GET \ --url https://reddit34.p.rapidapi.com/getPopularSubreddits \ --header 'Content-Type: application/json' \ --header 'x-rapidapi-host: reddit34.p.rapidapi.com' ``` -------------------------------- ### Get Top Posts by Subreddit Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_6c1d3bb9-e10b-455f-813d-befec97d0797 Retrieves the top posts for a given subreddit within a specified time frame. Supports optional cursor for pagination. ```APIDOC ## GET /getTopPostsBySubreddit ### Description Retrieves the top posts for a given subreddit within a specified time frame. Supports optional cursor for pagination. ### Method GET ### Endpoint /getTopPostsBySubreddit ### Parameters #### Query Parameters - **subreddit** (string) - Required - The subreddit to fetch posts from (e.g., `memes`). - **time** (string) - Required - The time frame for the posts (e.g., `hour`, `day`, `week`, `month`, `year`, `all`). - **cursor** (string) - Optional - Used for pagination to fetch subsequent pages of results. #### Headers - **x-rapidapi-host** (string) - Required - The host of the API. ### Request Example ```json { "subreddit": "memes", "time": "year" } ``` ### Response #### Success Response (200) - **data** (object) - Contains the list of posts and pagination information. - **posts** (array) - List of post objects. - **title** (string) - The title of the post. - **score** (integer) - The score of the post. - **url** (string) - The URL of the post. - **next_cursor** (string) - The cursor for fetching the next page of results, if available. #### Response Example ```json { "data": { "posts": [ { "title": "Example Post Title", "score": 1234, "url": "http://example.com/post/123" } ], "next_cursor": "some_cursor_string" } } ``` ``` -------------------------------- ### Get Rising Popular Posts Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_24fcd25e-feb5-4dc0-a10f-95ede4becd12 Use this cURL command to fetch rising popular posts from the Reddit API. Ensure you include the necessary headers for authentication and host identification. ```curl curl --request GET \ --url https://reddit34.p.rapidapi.com/getRisingPopularPosts \ --header 'Content-Type: application/json' \ --header 'x-rapidapi-host: reddit34.p.rapidapi.com' ``` -------------------------------- ### Fetch Top Popular Posts using cURL Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_bc316c1e-4287-4384-91a2-eb4cb1d01e5f Use this cURL command to make a GET request to the Reddit API to retrieve the top popular posts for a specified time period. Ensure you include the necessary headers. ```curl curl --request GET \ --url 'https://reddit34.p.rapidapi.com/getTopPopularPosts?time=year' \ --header 'Content-Type: application/json' \ --header 'x-rapidapi-host: reddit34.p.rapidapi.com' ``` -------------------------------- ### Get Post Duplicates Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_c1fb469e-027d-4145-abaf-fcf022f9dc10 Retrieves duplicate posts for a given Reddit post URL. This endpoint requires a valid post URL and optionally accepts a cursor for pagination. ```APIDOC ## GET /getPostDuplicates ### Description This endpoint allows you to find duplicate posts on Reddit by providing a full Reddit post URL. It can be used for content analysis and tracking. ### Method GET ### Endpoint https://reddit34.p.rapidapi.com/getPostDuplicates ### Parameters #### Query Parameters - **post_url** (String) - Required - Full Reddit post URL (e.g. https://www.reddit.com/r/technology/comments/abc123/post_title/) - **cursor** (String) - Optional - Pagination cursor from previous response ### Request Example ```json { "post_url": "https://www.reddit.com/r/technology/comments/abc123/post_title/" } ``` ### Response #### Success Response (200) (Response structure not provided in source) #### Response Example (Response example not provided in source) ``` -------------------------------- ### Get Popular Posts Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_2a66c170-71ab-4e15-8ac6-788e1f70be5e Retrieves popular posts from Reddit. You can specify the sorting method (e.g., 'new', 'hot') and optionally provide a cursor for pagination. ```APIDOC ## GET /getPopularPosts ### Description Retrieves popular posts from Reddit. Allows filtering by sort order and pagination using a cursor. ### Method GET ### Endpoint /getPopularPosts ### Parameters #### Query Parameters - **sort** (string) - Required - Specifies the sorting order for posts (e.g., 'new', 'hot'). - **cursor** (string) - Optional - Used for paginating through results. #### Headers - **x-rapidapi-host** (string) - Required - The host for the RapidAPI request. ### Request Example ```json { "sort": "new" } ``` ### Response #### Success Response (200) (Response structure not detailed in source) #### Response Example (Response example not detailed in source) ``` -------------------------------- ### Get Best Popular Posts using cURL Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_9d57baed-3658-4084-b43c-bee22aea7d78 Use this cURL command to fetch the best popular posts from the Reddit API. Ensure you include the necessary headers for authentication and host identification. ```curl curl --request GET \ --url https://reddit34.p.rapidapi.com/getBestPopularPosts \ --header 'Content-Type: application/json' \ --header 'x-rapidapi-host: reddit34.p.rapidapi.com' ``` -------------------------------- ### Get Popular Posts by Country Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_912bcb33-a8c4-4414-8ebe-267f505613b7 Use this cURL command to fetch popular posts from the Reddit API for a specific country and sort order. Ensure you include the necessary x-rapidapi-host header. ```cURL curl --request GET \ --url 'https://reddit34.p.rapidapi.com/getPopularPostsByCountry?country=US&sort=hot&time=hour' \ --header 'Content-Type: application/json' \ --header 'x-rapidapi-host: reddit34.p.rapidapi.com' ``` -------------------------------- ### Get Popular Posts by Country Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_912bcb33-a8c4-4414-8ebe-267f505613b7 Retrieves a list of popular posts filtered by country and sort order. Supports optional time filtering for 'top' sort order and pagination. ```APIDOC ## GET /getPopularPostsByCountry ### Description Fetches popular posts based on the specified country and sort order. This endpoint allows filtering by country, sorting by different criteria (hot, new, top, best, rising), and optionally specifying a time window for the 'top' sort order. Pagination is supported using a cursor. ### Method GET ### Endpoint /getPopularPostsByCountry ### Parameters #### Query Parameters - **country** (string) - Required - ISO 3166-1 alpha-2 country code (uppercase). Use 'GLOBAL' for worldwide trending. - **sort** (enum) - Required - Sort order of the returned posts. Supported values: 'hot', 'new', 'top', 'best', 'rising'. - **time** (enum) - Optional - Time window for 'top' sort. Required only when sort=top. Supported values: 'hour'. - **cursor** (string) - Optional - Pagination token. Pass the cursor value from a previous response to fetch the next page of results. ### Request Example ```http GET https://reddit34.p.rapidapi.com/getPopularPostsByCountry?country=US&sort=hot&time=hour ``` ### Headers - **x-rapidapi-host**: reddit34.p.rapidapi.com - **Content-Type**: application/json ### Response #### Success Response (200) (Response structure not detailed in source) #### Response Example (Response example not detailed in source) ``` -------------------------------- ### Fetch Comments by Username using cURL Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_69f5caca-a3b1-43f6-80e5-51bfc949df97 Use this cURL command to make a GET request to the Reddit API endpoint to retrieve comments for a specific username, sorted by 'hot'. Ensure you replace placeholders with actual values. ```cURL curl --request GET \ --url 'https://reddit34.p.rapidapi.com/getCommentsByUsername?username=spez&sort=hot' \ --header 'Content-Type: application/json' \ --header 'x-rapidapi-host: reddit34.p.rapidapi.com' ``` -------------------------------- ### Get Top Comments By Username Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_bd966729-3bd8-4241-9dcd-da083993985b Retrieves the top comments for a given username within a specified time frame. This endpoint requires a username and a time period, with an optional cursor for pagination. ```APIDOC ## GET /getTopCommentsByUsername ### Description Retrieves the top comments for a given username within a specified time frame. This endpoint requires a username and a time period, with an optional cursor for pagination. ### Method GET ### Endpoint /getTopCommentsByUsername ### Parameters #### Query Parameters - **username** (String) - Required - The username to fetch comments for. - **time** (String) - Required - The time frame for comments. Options: `hour`, `day`, `week`, `month`, `year`, `all`. - **cursor** (String) - Optional - Used for pagination to fetch the next set of results. ### Request Example ```json { "username": "GoldenChrysus", "time": "all" } ``` ### Response #### Success Response (200) (Response structure not detailed in the source) #### Response Example (Response example not detailed in the source) ``` -------------------------------- ### Fetch Posts by Subreddit using cURL Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_f5785ad4-83bb-405a-9b29-f19a1b448ab0 This snippet demonstrates how to fetch posts from a specific subreddit using the cURL command-line tool. Ensure you replace 'memes' and 'new' with your desired subreddit and sort order. ```curl curl --request GET \ --url 'https://reddit34.p.rapidapi.com/getPostsBySubreddit?subreddit=memes&sort=new' \ --header 'Content-Type: application/json' \ --header 'x-rapidapi-host: reddit34.p.rapidapi.com' ``` -------------------------------- ### Get Best Popular Posts Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_9d57baed-3658-4084-b43c-bee22aea7d78 Retrieves the best popular posts from Reddit. This endpoint supports pagination via a cursor. ```APIDOC ## GET /getBestPopularPosts ### Description Retrieves the best popular posts from Reddit. This endpoint supports pagination via a cursor. ### Method GET ### Endpoint https://reddit34.p.rapidapi.com/getBestPopularPosts ### Parameters #### Query Parameters - **cursor** (string) - Optional - Pagination cursor from previous response - **x-rapidapi-host** (string) - Required - The RapidAPI host header. ### Request Example ```json { "example": "curl --request GET \n\t--url https://reddit34.p.rapidapi.com/getBestPopularPosts \n\t--header 'Content-Type: application/json' \n\t--header 'x-rapidapi-host: reddit34.p.rapidapi.com'" } ``` ### Response #### Success Response (200) - **data** (object) - Contains the list of posts and pagination information. - **data.children** (array) - List of posts. - **data.after** (string) - Cursor for the next page of results. #### Response Example ```json { "example": "{\n \"kind\": \"Listing\",\n \"data\": {\n \"modhash\": \"\",\n \"dist\": 25,\n \"children\": [\n {\n \"kind\": \"t3\",\n \"data\": {\n \"domain\": \"reddit.com\",\n \"banned_at_utc\": null,\n \"selftext_html\": null,\n \"selftext\": \"\",\n \"likes\": null,\n \"suggested_sort\": null,\n \"user_reports\": [],\n \"secure_media\": null,\n \"link_flair_text\": null,\n \"id\": \"123xyz\",\n \"from_kind\": null,\n \"gilded\": 0,\n \"clicked\": false,\n \"title\": \"Example Post Title\",\n \"link_flair_css_class\": null,\n \"subreddit_name_prefixed\": \"r/example\",\n \"downs\": 0,\n \"hide_score\": false,\n \"name\": \"t3_123xyz\",\n \"query_id\": null,\n \"author_prefixed\": \"u/exampleuser\",\n \"is_self\": false,\n \"from_id\": null,\n \"created_utc\": 1678886400,\n \"score\": 1000,\n \"num_comments\": 100,\n \"over_18\": false,\n \"thumbnail\": \"https://example.com/thumbnail.jpg\",\n \"subreddit_id\": \"t5_example\",\n \"author_id\": null,\n \"locked\": false,\n \"hidden\": false,\n \"thumbnail_width\": 140,\n \"edited\": false,\n \"thumbnail_height\": 140,\n \"permalink\": \"/r/example/comments/123xyz/example_post_title/\",\n \"subreddit\": \"example\",\n \"created\": 1678886400,\n \"url\": \"https://example.com/article\",\n \"author\": \"exampleuser\",\n \"saved\": false,\n \"num_reports\": null,\n \"is_robot_ Rater\": false,\n \"ups\": 1000\n }\n }\n ],\n \"after\": \"t3_abcde\",\n \"before\": null\n }\n}" } ``` ``` -------------------------------- ### Fetch Post Comments using cURL Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_869beb0c-f19f-49af-aa97-4cc6292e56cc Use this cURL command to retrieve comments for a given Reddit post URL. Ensure you replace the placeholder URL with the actual post URL. ```curl curl --request GET \ --url 'https://reddit34.p.rapidapi.com/getPostComments?post_url=https%3A%2F%2Fwww.reddit.com%2Fr%2Ffut%2Fcomments%2F1jv41on%2Fbaby_coming_in_team_2%2F' \ --header 'Content-Type: application/json' \ --header 'x-rapidapi-host: reddit34.p.rapidapi.com' ``` -------------------------------- ### Get Subreddit Moderators Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_2d4132cb-a69f-453f-8c66-e5f1c7684751 Retrieves a list of moderators for a specified subreddit. This endpoint requires the subreddit name as a query parameter. ```APIDOC ## GET /getSubredditModerators ### Description Retrieves a list of moderators for a specified subreddit. ### Method GET ### Endpoint /getSubredditModerators ### Parameters #### Query Parameters - **subreddit** (String) - Required - Name of the subreddit (e.g. askreddit) - **x-rapidapi-host** (String) - Required - The host for the RapidAPI request. ### Request Example ```json { "subreddit": "askreddit" } ``` ### Response #### Success Response (200) (Response structure not provided in source) #### Response Example (Response example not provided in source) ``` -------------------------------- ### Search Reddit Users Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_aba5324d-2e5c-4499-a63a-8f8f8e0d29b1 Use this cURL command to search for Reddit users by a query. Ensure the 'x-rapidapi-host' header is correctly set. ```cURL curl --request GET \ --url 'https://reddit34.p.rapidapi.com/getSearchUsers?query=spez' \ --header 'Content-Type: application/json' \ --header 'x-rapidapi-host: reddit34.p.rapidapi.com' ``` -------------------------------- ### getUserOverview Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_d5d4a6c5-dedf-4ee7-9102-4d8473d88536 Retrieves the user overview for a specified Reddit username. Supports sorting by hot, new, top, or controversial, with optional time filtering for 'top' and 'controversial' sorts. Pagination is supported via a cursor. ```APIDOC ## GET /getUserOverview ### Description Retrieves the user overview for a specified Reddit username. Supports sorting by hot, new, top, or controversial, with optional time filtering for 'top' and 'controversial' sorts. Pagination is supported via a cursor. ### Method GET ### Endpoint /getUserOverview ### Parameters #### Query Parameters - **username** (String) - Required - Reddit username (e.g. spez) - **sort** (String) - Required - Sort order: hot, new, top, controversial - **time** (String) - Optional - Required when sort is top or controversial: hour, day, week, month, year, all - **cursor** (String) - Optional - Pagination cursor from previous response ### Request Example ```json { "example": "https://reddit34.p.rapidapi.com/getUserOverview?username=spez&sort=new" } ``` ### Response #### Success Response (200) - **cursor** (String) - Description for cursor - **data** (Object) - Description for data #### Response Example { "example": "{\"cursor\": \"some_pagination_cursor\", \"data\": {}}" } ``` -------------------------------- ### Fetch Popular Posts using cURL Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_2a66c170-71ab-4e15-8ac6-788e1f70be5e Use this cURL command to fetch popular posts from the Reddit API. Ensure you replace placeholders with your actual API key and desired sort order. ```cURL curl --request GET \ --url 'https://reddit34.p.rapidapi.com/getPopularPosts?sort=new' \ --header 'Content-Type: application/json' \ --header 'x-rapidapi-host: reddit34.p.rapidapi.com' ``` -------------------------------- ### Get Controversial Posts Source: https://rapidapi.com/socialminer/api/reddit34/playground/apiendpoint_56583a42-76c1-4054-82fb-5003eff31ca1 Retrieves controversial posts from a subreddit. You can filter by time (hour, day, week, month, year, all) and use a cursor for pagination. ```APIDOC ## GET /getControversialPostsBySubreddit ### Description Fetches controversial posts from a specified subreddit. This endpoint allows filtering by time and supports pagination. ### Method GET ### Endpoint /getControversialPostsBySubreddit ### Parameters #### Query Parameters - **subreddit** (String) - Required - Name of the subreddit (e.g. askreddit) - **time** (String) - Required - Time filter: hour, day, week, month, year, all - **cursor** (String) - Optional - Pagination cursor from previous response #### Headers - **X-RapidAPI-Host** (String) - Required ### Request Example ```http GET https://reddit34.p.rapidapi.com/getControversialPostsBySubreddit?subreddit=askreddit&time=all Content-Type: application/json X-RapidAPI-Host: reddit34.p.rapidapi.com ``` ### Response #### Success Response (200) (Response structure not detailed in source) #### Response Example (Response example not detailed in source) ```