GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — unifapi-sdk-go/docs/InstagramAPI.md at main · unifapi-agent/unifapi-sdk-go

Expand file tree

/

InstagramAPI.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
1529 lines (999 loc) · 45.3 KB
/

InstagramAPI.md

Copy path

File metadata and controls

1529 lines (999 loc) · 45.3 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

\InstagramAPI

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

InstagramExploreGet

InstagramExploreGet200Response InstagramExploreGet(ctx).Cursor(cursor).Execute()

Browse Instagram's Explore feed

Example

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)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiInstagramExploreGetRequest struct via the builder pattern

Name Type Description Notes
cursor string

Return type

InstagramExploreGet200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

InstagramLocationsIdGet

InstagramLocationsIdGet200Response InstagramLocationsIdGet(ctx, id).Execute()

Get an Instagram location by id

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string Numeric Instagram location id.

Other Parameters

Other parameters are passed through a pointer to a apiInstagramLocationsIdGetRequest struct via the builder pattern

Name Type Description Notes

Return type

InstagramLocationsIdGet200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

InstagramLocationsIdNearbyGet

InstagramLocationsIdNearbyGet200Response InstagramLocationsIdNearbyGet(ctx, id).Execute()

List Instagram locations geographically near a given location

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string

Other Parameters

Other parameters are passed through a pointer to a apiInstagramLocationsIdNearbyGetRequest struct via the builder pattern

Name Type Description Notes

Return type

InstagramLocationsIdNearbyGet200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

InstagramLocationsIdPostsGet

InstagramExploreGet200Response InstagramLocationsIdPostsGet(ctx, id).Cursor(cursor).Tab(tab).Execute()

List posts tagged with an Instagram location

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string

Other Parameters

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). |

Return type

InstagramExploreGet200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

InstagramPostsShortcodeCommentsCommentIdRepliesGet

InstagramPostsShortcodeCommentsCommentIdRepliesGet200Response InstagramPostsShortcodeCommentsCommentIdRepliesGet(ctx, shortcode, commentId).Cursor(cursor).Execute()

List replies to an Instagram comment

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
shortcode string
commentId string

Other Parameters

Other parameters are passed through a pointer to a apiInstagramPostsShortcodeCommentsCommentIdRepliesGetRequest struct via the builder pattern

Name Type Description Notes

cursor | string | |

Return type

InstagramPostsShortcodeCommentsCommentIdRepliesGet200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

InstagramPostsShortcodeCommentsGet

InstagramPostsShortcodeCommentsCommentIdRepliesGet200Response InstagramPostsShortcodeCommentsGet(ctx, shortcode).Cursor(cursor).Sort(sort).Execute()

List comments on an Instagram post

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
shortcode string

Other Parameters

Other parameters are passed through a pointer to a apiInstagramPostsShortcodeCommentsGetRequest struct via the builder pattern

Name Type Description Notes

cursor | string | | sort | string | |

Return type

InstagramPostsShortcodeCommentsCommentIdRepliesGet200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

InstagramPostsShortcodeGet

InstagramPostsShortcodeGet200Response InstagramPostsShortcodeGet(ctx, shortcode).Execute()

Get an Instagram post (photo / video / carousel / reel) by shortcode

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
shortcode string

Other Parameters

Other parameters are passed through a pointer to a apiInstagramPostsShortcodeGetRequest struct via the builder pattern

Name Type Description Notes

Return type

InstagramPostsShortcodeGet200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

InstagramReelsRecommendedGet

InstagramExploreGet200Response InstagramReelsRecommendedGet(ctx).Cursor(cursor).Execute()

Browse Instagram's recommended Reels feed

Example

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)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiInstagramReelsRecommendedGetRequest struct via the builder pattern

Name Type Description Notes
cursor string

Return type

InstagramExploreGet200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

InstagramResolveMediaIdGet

InstagramResolveMediaIdGet200Response InstagramResolveMediaIdGet(ctx).Shortcode(shortcode).Execute()

Convert an Instagram post shortcode into its numeric media_id

Example

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)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiInstagramResolveMediaIdGetRequest struct via the builder pattern

Name Type Description Notes
shortcode string

Return type

InstagramResolveMediaIdGet200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

InstagramResolveShortcodeFromMediaGet

InstagramResolveMediaIdGet200Response InstagramResolveShortcodeFromMediaGet(ctx).MediaId(mediaId).Execute()

Convert an Instagram numeric media_id into its shortcode

Example

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)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiInstagramResolveShortcodeFromMediaGetRequest struct via the builder pattern

Name Type Description Notes
mediaId string

Return type

InstagramResolveMediaIdGet200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

InstagramResolveShortcodeGet

InstagramResolveShortcodeGet200Response InstagramResolveShortcodeGet(ctx).Url(url).Execute()

Extract a post shortcode from an Instagram URL

