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/TiktokAPI.md at main · unifapi-agent/unifapi-sdk-go

Expand file tree

/

TiktokAPI.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
1431 lines (930 loc) · 40.5 KB
/

TiktokAPI.md

Copy path

File metadata and controls

1431 lines (930 loc) · 40.5 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

\TiktokAPI

All URIs are relative to https://api.unifapi.com

Method HTTP request Description
TiktokFeedRecommendedPost Post /tiktok/feed/recommended Get TikTok recommendation videos
TiktokHashtagsIdGet Get /tiktok/hashtags/{id} Get a TikTok hashtag by ID
TiktokHashtagsIdVideosGet Get /tiktok/hashtags/{id}/videos List videos tagged with a TikTok hashtag
TiktokMusicIdGet Get /tiktok/music/{id} Get a TikTok music track by ID
TiktokMusicIdVideosGet Get /tiktok/music/{id}/videos List videos using a TikTok music track
TiktokSearchGet Get /tiktok/search General TikTok search (returns videos)
TiktokSearchHashtagsGet Get /tiktok/search/hashtags Search TikTok hashtags by keyword
TiktokSearchUsersGet Get /tiktok/search/users Search TikTok users by keyword
TiktokSearchVideosGet Get /tiktok/search/videos Search TikTok videos by keyword
TiktokUsersIdFollowersGet Get /tiktok/users/{id}/followers List a TikTok user's followers
TiktokUsersIdFollowingGet Get /tiktok/users/{id}/following List users a TikTok user is following
TiktokUsersIdGet Get /tiktok/users/{id} Get a TikTok user profile
TiktokUsersIdLikesGet Get /tiktok/users/{id}/likes List videos liked by a TikTok user
TiktokUsersIdVideosGet Get /tiktok/users/{id}/videos List videos posted by a TikTok user
TiktokUsersResolveGet Get /tiktok/users/resolve Resolve a TikTok username to a user id
TiktokVideosBatchPost Post /tiktok/videos/batch Batch-fetch TikTok videos by ID
TiktokVideosIdCommentsCommentIdRepliesGet Get /tiktok/videos/{id}/comments/{comment_id}/replies List replies to a TikTok comment
TiktokVideosIdCommentsGet Get /tiktok/videos/{id}/comments List top-level comments on a TikTok video
TiktokVideosIdGet Get /tiktok/videos/{id} Get a TikTok video by ID
TiktokVideosResolveGet Get /tiktok/videos/resolve Resolve a TikTok share URL to a video

TiktokFeedRecommendedPost

TiktokFeedRecommendedPost200Response TiktokFeedRecommendedPost(ctx).TiktokFeedRecommendedPostRequest(tiktokFeedRecommendedPostRequest).Execute()

Get TikTok recommendation videos

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/unifapi-agent/unifapi-sdk-go"
)

