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 |
TiktokFeedRecommendedPost200Response TiktokFeedRecommendedPost(ctx).TiktokFeedRecommendedPostRequest(tiktokFeedRecommendedPostRequest).Execute()
Get TikTok recommendation videos
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) }
Other parameters are passed through a pointer to a apiTiktokFeedRecommendedPostRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| tiktokFeedRecommendedPostRequest | TiktokFeedRecommendedPostRequest |
TiktokFeedRecommendedPost200Response
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TiktokHashtagsIdGet200Response TiktokHashtagsIdGet(ctx, id).Execute()
Get a TikTok hashtag by ID
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) }
| 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 apiTiktokHashtagsIdGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
TiktokHashtagsIdGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TiktokHashtagsIdVideosGet200Response TiktokHashtagsIdVideosGet(ctx, id).Cursor(cursor).Limit(limit).Execute()
List videos tagged with a TikTok hashtag
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) }
| 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 apiTiktokHashtagsIdVideosGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
cursor | string | | limit | int32 | | [default to 20]
TiktokHashtagsIdVideosGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TiktokMusicIdGet200Response TiktokMusicIdGet(ctx, id).Execute()
Get a TikTok music track by ID
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) }
| 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 apiTiktokMusicIdGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TiktokHashtagsIdVideosGet200Response TiktokMusicIdVideosGet(ctx, id).Cursor(cursor).Limit(limit).Execute()
List videos using a TikTok music track
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) }
| 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 apiTiktokMusicIdVideosGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
cursor | string | | limit | int32 | | [default to 20]
TiktokHashtagsIdVideosGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TiktokHashtagsIdVideosGet200Response TiktokSearchGet(ctx).Q(q).Cursor(cursor).Limit(limit).Execute()
General TikTok search (returns videos)
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) }
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] |
TiktokHashtagsIdVideosGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TiktokSearchHashtagsGet200Response TiktokSearchHashtagsGet(ctx).Q(q).Cursor(cursor).Limit(limit).Execute()
Search TikTok hashtags by keyword
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) }
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] |
TiktokSearchHashtagsGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TiktokSearchUsersGet200Response TiktokSearchUsersGet(ctx).Q(q).Cursor(cursor).Limit(limit).Execute()
Search TikTok users by keyword
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) }
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] |
TiktokSearchUsersGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TiktokHashtagsIdVideosGet200Response TiktokSearchVideosGet(ctx).Q(q).Cursor(cursor).Limit(limit).Execute()
Search TikTok videos by keyword
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) }
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] |
TiktokHashtagsIdVideosGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TiktokSearchUsersGet200Response TiktokUsersIdFollowersGet(ctx, id).Cursor(cursor).Limit(limit).Execute()
List a TikTok user's followers
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) }
| 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 are passed through a pointer to a apiTiktokUsersIdFollowersGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
cursor | string | | limit | int32 | | [default to 20]
TiktokSearchUsersGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TiktokSearchUsersGet200Response TiktokUsersIdFollowingGet(ctx, id).Cursor(cursor).Limit(limit).Execute()
List users a TikTok user is following
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) }
| 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 are passed through a pointer to a apiTiktokUsersIdFollowingGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
cursor | string | | limit | int32 | | [default to 20]
TiktokSearchUsersGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TiktokUsersIdGet200Response TiktokUsersIdGet(ctx, id).Execute()
Get a TikTok user profile
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) }
| 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 are passed through a pointer to a apiTiktokUsersIdGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TiktokHashtagsIdVideosGet200Response TiktokUsersIdLikesGet(ctx, id).Cursor(cursor).Limit(limit).Execute()
List videos liked by a TikTok user
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) }
| 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 are passed through a pointer to a apiTiktokUsersIdLikesGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
cursor | string | | limit | int32 | | [default to 20]
TiktokHashtagsIdVideosGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TiktokHashtagsIdVideosGet200Response TiktokUsersIdVideosGet(ctx, id).Cursor(cursor).Limit(limit).Execute()
List videos posted by a TikTok user
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) }
| 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 are passed through a pointer to a apiTiktokUsersIdVideosGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
cursor | string | | limit | int32 | | [default to 20]
TiktokHashtagsIdVideosGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TiktokUsersResolveGet200Response TiktokUsersResolveGet(ctx).Username(username).Execute()
Resolve a TikTok username to a user id
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) }
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' |
TiktokUsersResolveGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TiktokFeedRecommendedPost200Response TiktokVideosBatchPost(ctx).TiktokVideosBatchPostRequest(tiktokVideosBatchPostRequest).Execute()
Batch-fetch TikTok videos by ID
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) }
Other parameters are passed through a pointer to a apiTiktokVideosBatchPostRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| tiktokVideosBatchPostRequest | TiktokVideosBatchPostRequest |
TiktokFeedRecommendedPost200Response
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TiktokVideosIdCommentsCommentIdRepliesGet200Response TiktokVideosIdCommentsCommentIdRepliesGet(ctx, id, commentId).Cursor(cursor).Limit(limit).Execute()
List replies to a TikTok comment
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) }
| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | string | ||
| commentId | string |
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]
TiktokVideosIdCommentsCommentIdRepliesGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TiktokVideosIdCommentsCommentIdRepliesGet200Response TiktokVideosIdCommentsGet(ctx, id).Cursor(cursor).Limit(limit).Execute()
List top-level comments on a TikTok video
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) }
| 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 apiTiktokVideosIdCommentsGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
cursor | string | | limit | int32 | | [default to 20]
TiktokVideosIdCommentsCommentIdRepliesGet200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TiktokVideosIdGet200Response TiktokVideosIdGet(ctx, id).Execute()
Get a TikTok video by ID
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) }
| 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 apiTiktokVideosIdGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TiktokVideosIdGet200Response TiktokVideosResolveGet(ctx).Url(url).Execute()
Resolve a TikTok share URL to a video
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) }
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) |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]