Example

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)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiInstagramResolveShortcodeGetRequest struct via the builder pattern

Name Type Description Notes
url string

Return type

InstagramResolveShortcodeGet200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

InstagramResolveUserIdGet

InstagramResolveUserIdGet200Response InstagramResolveUserIdGet(ctx).Username(username).Execute()

Convert an Instagram username into its numeric user_id (pk)

Example

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)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiInstagramResolveUserIdGetRequest struct via the builder pattern

Name Type Description Notes
username string

Return type

InstagramResolveUserIdGet200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

InstagramSearchGet

InstagramExploreGet200Response InstagramSearchGet(ctx).Q(q).Cursor(cursor).Execute()

Cross-type Instagram search (posts/reels)

Example

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)
}

Path Parameters

Other Parameters

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

Return type

InstagramExploreGet200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

InstagramUsersUsernameFollowersGet

InstagramUsersUsernameFollowersGet200Response InstagramUsersUsernameFollowersGet(ctx, username).Cursor(cursor).Execute()

List followers of an Instagram user

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
username string

Other Parameters

Other parameters are passed through a pointer to a apiInstagramUsersUsernameFollowersGetRequest struct via the builder pattern

Name Type Description Notes

cursor | string | |

Return type

InstagramUsersUsernameFollowersGet200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

InstagramUsersUsernameFollowingGet

InstagramUsersUsernameFollowersGet200Response InstagramUsersUsernameFollowingGet(ctx, username).Cursor(cursor).Execute()

List accounts an Instagram user follows

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
username string

Other Parameters

Other parameters are passed through a pointer to a apiInstagramUsersUsernameFollowingGetRequest struct via the builder pattern

Name Type Description Notes

cursor | string | |

Return type

InstagramUsersUsernameFollowersGet200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

InstagramUsersUsernameFormerUsernamesGet

InstagramUsersUsernameFormerUsernamesGet200Response InstagramUsersUsernameFormerUsernamesGet(ctx, username).Execute()

List former usernames for an Instagram user

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
username string

Other Parameters

Other parameters are passed through a pointer to a apiInstagramUsersUsernameFormerUsernamesGetRequest struct via the builder pattern

Name Type Description Notes

Return type

InstagramUsersUsernameFormerUsernamesGet200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

InstagramUsersUsernameGet

InstagramUsersUsernameGet200Response InstagramUsersUsernameGet(ctx, username).Execute()

Get an Instagram user profile by username

Example

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)
}

Path Parameters

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

Other parameters are passed through a pointer to a apiInstagramUsersUsernameGetRequest struct via the builder pattern

Name Type Description Notes

Return type

InstagramUsersUsernameGet200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

InstagramUsersUsernameHighlightsGet

InstagramUsersUsernameHighlightsGet200Response InstagramUsersUsernameHighlightsGet(ctx, username).Cursor(cursor).Execute()

List Instagram highlight reels for a user (metadata only)

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
username string

Other Parameters

Other parameters are passed through a pointer to a apiInstagramUsersUsernameHighlightsGetRequest struct via the builder pattern

Name Type Description Notes

cursor | string | |

Return type

InstagramUsersUsernameHighlightsGet200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

InstagramUsersUsernamePostsGet

InstagramExploreGet200Response InstagramUsersUsernamePostsGet(ctx, username).Cursor(cursor).Execute()

List feed posts authored by an Instagram user

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
username string

Other Parameters

Other parameters are passed through a pointer to a apiInstagramUsersUsernamePostsGetRequest struct via the builder pattern

Name Type Description Notes

cursor | string | |

Return type

InstagramExploreGet200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

InstagramUsersUsernameReelsGet

InstagramExploreGet200Response InstagramUsersUsernameReelsGet(ctx, username).Cursor(cursor).Execute()

List reels authored by an Instagram user

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
username string

Other Parameters

Other parameters are passed through a pointer to a apiInstagramUsersUsernameReelsGetRequest struct via the builder pattern

Name Type Description Notes

cursor | string | |

Return type

InstagramExploreGet200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

InstagramUsersUsernameStoriesGet

InstagramExploreGet200Response InstagramUsersUsernameStoriesGet(ctx, username).Execute()

List active Instagram stories for a user

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
username string

Other Parameters

Other parameters are passed through a pointer to a apiInstagramUsersUsernameStoriesGetRequest struct via the builder pattern

Name Type Description Notes

Return type

InstagramExploreGet200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

InstagramUsersUsernameTaggedPostsGet

InstagramExploreGet200Response InstagramUsersUsernameTaggedPostsGet(ctx, username).Cursor(cursor).Execute()

List posts an Instagram user is tagged in

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
username string

Other Parameters

Other parameters are passed through a pointer to a apiInstagramUsersUsernameTaggedPostsGetRequest struct via the builder pattern

Name Type Description Notes

cursor | string | |

Return type

InstagramExploreGet200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.