func main() {
	tiktokFeedRecommendedPostRequest := *openapiclient.NewTiktokFeedRecommendedPostRequest() // TiktokFeedRecommendedPostRequest |  (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.TiktokAPI.TiktokFeedRecommendedPost(context.Background()).TiktokFeedRecommendedPostRequest(tiktokFeedRecommendedPostRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TiktokAPI.TiktokFeedRecommendedPost``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `TiktokFeedRecommendedPost`: TiktokFeedRecommendedPost200Response
	fmt.Fprintf(os.Stdout, "Response from `TiktokAPI.TiktokFeedRecommendedPost`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
tiktokFeedRecommendedPostRequest TiktokFeedRecommendedPostRequest

Return type

TiktokFeedRecommendedPost200Response

Authorization

bearerAuth

HTTP request headers

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

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

TiktokHashtagsIdGet

TiktokHashtagsIdGet200Response TiktokHashtagsIdGet(ctx, id).Execute()

Get a TikTok hashtag by ID

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.TiktokAPI.TiktokHashtagsIdGet(context.Background(), id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TiktokAPI.TiktokHashtagsIdGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `TiktokHashtagsIdGet`: TiktokHashtagsIdGet200Response
	fmt.Fprintf(os.Stdout, "Response from `TiktokAPI.TiktokHashtagsIdGet`: %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 apiTiktokHashtagsIdGetRequest struct via the builder pattern

Name Type Description Notes

Return type

TiktokHashtagsIdGet200Response

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]

TiktokHashtagsIdVideosGet

TiktokHashtagsIdVideosGet200Response TiktokHashtagsIdVideosGet(ctx, id).Cursor(cursor).Limit(limit).Execute()

List videos tagged with a TikTok hashtag

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)
	limit := int32(56) // int32 |  (optional) (default to 20)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.TiktokAPI.TiktokHashtagsIdVideosGet(context.Background(), id).Cursor(cursor).Limit(limit).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TiktokAPI.TiktokHashtagsIdVideosGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `TiktokHashtagsIdVideosGet`: TiktokHashtagsIdVideosGet200Response
	fmt.Fprintf(os.Stdout, "Response from `TiktokAPI.TiktokHashtagsIdVideosGet`: %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 apiTiktokHashtagsIdVideosGetRequest struct via the builder pattern

Name Type Description Notes

cursor | string | | limit | int32 | | [default to 20]

Return type

TiktokHashtagsIdVideosGet200Response

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]

TiktokMusicIdGet

TiktokMusicIdGet200Response TiktokMusicIdGet(ctx, id).Execute()

Get a TikTok music track by ID

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.TiktokAPI.TiktokMusicIdGet(context.Background(), id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TiktokAPI.TiktokMusicIdGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `TiktokMusicIdGet`: TiktokMusicIdGet200Response
	fmt.Fprintf(os.Stdout, "Response from `TiktokAPI.TiktokMusicIdGet`: %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 apiTiktokMusicIdGetRequest struct via the builder pattern

Name Type Description Notes

Return type

TiktokMusicIdGet200Response

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]

TiktokMusicIdVideosGet

TiktokHashtagsIdVideosGet200Response TiktokMusicIdVideosGet(ctx, id).Cursor(cursor).Limit(limit).Execute()

List videos using a TikTok music track

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)
	limit := int32(56) // int32 |  (optional) (default to 20)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.TiktokAPI.TiktokMusicIdVideosGet(context.Background(), id).Cursor(cursor).Limit(limit).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TiktokAPI.TiktokMusicIdVideosGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `TiktokMusicIdVideosGet`: TiktokHashtagsIdVideosGet200Response
	fmt.Fprintf(os.Stdout, "Response from `TiktokAPI.TiktokMusicIdVideosGet`: %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 apiTiktokMusicIdVideosGetRequest struct via the builder pattern

Name Type Description Notes

cursor | string | | limit | int32 | | [default to 20]

Return type

TiktokHashtagsIdVideosGet200Response

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]

TiktokSearchGet

TiktokHashtagsIdVideosGet200Response TiktokSearchGet(ctx).Q(q).Cursor(cursor).Limit(limit).Execute()

General TikTok search (returns videos)

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)
	limit := int32(56) // int32 |  (optional) (default to 20)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.TiktokAPI.TiktokSearchGet(context.Background()).Q(q).Cursor(cursor).Limit(limit).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TiktokAPI.TiktokSearchGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `TiktokSearchGet`: TiktokHashtagsIdVideosGet200Response
	fmt.Fprintf(os.Stdout, "Response from `TiktokAPI.TiktokSearchGet`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
q string Search keyword
cursor string
limit int32 [default to 20]

Return type

TiktokHashtagsIdVideosGet200Response

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]

TiktokSearchHashtagsGet

TiktokSearchHashtagsGet200Response TiktokSearchHashtagsGet(ctx).Q(q).Cursor(cursor).Limit(limit).Execute()

Search TikTok hashtags by keyword

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)
	limit := int32(56) // int32 |  (optional) (default to 20)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.TiktokAPI.TiktokSearchHashtagsGet(context.Background()).Q(q).Cursor(cursor).Limit(limit).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TiktokAPI.TiktokSearchHashtagsGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `TiktokSearchHashtagsGet`: TiktokSearchHashtagsGet200Response
	fmt.Fprintf(os.Stdout, "Response from `TiktokAPI.TiktokSearchHashtagsGet`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
q string Search keyword
cursor string
limit int32 [default to 20]

Return type

TiktokSearchHashtagsGet200Response

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]

