All URIs are relative to https://scrapebadger.com, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| redditGetCrossPosts() | GET /v1/reddit/posts/{post_id}/duplicates | Get cross-posts |
| redditGetPostComments() | GET /v1/reddit/posts/{post_id}/comments | Get post comments |
| redditGetPostDetail() | GET /v1/reddit/posts/{post_id} | Get post detail |
| redditGetPostsByDomain() | GET /v1/reddit/domains/{domain}/posts | Get posts by domain |
| redditGetSubredditInfo() | GET /v1/reddit/subreddits/{subreddit} | Get subreddit info |
| redditGetSubredditPosts() | GET /v1/reddit/subreddits/{subreddit}/posts | Get subreddit posts |
| redditGetSubredditRules() | GET /v1/reddit/subreddits/{subreddit}/rules | Get subreddit rules |
| redditGetTrendingPosts() | GET /v1/reddit/posts/trending | Get trending posts |
| redditGetUserProfile() | GET /v1/reddit/users/{username} | Get user profile |
| redditGetUserSComments() | GET /v1/reddit/users/{username}/comments | Get user's comments |
| redditGetUserSModeratedSubreddits() | GET /v1/reddit/users/{username}/moderated | Get user's moderated subreddits |
| redditGetUserSPosts() | GET /v1/reddit/users/{username}/posts | Get user's posts |
| redditGetUserSTrophies() | GET /v1/reddit/users/{username}/trophies | Get user's trophies |
| redditGetWikiPageContent() | GET /v1/reddit/subreddits/{subreddit}/wiki/{page} | Get wiki page content |
| redditListWikiPages() | GET /v1/reddit/subreddits/{subreddit}/wiki | List wiki pages |
| redditNewSubreddits() | GET /v1/reddit/subreddits/new | New subreddits |
| redditPopularSubreddits() | GET /v1/reddit/subreddits/popular | Popular subreddits |
| redditRedditScraperHealthCheck() | GET /v1/reddit/health | Reddit scraper health check |
| redditRedditScraperHealthCheckHead() | HEAD /v1/reddit/health | Reddit scraper health check |
| redditSearchRedditPosts() | GET /v1/reddit/search/posts | Search Reddit posts |
| redditSearchSubreddits() | GET /v1/reddit/search/subreddits | Search subreddits |
| redditSearchUsers() | GET /v1/reddit/search/users | Search users |
redditGetCrossPosts($post_id, $limit, $after): mixedGet cross-posts
Get cross-posts and duplicates of a Reddit post.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\RedditApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$post_id = 'post_id_example'; // string
$limit = 25; // int
$after = 'after_example'; // string
try {
$result = $apiInstance->redditGetCrossPosts($post_id, $limit, $after);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RedditApi->redditGetCrossPosts: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| post_id | string | ||
| limit | int | [optional] [default to 25] | |
| after | string | [optional] |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
redditGetPostComments($post_id, $sort, $limit, $depth): mixedGet post comments
Get comment tree for a Reddit post.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\RedditApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$post_id = 'post_id_example'; // string
$sort = 'confidence'; // string | Sort: confidence, top, new, controversial, old, qa
$limit = 25; // int
$depth = 56; // int
try {
$result = $apiInstance->redditGetPostComments($post_id, $sort, $limit, $depth);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RedditApi->redditGetPostComments: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| post_id | string | ||
| sort | string | Sort: confidence, top, new, controversial, old, qa | [optional] [default to 'confidence'] |
| limit | int | [optional] [default to 25] | |
| depth | int | [optional] |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
redditGetPostDetail($post_id): mixedGet post detail
Get detailed information about a Reddit post.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\RedditApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$post_id = 'post_id_example'; // string
try {
$result = $apiInstance->redditGetPostDetail($post_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RedditApi->redditGetPostDetail: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| post_id | string |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
redditGetPostsByDomain($domain, $sort, $t, $limit, $after): mixedGet posts by domain
Get Reddit posts linking to a specific domain.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\RedditApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$domain = 'domain_example'; // string
$sort = 'hot'; // string
$t = 'all'; // string
$limit = 25; // int
$after = 'after_example'; // string
try {
$result = $apiInstance->redditGetPostsByDomain($domain, $sort, $t, $limit, $after);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RedditApi->redditGetPostsByDomain: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| domain | string | ||
| sort | string | [optional] [default to 'hot'] | |
| t | string | [optional] [default to 'all'] | |
| limit | int | [optional] [default to 25] | |
| after | string | [optional] |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
redditGetSubredditInfo($subreddit): mixedGet subreddit info
Get detailed information about a subreddit.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\RedditApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$subreddit = 'subreddit_example'; // string
try {
$result = $apiInstance->redditGetSubredditInfo($subreddit);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RedditApi->redditGetSubredditInfo: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| subreddit | string |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
redditGetSubredditPosts($subreddit, $sort, $t, $limit, $after): mixedGet subreddit posts
Get posts from a subreddit with sorting options.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\RedditApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$subreddit = 'subreddit_example'; // string
$sort = 'hot'; // string | Sort: hot, new, top, rising, controversial
$t = 'all'; // string | Time filter
$limit = 25; // int
$after = 'after_example'; // string
try {
$result = $apiInstance->redditGetSubredditPosts($subreddit, $sort, $t, $limit, $after);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RedditApi->redditGetSubredditPosts: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| subreddit | string | ||
| sort | string | Sort: hot, new, top, rising, controversial | [optional] [default to 'hot'] |
| t | string | Time filter | [optional] [default to 'all'] |
| limit | int | [optional] [default to 25] | |
| after | string | [optional] |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
redditGetSubredditRules($subreddit): mixedGet subreddit rules
Get the rules of a subreddit.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\RedditApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$subreddit = 'subreddit_example'; // string
try {
$result = $apiInstance->redditGetSubredditRules($subreddit);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RedditApi->redditGetSubredditRules: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| subreddit | string |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
redditGetTrendingPosts($sort, $t, $limit, $after): mixedGet trending posts
Get trending posts from Reddit's front page.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\RedditApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$sort = 'hot'; // string | Sort: hot, new, top, rising, controversial, best
$t = 'day'; // string | Time filter
$limit = 25; // int
$after = 'after_example'; // string
try {
$result = $apiInstance->redditGetTrendingPosts($sort, $t, $limit, $after);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RedditApi->redditGetTrendingPosts: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| sort | string | Sort: hot, new, top, rising, controversial, best | [optional] [default to 'hot'] |
| t | string | Time filter | [optional] [default to 'day'] |
| limit | int | [optional] [default to 25] | |
| after | string | [optional] |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
redditGetUserProfile($username): mixedGet user profile
Get a Reddit user's profile.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\RedditApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$username = 'username_example'; // string
try {
$result = $apiInstance->redditGetUserProfile($username);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RedditApi->redditGetUserProfile: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| username | string |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
redditGetUserSComments($username, $sort, $t, $limit, $after): mixedGet user's comments
Get comments by a Reddit user.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\RedditApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$username = 'username_example'; // string
$sort = 'new'; // string
$t = 'all'; // string
$limit = 25; // int
$after = 'after_example'; // string
try {
$result = $apiInstance->redditGetUserSComments($username, $sort, $t, $limit, $after);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RedditApi->redditGetUserSComments: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| username | string | ||
| sort | string | [optional] [default to 'new'] | |
| t | string | [optional] [default to 'all'] | |
| limit | int | [optional] [default to 25] | |
| after | string | [optional] |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
redditGetUserSModeratedSubreddits($username): mixedGet user's moderated subreddits
Get subreddits moderated by a user.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\RedditApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$username = 'username_example'; // string
try {
$result = $apiInstance->redditGetUserSModeratedSubreddits($username);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RedditApi->redditGetUserSModeratedSubreddits: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| username | string |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
redditGetUserSPosts($username, $sort, $t, $limit, $after): mixedGet user's posts
Get posts submitted by a Reddit user.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\RedditApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$username = 'username_example'; // string
$sort = 'new'; // string
$t = 'all'; // string
$limit = 25; // int
$after = 'after_example'; // string
try {
$result = $apiInstance->redditGetUserSPosts($username, $sort, $t, $limit, $after);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RedditApi->redditGetUserSPosts: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| username | string | ||
| sort | string | [optional] [default to 'new'] | |
| t | string | [optional] [default to 'all'] | |
| limit | int | [optional] [default to 25] | |
| after | string | [optional] |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
redditGetUserSTrophies($username): mixedGet user's trophies
Get a user's trophy case.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\RedditApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$username = 'username_example'; // string
try {
$result = $apiInstance->redditGetUserSTrophies($username);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RedditApi->redditGetUserSTrophies: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| username | string |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
redditGetWikiPageContent($subreddit, $page): mixedGet wiki page content
Get the content of a specific wiki page.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\RedditApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$subreddit = 'subreddit_example'; // string
$page = 'page_example'; // string
try {
$result = $apiInstance->redditGetWikiPageContent($subreddit, $page);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RedditApi->redditGetWikiPageContent: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| subreddit | string | ||
| page | string |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
redditListWikiPages($subreddit): mixedList wiki pages
List all wiki pages in a subreddit.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\RedditApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$subreddit = 'subreddit_example'; // string
try {
$result = $apiInstance->redditListWikiPages($subreddit);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RedditApi->redditListWikiPages: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| subreddit | string |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
redditNewSubreddits($limit, $after): mixedNew subreddits
Get recently created subreddits.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\RedditApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$limit = 25; // int
$after = 'after_example'; // string
try {
$result = $apiInstance->redditNewSubreddits($limit, $after);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RedditApi->redditNewSubreddits: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| limit | int | [optional] [default to 25] | |
| after | string | [optional] |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
redditPopularSubreddits($limit, $after): mixedPopular subreddits
Get popular subreddits by subscriber count.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\RedditApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$limit = 25; // int
$after = 'after_example'; // string
try {
$result = $apiInstance->redditPopularSubreddits($limit, $after);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RedditApi->redditPopularSubreddits: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| limit | int | [optional] [default to 25] | |
| after | string | [optional] |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
redditRedditScraperHealthCheck(): mixedReddit scraper health check
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\RedditApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->redditRedditScraperHealthCheck();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RedditApi->redditRedditScraperHealthCheck: ', $e->getMessage(), PHP_EOL;
}This endpoint does not need any parameter.
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
redditRedditScraperHealthCheckHead(): mixedReddit scraper health check
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\RedditApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->redditRedditScraperHealthCheckHead();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RedditApi->redditRedditScraperHealthCheckHead: ', $e->getMessage(), PHP_EOL;
}This endpoint does not need any parameter.
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
redditSearchRedditPosts($q, $subreddit, $sort, $t, $limit, $after): mixedSearch Reddit posts
Search Reddit posts globally or within a subreddit.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\RedditApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$q = 'q_example'; // string | Search query
$subreddit = 'subreddit_example'; // string | Restrict to subreddit
$sort = 'relevance'; // string | Sort: relevance, hot, top, new, comments
$t = 'all'; // string | Time: hour, day, week, month, year, all
$limit = 25; // int
$after = 'after_example'; // string
try {
$result = $apiInstance->redditSearchRedditPosts($q, $subreddit, $sort, $t, $limit, $after);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RedditApi->redditSearchRedditPosts: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| q | string | Search query | |
| subreddit | string | Restrict to subreddit | [optional] |
| sort | string | Sort: relevance, hot, top, new, comments | [optional] [default to 'relevance'] |
| t | string | Time: hour, day, week, month, year, all | [optional] [default to 'all'] |
| limit | int | [optional] [default to 25] | |
| after | string | [optional] |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
redditSearchSubreddits($q, $limit, $after): mixedSearch subreddits
Search for subreddits by keyword.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\RedditApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$q = 'q_example'; // string | Search query
$limit = 25; // int
$after = 'after_example'; // string
try {
$result = $apiInstance->redditSearchSubreddits($q, $limit, $after);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RedditApi->redditSearchSubreddits: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| q | string | Search query | |
| limit | int | [optional] [default to 25] | |
| after | string | [optional] |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
redditSearchUsers($q, $limit, $after): mixedSearch users
Search for Reddit users.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\RedditApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$q = 'q_example'; // string | Search query
$limit = 25; // int
$after = 'after_example'; // string
try {
$result = $apiInstance->redditSearchUsers($q, $limit, $after);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RedditApi->redditSearchUsers: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| q | string | Search query | |
| limit | int | [optional] [default to 25] | |
| after | string | [optional] |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]