{"id":13337800,"url":"https://github.com/arthurkushman/tiktok-api","last_synced_at":"2025-04-09T23:07:57.890Z","repository":{"id":52065710,"uuid":"232517454","full_name":"arthurkushman/tiktok-api","owner":"arthurkushman","description":"TikTok api sdk for simple video embedding","archived":false,"fork":false,"pushed_at":"2021-05-07T20:49:41.000Z","size":17,"stargazers_count":13,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T23:07:50.807Z","etag":null,"topics":["api","golang","sdk","sdk-go","tiktok"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arthurkushman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-08T08:39:24.000Z","updated_at":"2024-12-15T15:49:23.000Z","dependencies_parsed_at":"2022-09-05T01:41:08.458Z","dependency_job_id":null,"html_url":"https://github.com/arthurkushman/tiktok-api","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthurkushman%2Ftiktok-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthurkushman%2Ftiktok-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthurkushman%2Ftiktok-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthurkushman%2Ftiktok-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arthurkushman","download_url":"https://codeload.github.com/arthurkushman/tiktok-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248125623,"owners_count":21051770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","golang","sdk","sdk-go","tiktok"],"created_at":"2024-07-29T19:15:02.624Z","updated_at":"2025-04-09T23:07:57.860Z","avatar_url":"https://github.com/arthurkushman.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tiktok-api\nTikTok api sdk for simple video embedding\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/arthurkushman/buildsqlx)](https://goreportcard.com/report/github.com/arthurkushman/tiktok-api)\n[![GoDoc](https://github.com/golang/gddo/blob/c782c79e0a3c3282dacdaaebeff9e6fd99cb2919/gddo-server/assets/status.svg)](https://godoc.org/github.com/arthurkushman/tiktok-api)\n[![codecov](https://codecov.io/gh/arthurkushman/tiktok-api/branch/master/graph/badge.svg)](https://codecov.io/gh/arthurkushman/tiktok-api)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\n### Installation\n```go\ngo get -u github.com/arthurkushman/tiktok-api \n```\n\n### Usage\nTo get an embedded content of any video:\n```go\ntts := NewTikTokService()\nresp, err := tts.Embed(map[string]string{\n    \"url\": \"https://www.tiktok.com/@scout2015/video/6718335390845095173\",\n})\n\nresp.Title // \"Scramble up ur name \u0026 I’ll try to guess it😍❤️ #foryoupage #petsoftiktok #aesthetic\"\nresp.AuthorName // \"Scout \u0026 Suki\"\n// and more props - see Response structure bellow\n```\n`resp` is a `Response` struct with all the fields filled-up e.g.:\n```go\ntype Response struct {\n  Version: \"1.0\",\n  Type: \"video\",\n  Title: \"Scramble up ur name \u0026 I’ll try to guess it😍❤️ #foryoupage #petsoftiktok #aesthetic\",\n  AuthorUrl: \"https://www.tiktok.com/@scout2015\",\n  AuthorName: \"Scout \u0026 Suki\",\n  Width: \"100%\",\n  Height: \"100%\",\n  Html: \"\u003cblockquote class=\\\"tiktok-embed\\\" cite=\\\"https://www.tiktok.com/@scout2015/video/6718335390845095173\\\" data-video-id=\\\"6718335390845095173\\\" style=\\\"max-width: 605px;min-width: 325px;\\\" \u003e \u003csection\u003e \u003ca target=\\\"_blank\\\" title=\\\"@scout2015\\\" href=\\\"https://www.tiktok.com/@scout2015\\\"\u003e@scout2015\u003c/a\u003e \u003cp\u003eScramble up ur name \u0026 I’ll try to guess it😍❤️ \u003ca title=\\\"foryoupage\\\" target=\\\"_blank\\\" href=\\\"https://www.tiktok.com/tag/foryoupage\\\"\u003e#foryoupage\u003c/a\u003e \u003ca title=\\\"petsoftiktok\\\" target=\\\"_blank\\\" href=\\\"https://www.tiktok.com/tag/petsoftiktok\\\"\u003e#petsoftiktok\u003c/a\u003e \u003ca title=\\\"aesthetic\\\" target=\\\"_blank\\\" href=\\\"https://www.tiktok.com/tag/aesthetic\\\"\u003e#aesthetic\u003c/a\u003e\u003c/p\u003e \u003ca target=\\\"_blank\\\" title=\\\"♬ original sound - 𝐇𝐚𝐰𝐚𝐢𝐢𓆉\\\" href=\\\"https://www.tiktok.com/music/original-sound-6689804660171082501\\\"\u003e♬ original sound - 𝐇𝐚𝐰𝐚𝐢𝐢𓆉\u003c/a\u003e \u003c/section\u003e \u003c/blockquote\u003e \u003cscript async src=\\\"https://www.tiktok.com/embed.js\\\"\u003e\u003c/script\u003e\",\n  ThumbnailWidth: 720,\n  ThumbnailHeight: 1280,\n  ThumbnailUrl: \"https://p16.muscdn.com/obj/tos-maliva-p-0068/06kv6rfcesljdjr45ukb0000d844090v0200010605\",\n  ProviderUrl: \"https://www.tiktok.com\",\n  ProviderName: \"TikTok\"\n}\n```\nIt allows you to get the embed code and additional information about the video associated with the webpage link provided.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farthurkushman%2Ftiktok-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farthurkushman%2Ftiktok-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farthurkushman%2Ftiktok-api/lists"}