TiktokSearchUsersGet

TiktokSearchUsersGet200Response TiktokSearchUsersGet(ctx).Q(q).Cursor(cursor).Limit(limit).Execute()

Search TikTok users by keyword

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)
	limit := int32(56) // int32 |  (optional) (default to 20)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.TiktokAPI.TiktokSearchUsersGet(context.Background()).Q(q).Cursor(cursor).Limit(limit).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TiktokAPI.TiktokSearchUsersGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `TiktokSearchUsersGet`: TiktokSearchUsersGet200Response
	fmt.Fprintf(os.Stdout, "Response from `TiktokAPI.TiktokSearchUsersGet`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
q string Search keyword
cursor string
limit int32 [default to 20]

Return type

TiktokSearchUsersGet200Response

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]

TiktokSearchVideosGet

TiktokHashtagsIdVideosGet200Response TiktokSearchVideosGet(ctx).Q(q).Cursor(cursor).Limit(limit).Execute()

Search TikTok videos by keyword

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)
	limit := int32(56) // int32 |  (optional) (default to 20)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.TiktokAPI.TiktokSearchVideosGet(context.Background()).Q(q).Cursor(cursor).Limit(limit).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TiktokAPI.TiktokSearchVideosGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `TiktokSearchVideosGet`: TiktokHashtagsIdVideosGet200Response
	fmt.Fprintf(os.Stdout, "Response from `TiktokAPI.TiktokSearchVideosGet`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
q string Search keyword
cursor string
limit int32 [default to 20]

Return type

TiktokHashtagsIdVideosGet200Response

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]

TiktokUsersIdFollowersGet

TiktokSearchUsersGet200Response TiktokUsersIdFollowersGet(ctx, id).Cursor(cursor).Limit(limit).Execute()

List a TikTok user's followers

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/unifapi-agent/unifapi-sdk-go"
)

func main() {
	id := "id_example" // string | TikTok sec_uid, numeric user id, or public handle.
	cursor := "cursor_example" // string |  (optional)
	limit := int32(56) // int32 |  (optional) (default to 20)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.TiktokAPI.TiktokUsersIdFollowersGet(context.Background(), id).Cursor(cursor).Limit(limit).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TiktokAPI.TiktokUsersIdFollowersGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `TiktokUsersIdFollowersGet`: TiktokSearchUsersGet200Response
	fmt.Fprintf(os.Stdout, "Response from `TiktokAPI.TiktokUsersIdFollowersGet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string TikTok sec_uid, numeric user id, or public handle.

Other Parameters

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

Name Type Description Notes

cursor | string | | limit | int32 | | [default to 20]

Return type

TiktokSearchUsersGet200Response

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]

TiktokUsersIdFollowingGet

TiktokSearchUsersGet200Response TiktokUsersIdFollowingGet(ctx, id).Cursor(cursor).Limit(limit).Execute()

List users a TikTok user is following

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/unifapi-agent/unifapi-sdk-go"
)

func main() {
	id := "id_example" // string | TikTok sec_uid, numeric user id, or public handle.
	cursor := "cursor_example" // string |  (optional)
	limit := int32(56) // int32 |  (optional) (default to 20)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.TiktokAPI.TiktokUsersIdFollowingGet(context.Background(), id).Cursor(cursor).Limit(limit).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TiktokAPI.TiktokUsersIdFollowingGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `TiktokUsersIdFollowingGet`: TiktokSearchUsersGet200Response
	fmt.Fprintf(os.Stdout, "Response from `TiktokAPI.TiktokUsersIdFollowingGet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string TikTok sec_uid, numeric user id, or public handle.

Other Parameters

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

Name Type Description Notes

cursor | string | | limit | int32 | | [default to 20]

Return type

TiktokSearchUsersGet200Response

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]

TiktokUsersIdGet

TiktokUsersIdGet200Response TiktokUsersIdGet(ctx, id).Execute()

Get a TikTok user profile

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/unifapi-agent/unifapi-sdk-go"
)

