All URIs are relative to https://scrapebadger.com
| Method | HTTP request | Description |
|---|---|---|
| InstagramAboutThisAccount | GET /v1/instagram/users/{username}/about | About this account |
| InstagramBlendedTopSearch | GET /v1/instagram/search/top | Blended top search |
| InstagramGetActiveStories | GET /v1/instagram/users/{username}/stories | Get active stories |
| InstagramGetAudioTrack | GET /v1/instagram/audio/{audio_id} | Get audio track |
| InstagramGetComments | GET /v1/instagram/media/{code}/comments | Get comments |
| InstagramGetFollowers | GET /v1/instagram/users/{username}/followers | Get followers |
| InstagramGetFollowing | GET /v1/instagram/users/{username}/following | Get following |
| InstagramGetHashtagInfo | GET /v1/instagram/hashtags/{tag} | Get hashtag info |
| InstagramGetHighlights | GET /v1/instagram/users/{username}/highlights | Get highlights |
| InstagramGetLikers | GET /v1/instagram/media/{code}/likers | Get likers |
| InstagramGetLocation | GET /v1/instagram/locations/{location_pk} | Get location |
| InstagramGetPostReelDetail | GET /v1/instagram/media/{code} | Get post/reel detail |
| InstagramGetProfile | GET /v1/instagram/users/{username} | Get profile |
| InstagramGetTaggedPosts | GET /v1/instagram/users/{username}/tagged | Get tagged posts |
| InstagramGetUserPosts | GET /v1/instagram/users/{username}/posts | Get user posts |
| InstagramGetUserReels | GET /v1/instagram/users/{username}/reels | Get user reels |
| InstagramHealth | GET /v1/instagram/health | Health |
| InstagramHealthHead | HEAD /v1/instagram/health | Health |
| InstagramRecentHashtagPosts | GET /v1/instagram/hashtags/{tag}/recent | Recent hashtag posts |
| InstagramRelatedProfiles | GET /v1/instagram/users/{username}/related | Related profiles |
| InstagramSearchHashtags | GET /v1/instagram/search/hashtags | Search hashtags |
| InstagramSearchUsers | GET /v1/instagram/search/users | Search users |
| InstagramTopHashtagPosts | GET /v1/instagram/hashtags/{tag}/top | Top hashtag posts |
Object InstagramAboutThisAccount (string username)
About this account
Temporarily unavailable. The authenticated Instagram tier is offline, so this endpoint currently returns 503 temporarily_unavailable (not billed, Retry-After set) — see https://docs.scrapebadger.com/instagram/overview. Country, join date and former usernames.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using ScrapeBadger.Api;
using ScrapeBadger.Client;
using ScrapeBadger.Model;
namespace Example
{
public class InstagramAboutThisAccountExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://scrapebadger.com";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("X-API-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("X-API-Key", "Bearer");
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new InstagramApi(httpClient, config, httpClientHandler);
var username = "username_example"; // string |
try
{
// About this account
Object result = apiInstance.InstagramAboutThisAccount(username);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramAboutThisAccount: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// About this account
ApiResponse<Object> response = apiInstance.InstagramAboutThisAccountWithHttpInfo(username);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramAboutThisAccountWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| username | string |
Object
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Object InstagramBlendedTopSearch (string query)
Blended top search
Temporarily unavailable. The authenticated Instagram tier is offline, so this endpoint currently returns 503 temporarily_unavailable (not billed, Retry-After set) — see https://docs.scrapebadger.com/instagram/overview.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using ScrapeBadger.Api;
using ScrapeBadger.Client;
using ScrapeBadger.Model;
namespace Example
{
public class InstagramBlendedTopSearchExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://scrapebadger.com";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("X-API-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("X-API-Key", "Bearer");
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new InstagramApi(httpClient, config, httpClientHandler);
var query = "query_example"; // string |
try
{
// Blended top search
Object result = apiInstance.InstagramBlendedTopSearch(query);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramBlendedTopSearch: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Blended top search
ApiResponse<Object> response = apiInstance.InstagramBlendedTopSearchWithHttpInfo(query);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramBlendedTopSearchWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| query | string |
Object
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Object InstagramGetActiveStories (string username)
Get active stories
Temporarily unavailable. The authenticated Instagram tier is offline, so this endpoint currently returns 503 temporarily_unavailable (not billed, Retry-After set) — see https://docs.scrapebadger.com/instagram/overview. Active stories (account pool only).
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using ScrapeBadger.Api;
using ScrapeBadger.Client;
using ScrapeBadger.Model;
namespace Example
{
public class InstagramGetActiveStoriesExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://scrapebadger.com";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("X-API-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("X-API-Key", "Bearer");
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new InstagramApi(httpClient, config, httpClientHandler);
var username = "username_example"; // string |
try
{
// Get active stories
Object result = apiInstance.InstagramGetActiveStories(username);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramGetActiveStories: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Get active stories
ApiResponse<Object> response = apiInstance.InstagramGetActiveStoriesWithHttpInfo(username);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramGetActiveStoriesWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| username | string |
Object
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Object InstagramGetAudioTrack (string audioId)
Get audio track
Temporarily unavailable. The authenticated Instagram tier is offline, so this endpoint currently returns 503 temporarily_unavailable (not billed, Retry-After set) — see https://docs.scrapebadger.com/instagram/overview.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using ScrapeBadger.Api;
using ScrapeBadger.Client;
using ScrapeBadger.Model;
namespace Example
{
public class InstagramGetAudioTrackExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://scrapebadger.com";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("X-API-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("X-API-Key", "Bearer");
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new InstagramApi(httpClient, config, httpClientHandler);
var audioId = "audioId_example"; // string |
try
{
// Get audio track
Object result = apiInstance.InstagramGetAudioTrack(audioId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramGetAudioTrack: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Get audio track
ApiResponse<Object> response = apiInstance.InstagramGetAudioTrackWithHttpInfo(audioId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramGetAudioTrackWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| audioId | string |
Object
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Object InstagramGetComments (string code, int? amount = null, string cursor = null)
Get comments
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using ScrapeBadger.Api;
using ScrapeBadger.Client;
using ScrapeBadger.Model;
namespace Example
{
public class InstagramGetCommentsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://scrapebadger.com";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("X-API-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("X-API-Key", "Bearer");
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new InstagramApi(httpClient, config, httpClientHandler);
var code = "code_example"; // string |
var amount = 20; // int? | (optional) (default to 20)
var cursor = "cursor_example"; // string | (optional)
try
{
// Get comments
Object result = apiInstance.InstagramGetComments(code, amount, cursor);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramGetComments: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Get comments
ApiResponse<Object> response = apiInstance.InstagramGetCommentsWithHttpInfo(code, amount, cursor);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramGetCommentsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| code | string | ||
| amount | int? | [optional] [default to 20] | |
| cursor | string | [optional] |
Object
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Object InstagramGetFollowers (string username, int? amount = null, string cursor = null, string order = null)
Get followers
Temporarily unavailable. The authenticated Instagram tier is offline, so this endpoint currently returns 503 temporarily_unavailable (not billed, Retry-After set) — see https://docs.scrapebadger.com/instagram/overview. Followers list, paginated (account pool).
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using ScrapeBadger.Api;
using ScrapeBadger.Client;
using ScrapeBadger.Model;
namespace Example
{
public class InstagramGetFollowersExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://scrapebadger.com";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("X-API-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("X-API-Key", "Bearer");
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new InstagramApi(httpClient, config, httpClientHandler);
var username = "username_example"; // string |
var amount = 50; // int? | (optional) (default to 50)
var cursor = "cursor_example"; // string | (optional)
var order = "order_example"; // string | date_followed_latest | date_followed_earliest (optional)
try
{
// Get followers
Object result = apiInstance.InstagramGetFollowers(username, amount, cursor, order);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramGetFollowers: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Get followers
ApiResponse<Object> response = apiInstance.InstagramGetFollowersWithHttpInfo(username, amount, cursor, order);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramGetFollowersWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| username | string | ||
| amount | int? | [optional] [default to 50] | |
| cursor | string | [optional] | |
| order | string | date_followed_latest | date_followed_earliest |
Object
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Object InstagramGetFollowing (string username, int? amount = null, string cursor = null)
Get following
Temporarily unavailable. The authenticated Instagram tier is offline, so this endpoint currently returns 503 temporarily_unavailable (not billed, Retry-After set) — see https://docs.scrapebadger.com/instagram/overview.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using ScrapeBadger.Api;
using ScrapeBadger.Client;
using ScrapeBadger.Model;
namespace Example
{
public class InstagramGetFollowingExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://scrapebadger.com";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("X-API-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("X-API-Key", "Bearer");
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new InstagramApi(httpClient, config, httpClientHandler);
var username = "username_example"; // string |
var amount = 50; // int? | (optional) (default to 50)
var cursor = "cursor_example"; // string | (optional)
try
{
// Get following
Object result = apiInstance.InstagramGetFollowing(username, amount, cursor);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramGetFollowing: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Get following
ApiResponse<Object> response = apiInstance.InstagramGetFollowingWithHttpInfo(username, amount, cursor);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramGetFollowingWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| username | string | ||
| amount | int? | [optional] [default to 50] | |
| cursor | string | [optional] |
Object
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Object InstagramGetHashtagInfo (string tag)
Get hashtag info
Temporarily unavailable. The authenticated Instagram tier is offline, so this endpoint currently returns 503 temporarily_unavailable (not billed, Retry-After set) — see https://docs.scrapebadger.com/instagram/overview.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using ScrapeBadger.Api;
using ScrapeBadger.Client;
using ScrapeBadger.Model;
namespace Example
{
public class InstagramGetHashtagInfoExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://scrapebadger.com";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("X-API-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("X-API-Key", "Bearer");
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new InstagramApi(httpClient, config, httpClientHandler);
var tag = "tag_example"; // string |
try
{
// Get hashtag info
Object result = apiInstance.InstagramGetHashtagInfo(tag);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramGetHashtagInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Get hashtag info
ApiResponse<Object> response = apiInstance.InstagramGetHashtagInfoWithHttpInfo(tag);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramGetHashtagInfoWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| tag | string |
Object
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Object InstagramGetHighlights (string username)
Get highlights
Temporarily unavailable. The authenticated Instagram tier is offline, so this endpoint currently returns 503 temporarily_unavailable (not billed, Retry-After set) — see https://docs.scrapebadger.com/instagram/overview.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using ScrapeBadger.Api;
using ScrapeBadger.Client;
using ScrapeBadger.Model;
namespace Example
{
public class InstagramGetHighlightsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://scrapebadger.com";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("X-API-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("X-API-Key", "Bearer");
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new InstagramApi(httpClient, config, httpClientHandler);
var username = "username_example"; // string |
try
{
// Get highlights
Object result = apiInstance.InstagramGetHighlights(username);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramGetHighlights: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Get highlights
ApiResponse<Object> response = apiInstance.InstagramGetHighlightsWithHttpInfo(username);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramGetHighlightsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| username | string |
Object
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Object InstagramGetLikers (string code)
Get likers
Temporarily unavailable. The authenticated Instagram tier is offline, so this endpoint currently returns 503 temporarily_unavailable (not billed, Retry-After set) — see https://docs.scrapebadger.com/instagram/overview.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using ScrapeBadger.Api;
using ScrapeBadger.Client;
using ScrapeBadger.Model;
namespace Example
{
public class InstagramGetLikersExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://scrapebadger.com";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("X-API-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("X-API-Key", "Bearer");
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new InstagramApi(httpClient, config, httpClientHandler);
var code = "code_example"; // string |
try
{
// Get likers
Object result = apiInstance.InstagramGetLikers(code);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramGetLikers: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Get likers
ApiResponse<Object> response = apiInstance.InstagramGetLikersWithHttpInfo(code);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramGetLikersWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| code | string |
Object
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Object InstagramGetLocation (int locationPk)
Get location
Temporarily unavailable. The authenticated Instagram tier is offline, so this endpoint currently returns 503 temporarily_unavailable (not billed, Retry-After set) — see https://docs.scrapebadger.com/instagram/overview.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using ScrapeBadger.Api;
using ScrapeBadger.Client;
using ScrapeBadger.Model;
namespace Example
{
public class InstagramGetLocationExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://scrapebadger.com";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("X-API-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("X-API-Key", "Bearer");
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new InstagramApi(httpClient, config, httpClientHandler);
var locationPk = 56; // int |
try
{
// Get location
Object result = apiInstance.InstagramGetLocation(locationPk);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramGetLocation: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Get location
ApiResponse<Object> response = apiInstance.InstagramGetLocationWithHttpInfo(locationPk);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramGetLocationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| locationPk | int |
Object
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Object InstagramGetPostReelDetail (string code)
Get post/reel detail
Single post or reel: caption, media, counts, tags, location, carousel.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using ScrapeBadger.Api;
using ScrapeBadger.Client;
using ScrapeBadger.Model;
namespace Example
{
public class InstagramGetPostReelDetailExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://scrapebadger.com";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("X-API-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("X-API-Key", "Bearer");
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new InstagramApi(httpClient, config, httpClientHandler);
var code = "code_example"; // string |
try
{
// Get post/reel detail
Object result = apiInstance.InstagramGetPostReelDetail(code);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramGetPostReelDetail: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Get post/reel detail
ApiResponse<Object> response = apiInstance.InstagramGetPostReelDetailWithHttpInfo(code);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramGetPostReelDetailWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| code | string |
Object
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Object InstagramGetProfile (string username)
Get profile
Full public profile: bio, counts, verification, business contact, links.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using ScrapeBadger.Api;
using ScrapeBadger.Client;
using ScrapeBadger.Model;
namespace Example
{
public class InstagramGetProfileExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://scrapebadger.com";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("X-API-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("X-API-Key", "Bearer");
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new InstagramApi(httpClient, config, httpClientHandler);
var username = "username_example"; // string |
try
{
// Get profile
Object result = apiInstance.InstagramGetProfile(username);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramGetProfile: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Get profile
ApiResponse<Object> response = apiInstance.InstagramGetProfileWithHttpInfo(username);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramGetProfileWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| username | string |
Object
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Object InstagramGetTaggedPosts (string username, int? amount = null, string cursor = null)
Get tagged posts
Temporarily unavailable. The authenticated Instagram tier is offline, so this endpoint currently returns 503 temporarily_unavailable (not billed, Retry-After set) — see https://docs.scrapebadger.com/instagram/overview.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using ScrapeBadger.Api;
using ScrapeBadger.Client;
using ScrapeBadger.Model;
namespace Example
{
public class InstagramGetTaggedPostsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://scrapebadger.com";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("X-API-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("X-API-Key", "Bearer");
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new InstagramApi(httpClient, config, httpClientHandler);
var username = "username_example"; // string |
var amount = 20; // int? | (optional) (default to 20)
var cursor = "cursor_example"; // string | (optional)
try
{
// Get tagged posts
Object result = apiInstance.InstagramGetTaggedPosts(username, amount, cursor);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramGetTaggedPosts: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Get tagged posts
ApiResponse<Object> response = apiInstance.InstagramGetTaggedPostsWithHttpInfo(username, amount, cursor);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramGetTaggedPostsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| username | string | ||
| amount | int? | [optional] [default to 20] | |
| cursor | string | [optional] |
Object
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Object InstagramGetUserPosts (string username, int? amount = null, string cursor = null)
Get user posts
Timeline posts, paginated.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using ScrapeBadger.Api;
using ScrapeBadger.Client;
using ScrapeBadger.Model;
namespace Example
{
public class InstagramGetUserPostsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://scrapebadger.com";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("X-API-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("X-API-Key", "Bearer");
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new InstagramApi(httpClient, config, httpClientHandler);
var username = "username_example"; // string |
var amount = 20; // int? | (optional) (default to 20)
var cursor = "cursor_example"; // string | (optional)
try
{
// Get user posts
Object result = apiInstance.InstagramGetUserPosts(username, amount, cursor);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramGetUserPosts: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Get user posts
ApiResponse<Object> response = apiInstance.InstagramGetUserPostsWithHttpInfo(username, amount, cursor);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramGetUserPostsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| username | string | ||
| amount | int? | [optional] [default to 20] | |
| cursor | string | [optional] |
Object
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Object InstagramGetUserReels (string username, int? amount = null, string cursor = null)
Get user reels
Temporarily unavailable. The authenticated Instagram tier is offline, so this endpoint currently returns 503 temporarily_unavailable (not billed, Retry-After set) — see https://docs.scrapebadger.com/instagram/overview.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using ScrapeBadger.Api;
using ScrapeBadger.Client;
using ScrapeBadger.Model;
namespace Example
{
public class InstagramGetUserReelsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://scrapebadger.com";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("X-API-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("X-API-Key", "Bearer");
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new InstagramApi(httpClient, config, httpClientHandler);
var username = "username_example"; // string |
var amount = 20; // int? | (optional) (default to 20)
var cursor = "cursor_example"; // string | (optional)
try
{
// Get user reels
Object result = apiInstance.InstagramGetUserReels(username, amount, cursor);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramGetUserReels: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Get user reels
ApiResponse<Object> response = apiInstance.InstagramGetUserReelsWithHttpInfo(username, amount, cursor);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramGetUserReelsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| username | string | ||
| amount | int? | [optional] [default to 20] | |
| cursor | string | [optional] |
Object
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Object InstagramHealth ()
Health
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using ScrapeBadger.Api;
using ScrapeBadger.Client;
using ScrapeBadger.Model;
namespace Example
{
public class InstagramHealthExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://scrapebadger.com";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("X-API-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("X-API-Key", "Bearer");
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new InstagramApi(httpClient, config, httpClientHandler);
try
{
// Health
Object result = apiInstance.InstagramHealth();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramHealth: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Health
ApiResponse<Object> response = apiInstance.InstagramHealthWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramHealthWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}This endpoint does not need any parameter.
Object
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Object InstagramHealthHead ()
Health
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using ScrapeBadger.Api;
using ScrapeBadger.Client;
using ScrapeBadger.Model;
namespace Example
{
public class InstagramHealthHeadExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://scrapebadger.com";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("X-API-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("X-API-Key", "Bearer");
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new InstagramApi(httpClient, config, httpClientHandler);
try
{
// Health
Object result = apiInstance.InstagramHealthHead();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramHealthHead: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Health
ApiResponse<Object> response = apiInstance.InstagramHealthHeadWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramHealthHeadWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}This endpoint does not need any parameter.
Object
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Object InstagramRecentHashtagPosts (string tag, int? amount = null, string cursor = null)
Recent hashtag posts
Temporarily unavailable. The authenticated Instagram tier is offline, so this endpoint currently returns 503 temporarily_unavailable (not billed, Retry-After set) — see https://docs.scrapebadger.com/instagram/overview.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using ScrapeBadger.Api;
using ScrapeBadger.Client;
using ScrapeBadger.Model;
namespace Example
{
public class InstagramRecentHashtagPostsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://scrapebadger.com";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("X-API-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("X-API-Key", "Bearer");
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new InstagramApi(httpClient, config, httpClientHandler);
var tag = "tag_example"; // string |
var amount = 20; // int? | (optional) (default to 20)
var cursor = "cursor_example"; // string | (optional)
try
{
// Recent hashtag posts
Object result = apiInstance.InstagramRecentHashtagPosts(tag, amount, cursor);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramRecentHashtagPosts: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Recent hashtag posts
ApiResponse<Object> response = apiInstance.InstagramRecentHashtagPostsWithHttpInfo(tag, amount, cursor);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramRecentHashtagPostsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| tag | string | ||
| amount | int? | [optional] [default to 20] | |
| cursor | string | [optional] |
Object
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Object InstagramRelatedProfiles (string username)
Related profiles
Temporarily unavailable. The authenticated Instagram tier is offline, so this endpoint currently returns 503 temporarily_unavailable (not billed, Retry-After set) — see https://docs.scrapebadger.com/instagram/overview.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using ScrapeBadger.Api;
using ScrapeBadger.Client;
using ScrapeBadger.Model;
namespace Example
{
public class InstagramRelatedProfilesExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://scrapebadger.com";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("X-API-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("X-API-Key", "Bearer");
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new InstagramApi(httpClient, config, httpClientHandler);
var username = "username_example"; // string |
try
{
// Related profiles
Object result = apiInstance.InstagramRelatedProfiles(username);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramRelatedProfiles: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Related profiles
ApiResponse<Object> response = apiInstance.InstagramRelatedProfilesWithHttpInfo(username);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramRelatedProfilesWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| username | string |
Object
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Object InstagramSearchHashtags (string query)
Search hashtags
Temporarily unavailable. The authenticated Instagram tier is offline, so this endpoint currently returns 503 temporarily_unavailable (not billed, Retry-After set) — see https://docs.scrapebadger.com/instagram/overview.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using ScrapeBadger.Api;
using ScrapeBadger.Client;
using ScrapeBadger.Model;
namespace Example
{
public class InstagramSearchHashtagsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://scrapebadger.com";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("X-API-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("X-API-Key", "Bearer");
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new InstagramApi(httpClient, config, httpClientHandler);
var query = "query_example"; // string |
try
{
// Search hashtags
Object result = apiInstance.InstagramSearchHashtags(query);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramSearchHashtags: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Search hashtags
ApiResponse<Object> response = apiInstance.InstagramSearchHashtagsWithHttpInfo(query);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramSearchHashtagsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| query | string |
Object
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Object InstagramSearchUsers (string query)
Search users
Temporarily unavailable. The authenticated Instagram tier is offline, so this endpoint currently returns 503 temporarily_unavailable (not billed, Retry-After set) — see https://docs.scrapebadger.com/instagram/overview.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using ScrapeBadger.Api;
using ScrapeBadger.Client;
using ScrapeBadger.Model;
namespace Example
{
public class InstagramSearchUsersExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://scrapebadger.com";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("X-API-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("X-API-Key", "Bearer");
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new InstagramApi(httpClient, config, httpClientHandler);
var query = "query_example"; // string |
try
{
// Search users
Object result = apiInstance.InstagramSearchUsers(query);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramSearchUsers: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Search users
ApiResponse<Object> response = apiInstance.InstagramSearchUsersWithHttpInfo(query);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramSearchUsersWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| query | string |
Object
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Object InstagramTopHashtagPosts (string tag, int? amount = null, string cursor = null)
Top hashtag posts
Temporarily unavailable. The authenticated Instagram tier is offline, so this endpoint currently returns 503 temporarily_unavailable (not billed, Retry-After set) — see https://docs.scrapebadger.com/instagram/overview.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using ScrapeBadger.Api;
using ScrapeBadger.Client;
using ScrapeBadger.Model;
namespace Example
{
public class InstagramTopHashtagPostsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://scrapebadger.com";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("X-API-Key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("X-API-Key", "Bearer");
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new InstagramApi(httpClient, config, httpClientHandler);
var tag = "tag_example"; // string |
var amount = 20; // int? | (optional) (default to 20)
var cursor = "cursor_example"; // string | (optional)
try
{
// Top hashtag posts
Object result = apiInstance.InstagramTopHashtagPosts(tag, amount, cursor);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramTopHashtagPosts: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Top hashtag posts
ApiResponse<Object> response = apiInstance.InstagramTopHashtagPostsWithHttpInfo(tag, amount, cursor);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling InstagramApi.InstagramTopHashtagPostsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| tag | string | ||
| amount | int? | [optional] [default to 20] | |
| cursor | string | [optional] |
Object
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]