All URIs are relative to https://api.unifapi.com
| Method | HTTP request | Description |
|---|---|---|
| InstagramExploreGet | Get /instagram/explore | Browse Instagram's Explore feed |
| InstagramLocationsIdGet | Get /instagram/locations/{id} | Get an Instagram location by id |
| InstagramLocationsIdNearbyGet | Get /instagram/locations/{id}/nearby | List Instagram locations geographically near a given location |
| InstagramLocationsIdPostsGet | Get /instagram/locations/{id}/posts | List posts tagged with an Instagram location |
| InstagramPostsShortcodeCommentsCommentIdRepliesGet | Get /instagram/posts/{shortcode}/comments/{commentId}/replies | List replies to an Instagram comment |
| InstagramPostsShortcodeCommentsGet | Get /instagram/posts/{shortcode}/comments | List comments on an Instagram post |
| InstagramPostsShortcodeGet | Get /instagram/posts/{shortcode} | Get an Instagram post (photo / video / carousel / reel) by shortcode |
| InstagramReelsRecommendedGet | Get /instagram/reels/recommended | Browse Instagram's recommended Reels feed |
| InstagramResolveMediaIdGet | Get /instagram/resolve/media-id | Convert an Instagram post shortcode into its numeric media_id |
| InstagramResolveShortcodeFromMediaGet | Get /instagram/resolve/shortcode-from-media | Convert an Instagram numeric media_id into its shortcode |
| InstagramResolveShortcodeGet | Get /instagram/resolve/shortcode | Extract a post shortcode from an Instagram URL |
| InstagramResolveUserIdGet | Get /instagram/resolve/user-id | Convert an Instagram username into its numeric user_id (pk) |
| InstagramSearchGet | Get /instagram/search | Cross-type Instagram search (posts/reels) |
| InstagramUsersUsernameFollowersGet | Get /instagram/users/{username}/followers | List followers of an Instagram user |
| InstagramUsersUsernameFollowingGet | Get /instagram/users/{username}/following | List accounts an Instagram user follows |
| InstagramUsersUsernameFormerUsernamesGet | Get /instagram/users/{username}/former-usernames | List former usernames for an Instagram user |
| InstagramUsersUsernameGet | Get /instagram/users/{username} | Get an Instagram user profile by username |
| InstagramUsersUsernameHighlightsGet | Get /instagram/users/{username}/highlights | List Instagram highlight reels for a user (metadata only) |
| InstagramUsersUsernamePostsGet | Get /instagram/users/{username}/posts | List feed posts authored by an Instagram user |
| InstagramUsersUsernameReelsGet | Get /instagram/users/{username}/reels | List reels authored by an Instagram user |
| InstagramUsersUsernameStoriesGet | Get /instagram/users/{username}/stories | List active Instagram stories for a user |
| InstagramUsersUsernameTaggedPostsGet | Get /instagram/users/{username}/tagged-posts | List posts an Instagram user is tagged in |
InstagramExploreGet200Response InstagramExploreGet(ctx).Cursor(cursor).Execute()
Browse Instagram's Explore feed
package main import ( "context" "fmt" "os" openapiclient "github.com/unifapi-agent/unifapi-sdk-go" ) func main() { cursor := "cursor_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.InstagramAPI.InstagramExploreGet(context.Background()).Cursor(cursor).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `InstagramAPI.InstagramExploreGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `InstagramExploreGet`: InstagramExploreGet200Response fmt.Fprintf(os.Stdout, "Response from `InstagramAPI.InstagramExploreGet`: %v\n", resp) }
Other parameters are passed through a pointer to a apiInstagramExploreGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| cursor | string |
InstagramExploreGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InstagramLocationsIdGet200Response InstagramLocationsIdGet(ctx, id).Execute()
Get an Instagram location by id
package main import ( "context" "fmt" "os" openapiclient "github.com/unifapi-agent/unifapi-sdk-go" ) func main() { id := "id_example" // string | Numeric Instagram location id. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.InstagramAPI.InstagramLocationsIdGet(context.Background(), id).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `InstagramAPI.InstagramLocationsIdGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `InstagramLocationsIdGet`: InstagramLocationsIdGet200Response fmt.Fprintf(os.Stdout, "Response from `InstagramAPI.InstagramLocationsIdGet`: %v\n", resp) }
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string | Numeric Instagram location id. |
Other parameters are passed through a pointer to a apiInstagramLocationsIdGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
InstagramLocationsIdGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InstagramLocationsIdNearbyGet200Response InstagramLocationsIdNearbyGet(ctx, id).Execute()
List Instagram locations geographically near a given location
package main import ( "context" "fmt" "os" openapiclient "github.com/unifapi-agent/unifapi-sdk-go" ) func main() { id := "id_example" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.InstagramAPI.InstagramLocationsIdNearbyGet(context.Background(), id).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `InstagramAPI.InstagramLocationsIdNearbyGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `InstagramLocationsIdNearbyGet`: InstagramLocationsIdNearbyGet200Response fmt.Fprintf(os.Stdout, "Response from `InstagramAPI.InstagramLocationsIdNearbyGet`: %v\n", resp) }
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string |
Other parameters are passed through a pointer to a apiInstagramLocationsIdNearbyGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
InstagramLocationsIdNearbyGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InstagramExploreGet200Response InstagramLocationsIdPostsGet(ctx, id).Cursor(cursor).Tab(tab).Execute()
List posts tagged with an Instagram location
package main import ( "context" "fmt" "os" openapiclient "github.com/unifapi-agent/unifapi-sdk-go" ) func main() { id := "id_example" // string | cursor := "cursor_example" // string | (optional) tab := "tab_example" // string | Which tab to fetch — `ranked` (top) or `recent` (latest). (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.InstagramAPI.InstagramLocationsIdPostsGet(context.Background(), id).Cursor(cursor).Tab(tab).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `InstagramAPI.InstagramLocationsIdPostsGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `InstagramLocationsIdPostsGet`: InstagramExploreGet200Response fmt.Fprintf(os.Stdout, "Response from `InstagramAPI.InstagramLocationsIdPostsGet`: %v\n", resp) }
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string |
Other parameters are passed through a pointer to a apiInstagramLocationsIdPostsGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
cursor | string | | tab | string | Which tab to fetch — `ranked` (top) or `recent` (latest). |
InstagramExploreGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InstagramPostsShortcodeCommentsCommentIdRepliesGet200Response InstagramPostsShortcodeCommentsCommentIdRepliesGet(ctx, shortcode, commentId).Cursor(cursor).Execute()
List replies to an Instagram comment
package main import ( "context" "fmt" "os" openapiclient "github.com/unifapi-agent/unifapi-sdk-go" ) func main() { shortcode := "shortcode_example" // string | commentId := "commentId_example" // string | cursor := "cursor_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.InstagramAPI.InstagramPostsShortcodeCommentsCommentIdRepliesGet(context.Background(), shortcode, commentId).Cursor(cursor).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `InstagramAPI.InstagramPostsShortcodeCommentsCommentIdRepliesGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `InstagramPostsShortcodeCommentsCommentIdRepliesGet`: InstagramPostsShortcodeCommentsCommentIdRepliesGet200Response fmt.Fprintf(os.Stdout, "Response from `InstagramAPI.InstagramPostsShortcodeCommentsCommentIdRepliesGet`: %v\n", resp) }
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| shortcode | string | ||
| commentId | string |
Other parameters are passed through a pointer to a apiInstagramPostsShortcodeCommentsCommentIdRepliesGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
cursor | string | |
InstagramPostsShortcodeCommentsCommentIdRepliesGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InstagramPostsShortcodeCommentsCommentIdRepliesGet200Response InstagramPostsShortcodeCommentsGet(ctx, shortcode).Cursor(cursor).Sort(sort).Execute()
List comments on an Instagram post
package main import ( "context" "fmt" "os" openapiclient "github.com/unifapi-agent/unifapi-sdk-go" ) func main() { shortcode := "shortcode_example" // string | cursor := "cursor_example" // string | (optional) sort := "sort_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.InstagramAPI.InstagramPostsShortcodeCommentsGet(context.Background(), shortcode).Cursor(cursor).Sort(sort).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `InstagramAPI.InstagramPostsShortcodeCommentsGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `InstagramPostsShortcodeCommentsGet`: InstagramPostsShortcodeCommentsCommentIdRepliesGet200Response fmt.Fprintf(os.Stdout, "Response from `InstagramAPI.InstagramPostsShortcodeCommentsGet`: %v\n", resp) }
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| shortcode | string |
Other parameters are passed through a pointer to a apiInstagramPostsShortcodeCommentsGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
cursor | string | | sort | string | |
InstagramPostsShortcodeCommentsCommentIdRepliesGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InstagramPostsShortcodeGet200Response InstagramPostsShortcodeGet(ctx, shortcode).Execute()
Get an Instagram post (photo / video / carousel / reel) by shortcode
package main import ( "context" "fmt" "os" openapiclient "github.com/unifapi-agent/unifapi-sdk-go" ) func main() { shortcode := "shortcode_example" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.InstagramAPI.InstagramPostsShortcodeGet(context.Background(), shortcode).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `InstagramAPI.InstagramPostsShortcodeGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `InstagramPostsShortcodeGet`: InstagramPostsShortcodeGet200Response fmt.Fprintf(os.Stdout, "Response from `InstagramAPI.InstagramPostsShortcodeGet`: %v\n", resp) }
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| shortcode | string |
Other parameters are passed through a pointer to a apiInstagramPostsShortcodeGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
InstagramPostsShortcodeGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InstagramExploreGet200Response InstagramReelsRecommendedGet(ctx).Cursor(cursor).Execute()
Browse Instagram's recommended Reels feed
package main import ( "context" "fmt" "os" openapiclient "github.com/unifapi-agent/unifapi-sdk-go" ) func main() { cursor := "cursor_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.InstagramAPI.InstagramReelsRecommendedGet(context.Background()).Cursor(cursor).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `InstagramAPI.InstagramReelsRecommendedGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `InstagramReelsRecommendedGet`: InstagramExploreGet200Response fmt.Fprintf(os.Stdout, "Response from `InstagramAPI.InstagramReelsRecommendedGet`: %v\n", resp) }
Other parameters are passed through a pointer to a apiInstagramReelsRecommendedGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| cursor | string |
InstagramExploreGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InstagramResolveMediaIdGet200Response InstagramResolveMediaIdGet(ctx).Shortcode(shortcode).Execute()
Convert an Instagram post shortcode into its numeric media_id
package main import ( "context" "fmt" "os" openapiclient "github.com/unifapi-agent/unifapi-sdk-go" ) func main() { shortcode := "shortcode_example" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.InstagramAPI.InstagramResolveMediaIdGet(context.Background()).Shortcode(shortcode).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `InstagramAPI.InstagramResolveMediaIdGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `InstagramResolveMediaIdGet`: InstagramResolveMediaIdGet200Response fmt.Fprintf(os.Stdout, "Response from `InstagramAPI.InstagramResolveMediaIdGet`: %v\n", resp) }
Other parameters are passed through a pointer to a apiInstagramResolveMediaIdGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| shortcode | string |
InstagramResolveMediaIdGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InstagramResolveMediaIdGet200Response InstagramResolveShortcodeFromMediaGet(ctx).MediaId(mediaId).Execute()
Convert an Instagram numeric media_id into its shortcode
package main import ( "context" "fmt" "os" openapiclient "github.com/unifapi-agent/unifapi-sdk-go" ) func main() { mediaId := "mediaId_example" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.InstagramAPI.InstagramResolveShortcodeFromMediaGet(context.Background()).MediaId(mediaId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `InstagramAPI.InstagramResolveShortcodeFromMediaGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `InstagramResolveShortcodeFromMediaGet`: InstagramResolveMediaIdGet200Response fmt.Fprintf(os.Stdout, "Response from `InstagramAPI.InstagramResolveShortcodeFromMediaGet`: %v\n", resp) }
Other parameters are passed through a pointer to a apiInstagramResolveShortcodeFromMediaGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| mediaId | string |
InstagramResolveMediaIdGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InstagramResolveShortcodeGet200Response InstagramResolveShortcodeGet(ctx).Url(url).Execute()
Extract a post shortcode from an Instagram URL
package main import ( "context" "fmt" "os" openapiclient "github.com/unifapi-agent/unifapi-sdk-go" ) func main() { url := "url_example" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.InstagramAPI.InstagramResolveShortcodeGet(context.Background()).Url(url).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `InstagramAPI.InstagramResolveShortcodeGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `InstagramResolveShortcodeGet`: InstagramResolveShortcodeGet200Response fmt.Fprintf(os.Stdout, "Response from `InstagramAPI.InstagramResolveShortcodeGet`: %v\n", resp) }
Other parameters are passed through a pointer to a apiInstagramResolveShortcodeGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| url | string |
InstagramResolveShortcodeGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InstagramResolveUserIdGet200Response InstagramResolveUserIdGet(ctx).Username(username).Execute()
Convert an Instagram username into its numeric user_id (pk)
package main import ( "context" "fmt" "os" openapiclient "github.com/unifapi-agent/unifapi-sdk-go" ) func main() { username := "username_example" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.InstagramAPI.InstagramResolveUserIdGet(context.Background()).Username(username).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `InstagramAPI.InstagramResolveUserIdGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `InstagramResolveUserIdGet`: InstagramResolveUserIdGet200Response fmt.Fprintf(os.Stdout, "Response from `InstagramAPI.InstagramResolveUserIdGet`: %v\n", resp) }
Other parameters are passed through a pointer to a apiInstagramResolveUserIdGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| username | string |
InstagramResolveUserIdGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InstagramExploreGet200Response InstagramSearchGet(ctx).Q(q).Cursor(cursor).Execute()
Cross-type Instagram search (posts/reels)
package main import ( "context" "fmt" "os" openapiclient "github.com/unifapi-agent/unifapi-sdk-go" ) func main() { q := "q_example" // string | Search keyword. cursor := "cursor_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.InstagramAPI.InstagramSearchGet(context.Background()).Q(q).Cursor(cursor).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `InstagramAPI.InstagramSearchGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `InstagramSearchGet`: InstagramExploreGet200Response fmt.Fprintf(os.Stdout, "Response from `InstagramAPI.InstagramSearchGet`: %v\n", resp) }
Other parameters are passed through a pointer to a apiInstagramSearchGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| q | string | Search keyword. | |
| cursor | string |
InstagramExploreGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InstagramUsersUsernameFollowersGet200Response InstagramUsersUsernameFollowersGet(ctx, username).Cursor(cursor).Execute()
List followers of an Instagram user
package main import ( "context" "fmt" "os" openapiclient "github.com/unifapi-agent/unifapi-sdk-go" ) func main() { username := "username_example" // string | cursor := "cursor_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.InstagramAPI.InstagramUsersUsernameFollowersGet(context.Background(), username).Cursor(cursor).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `InstagramAPI.InstagramUsersUsernameFollowersGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `InstagramUsersUsernameFollowersGet`: InstagramUsersUsernameFollowersGet200Response fmt.Fprintf(os.Stdout, "Response from `InstagramAPI.InstagramUsersUsernameFollowersGet`: %v\n", resp) }
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| username | string |
Other parameters are passed through a pointer to a apiInstagramUsersUsernameFollowersGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
cursor | string | |
InstagramUsersUsernameFollowersGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InstagramUsersUsernameFollowersGet200Response InstagramUsersUsernameFollowingGet(ctx, username).Cursor(cursor).Execute()
List accounts an Instagram user follows
package main import ( "context" "fmt" "os" openapiclient "github.com/unifapi-agent/unifapi-sdk-go" ) func main() { username := "username_example" // string | cursor := "cursor_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.InstagramAPI.InstagramUsersUsernameFollowingGet(context.Background(), username).Cursor(cursor).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `InstagramAPI.InstagramUsersUsernameFollowingGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `InstagramUsersUsernameFollowingGet`: InstagramUsersUsernameFollowersGet200Response fmt.Fprintf(os.Stdout, "Response from `InstagramAPI.InstagramUsersUsernameFollowingGet`: %v\n", resp) }
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| username | string |
Other parameters are passed through a pointer to a apiInstagramUsersUsernameFollowingGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
cursor | string | |
InstagramUsersUsernameFollowersGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InstagramUsersUsernameFormerUsernamesGet200Response InstagramUsersUsernameFormerUsernamesGet(ctx, username).Execute()
List former usernames for an Instagram user
package main import ( "context" "fmt" "os" openapiclient "github.com/unifapi-agent/unifapi-sdk-go" ) func main() { username := "username_example" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.InstagramAPI.InstagramUsersUsernameFormerUsernamesGet(context.Background(), username).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `InstagramAPI.InstagramUsersUsernameFormerUsernamesGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `InstagramUsersUsernameFormerUsernamesGet`: InstagramUsersUsernameFormerUsernamesGet200Response fmt.Fprintf(os.Stdout, "Response from `InstagramAPI.InstagramUsersUsernameFormerUsernamesGet`: %v\n", resp) }
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| username | string |
Other parameters are passed through a pointer to a apiInstagramUsersUsernameFormerUsernamesGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
InstagramUsersUsernameFormerUsernamesGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InstagramUsersUsernameGet200Response InstagramUsersUsernameGet(ctx, username).Execute()
Get an Instagram user profile by username
package main import ( "context" "fmt" "os" openapiclient "github.com/unifapi-agent/unifapi-sdk-go" ) func main() { username := "username_example" // string | Instagram URL slug, e.g. `instagram` configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.InstagramAPI.InstagramUsersUsernameGet(context.Background(), username).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `InstagramAPI.InstagramUsersUsernameGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `InstagramUsersUsernameGet`: InstagramUsersUsernameGet200Response fmt.Fprintf(os.Stdout, "Response from `InstagramAPI.InstagramUsersUsernameGet`: %v\n", resp) }
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| username | string | Instagram URL slug, e.g. `instagram` |
Other parameters are passed through a pointer to a apiInstagramUsersUsernameGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
InstagramUsersUsernameGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InstagramUsersUsernameHighlightsGet200Response InstagramUsersUsernameHighlightsGet(ctx, username).Cursor(cursor).Execute()
List Instagram highlight reels for a user (metadata only)
package main import ( "context" "fmt" "os" openapiclient "github.com/unifapi-agent/unifapi-sdk-go" ) func main() { username := "username_example" // string | cursor := "cursor_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.InstagramAPI.InstagramUsersUsernameHighlightsGet(context.Background(), username).Cursor(cursor).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `InstagramAPI.InstagramUsersUsernameHighlightsGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `InstagramUsersUsernameHighlightsGet`: InstagramUsersUsernameHighlightsGet200Response fmt.Fprintf(os.Stdout, "Response from `InstagramAPI.InstagramUsersUsernameHighlightsGet`: %v\n", resp) }
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| username | string |
Other parameters are passed through a pointer to a apiInstagramUsersUsernameHighlightsGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
cursor | string | |
InstagramUsersUsernameHighlightsGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InstagramExploreGet200Response InstagramUsersUsernamePostsGet(ctx, username).Cursor(cursor).Execute()
List feed posts authored by an Instagram user
package main import ( "context" "fmt" "os" openapiclient "github.com/unifapi-agent/unifapi-sdk-go" ) func main() { username := "username_example" // string | cursor := "cursor_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.InstagramAPI.InstagramUsersUsernamePostsGet(context.Background(), username).Cursor(cursor).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `InstagramAPI.InstagramUsersUsernamePostsGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `InstagramUsersUsernamePostsGet`: InstagramExploreGet200Response fmt.Fprintf(os.Stdout, "Response from `InstagramAPI.InstagramUsersUsernamePostsGet`: %v\n", resp) }
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| username | string |
Other parameters are passed through a pointer to a apiInstagramUsersUsernamePostsGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
cursor | string | |
InstagramExploreGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InstagramExploreGet200Response InstagramUsersUsernameReelsGet(ctx, username).Cursor(cursor).Execute()
List reels authored by an Instagram user
package main import ( "context" "fmt" "os" openapiclient "github.com/unifapi-agent/unifapi-sdk-go" ) func main() { username := "username_example" // string | cursor := "cursor_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.InstagramAPI.InstagramUsersUsernameReelsGet(context.Background(), username).Cursor(cursor).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `InstagramAPI.InstagramUsersUsernameReelsGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `InstagramUsersUsernameReelsGet`: InstagramExploreGet200Response fmt.Fprintf(os.Stdout, "Response from `InstagramAPI.InstagramUsersUsernameReelsGet`: %v\n", resp) }
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| username | string |
Other parameters are passed through a pointer to a apiInstagramUsersUsernameReelsGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
cursor | string | |
InstagramExploreGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InstagramExploreGet200Response InstagramUsersUsernameStoriesGet(ctx, username).Execute()
List active Instagram stories for a user
package main import ( "context" "fmt" "os" openapiclient "github.com/unifapi-agent/unifapi-sdk-go" ) func main() { username := "username_example" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.InstagramAPI.InstagramUsersUsernameStoriesGet(context.Background(), username).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `InstagramAPI.InstagramUsersUsernameStoriesGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `InstagramUsersUsernameStoriesGet`: InstagramExploreGet200Response fmt.Fprintf(os.Stdout, "Response from `InstagramAPI.InstagramUsersUsernameStoriesGet`: %v\n", resp) }
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| username | string |
Other parameters are passed through a pointer to a apiInstagramUsersUsernameStoriesGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
InstagramExploreGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InstagramExploreGet200Response InstagramUsersUsernameTaggedPostsGet(ctx, username).Cursor(cursor).Execute()
List posts an Instagram user is tagged in
package main import ( "context" "fmt" "os" openapiclient "github.com/unifapi-agent/unifapi-sdk-go" ) func main() { username := "username_example" // string | cursor := "cursor_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) resp, r, err := apiClient.InstagramAPI.InstagramUsersUsernameTaggedPostsGet(context.Background(), username).Cursor(cursor).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `InstagramAPI.InstagramUsersUsernameTaggedPostsGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `InstagramUsersUsernameTaggedPostsGet`: InstagramExploreGet200Response fmt.Fprintf(os.Stdout, "Response from `InstagramAPI.InstagramUsersUsernameTaggedPostsGet`: %v\n", resp) }
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| username | string |
Other parameters are passed through a pointer to a apiInstagramUsersUsernameTaggedPostsGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
cursor | string | |
InstagramExploreGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]