func main() {
	id := "id_example" // string | TikTok sec_uid, numeric user id, or public handle.

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.TiktokAPI.TiktokUsersIdGet(context.Background(), id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TiktokAPI.TiktokUsersIdGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `TiktokUsersIdGet`: TiktokUsersIdGet200Response
	fmt.Fprintf(os.Stdout, "Response from `TiktokAPI.TiktokUsersIdGet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string TikTok sec_uid, numeric user id, or public handle.

Other Parameters

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

Name Type Description Notes

Return type

TiktokUsersIdGet200Response

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]

TiktokUsersIdLikesGet

TiktokHashtagsIdVideosGet200Response TiktokUsersIdLikesGet(ctx, id).Cursor(cursor).Limit(limit).Execute()

List videos liked by a TikTok user

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/unifapi-agent/unifapi-sdk-go"
)

func main() {
	id := "id_example" // string | TikTok sec_uid, numeric user id, or public handle.
	cursor := "cursor_example" // string |  (optional)
	limit := int32(56) // int32 |  (optional) (default to 20)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.TiktokAPI.TiktokUsersIdLikesGet(context.Background(), id).Cursor(cursor).Limit(limit).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TiktokAPI.TiktokUsersIdLikesGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `TiktokUsersIdLikesGet`: TiktokHashtagsIdVideosGet200Response
	fmt.Fprintf(os.Stdout, "Response from `TiktokAPI.TiktokUsersIdLikesGet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string TikTok sec_uid, numeric user id, or public handle.

Other Parameters

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

Name Type Description Notes

cursor | string | | limit | int32 | | [default to 20]

Return type

TiktokHashtagsIdVideosGet200Response

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]

TiktokUsersIdVideosGet

TiktokHashtagsIdVideosGet200Response TiktokUsersIdVideosGet(ctx, id).Cursor(cursor).Limit(limit).Execute()

List videos posted by a TikTok user

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/unifapi-agent/unifapi-sdk-go"
)

func main() {
	id := "id_example" // string | TikTok sec_uid, numeric user id, or public handle.
	cursor := "cursor_example" // string |  (optional)
	limit := int32(56) // int32 |  (optional) (default to 20)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.TiktokAPI.TiktokUsersIdVideosGet(context.Background(), id).Cursor(cursor).Limit(limit).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TiktokAPI.TiktokUsersIdVideosGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `TiktokUsersIdVideosGet`: TiktokHashtagsIdVideosGet200Response
	fmt.Fprintf(os.Stdout, "Response from `TiktokAPI.TiktokUsersIdVideosGet`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string TikTok sec_uid, numeric user id, or public handle.

Other Parameters

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

Name Type Description Notes

cursor | string | | limit | int32 | | [default to 20]

Return type

TiktokHashtagsIdVideosGet200Response

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]

TiktokUsersResolveGet

TiktokUsersResolveGet200Response TiktokUsersResolveGet(ctx).Username(username).Execute()

Resolve a TikTok username to a user id

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/unifapi-agent/unifapi-sdk-go"
)

func main() {
	username := "username_example" // string | Public TikTok handle, e.g. 'jennmelon'

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.TiktokAPI.TiktokUsersResolveGet(context.Background()).Username(username).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TiktokAPI.TiktokUsersResolveGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `TiktokUsersResolveGet`: TiktokUsersResolveGet200Response
	fmt.Fprintf(os.Stdout, "Response from `TiktokAPI.TiktokUsersResolveGet`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
username string Public TikTok handle, e.g. 'jennmelon'

Return type

TiktokUsersResolveGet200Response

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]

TiktokVideosBatchPost

TiktokFeedRecommendedPost200Response TiktokVideosBatchPost(ctx).TiktokVideosBatchPostRequest(tiktokVideosBatchPostRequest).Execute()

Batch-fetch TikTok videos by ID

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/unifapi-agent/unifapi-sdk-go"
)

func main() {
	tiktokVideosBatchPostRequest := *openapiclient.NewTiktokVideosBatchPostRequest([]string{"Ids_example"}) // TiktokVideosBatchPostRequest |  (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.TiktokAPI.TiktokVideosBatchPost(context.Background()).TiktokVideosBatchPostRequest(tiktokVideosBatchPostRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TiktokAPI.TiktokVideosBatchPost``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `TiktokVideosBatchPost`: TiktokFeedRecommendedPost200Response
	fmt.Fprintf(os.Stdout, "Response from `TiktokAPI.TiktokVideosBatchPost`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
tiktokVideosBatchPostRequest TiktokVideosBatchPostRequest

Return type

TiktokFeedRecommendedPost200Response

Authorization

bearerAuth

HTTP request headers

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

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

TiktokVideosIdCommentsCommentIdRepliesGet

TiktokVideosIdCommentsCommentIdRepliesGet200Response TiktokVideosIdCommentsCommentIdRepliesGet(ctx, id, commentId).Cursor(cursor).Limit(limit).Execute()

List replies to a TikTok comment

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/unifapi-agent/unifapi-sdk-go"
)

func main() {
	id := "id_example" // string | 
	commentId := "commentId_example" // string | 
	cursor := "cursor_example" // string |  (optional)
	limit := int32(56) // int32 |  (optional) (default to 20)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.TiktokAPI.TiktokVideosIdCommentsCommentIdRepliesGet(context.Background(), id, commentId).Cursor(cursor).Limit(limit).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TiktokAPI.TiktokVideosIdCommentsCommentIdRepliesGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `TiktokVideosIdCommentsCommentIdRepliesGet`: TiktokVideosIdCommentsCommentIdRepliesGet200Response
	fmt.Fprintf(os.Stdout, "Response from `TiktokAPI.TiktokVideosIdCommentsCommentIdRepliesGet`: %v\n", resp)
}

Path Parameters

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

Other Parameters

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

Name Type Description Notes

cursor | string | | limit | int32 | | [default to 20]

Return type

TiktokVideosIdCommentsCommentIdRepliesGet200Response

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]

TiktokVideosIdCommentsGet

TiktokVideosIdCommentsCommentIdRepliesGet200Response TiktokVideosIdCommentsGet(ctx, id).Cursor(cursor).Limit(limit).Execute()

List top-level comments on a TikTok video

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)
	limit := int32(56) // int32 |  (optional) (default to 20)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.TiktokAPI.TiktokVideosIdCommentsGet(context.Background(), id).Cursor(cursor).Limit(limit).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TiktokAPI.TiktokVideosIdCommentsGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `TiktokVideosIdCommentsGet`: TiktokVideosIdCommentsCommentIdRepliesGet200Response
	fmt.Fprintf(os.Stdout, "Response from `TiktokAPI.TiktokVideosIdCommentsGet`: %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 apiTiktokVideosIdCommentsGetRequest struct via the builder pattern

Name Type Description Notes

cursor | string | | limit | int32 | | [default to 20]

Return type

TiktokVideosIdCommentsCommentIdRepliesGet200Response

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]

TiktokVideosIdGet

TiktokVideosIdGet200Response TiktokVideosIdGet(ctx, id).Execute()

Get a TikTok video by ID

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.TiktokAPI.TiktokVideosIdGet(context.Background(), id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TiktokAPI.TiktokVideosIdGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `TiktokVideosIdGet`: TiktokVideosIdGet200Response
	fmt.Fprintf(os.Stdout, "Response from `TiktokAPI.TiktokVideosIdGet`: %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 apiTiktokVideosIdGetRequest struct via the builder pattern

Name Type Description Notes

Return type

TiktokVideosIdGet200Response

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]

TiktokVideosResolveGet

TiktokVideosIdGet200Response TiktokVideosResolveGet(ctx).Url(url).Execute()

Resolve a TikTok share URL to a video

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/unifapi-agent/unifapi-sdk-go"
)

func main() {
	url := "url_example" // string | TikTok share URL (long or short form)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.TiktokAPI.TiktokVideosResolveGet(context.Background()).Url(url).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TiktokAPI.TiktokVideosResolveGet``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `TiktokVideosResolveGet`: TiktokVideosIdGet200Response
	fmt.Fprintf(os.Stdout, "Response from `TiktokAPI.TiktokVideosResolveGet`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
url string TikTok share URL (long or short form)

Return type

TiktokVideosIdGet200Response

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.