Skip to content

Commit

Permalink
document using --query-file-json multiple times, and new flag --video…
Browse files Browse the repository at this point in the history
…-id in, README
  • Loading branch information
macpd committed Aug 20, 2024
1 parent 9bc423a commit b29922a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,11 @@ account with `--region` (this flag can be provided multiple times include
multiple regions). See tiktok API documentation for more info about this field
https://developers.tiktok.com/doc/research-api-specs-query-videos/

### Video by ID
If you know the ID of the video you want, you can query for it directly with
`--video-id`. NOTE: you will still have to provide start and end dates (due to
TikTok Research API design).

### fetching user info
`--fetch-user-info` For each video the API returns user info is fetched for the video's creator. (for more about what TikTok research API provides and how it is structured see https://developers.tiktok.com/doc/research-api-specs-query-user-info)

Expand Down Expand Up @@ -223,7 +228,8 @@ This prints the JSON query to stdout.
## Advanced queries
If the provided querying functionality does not meet your needs or you want to
provide your own query use the `--query-file-json` flag. This takes a path to a
JSON file that will be used as the query for requests to the API. NOTE: the
JSON file that will be used as the query for requests to the API, and can be
used multiple times in the same command to run those queries serially. NOTE: the
provided file is NOT checked for validity.
See tiktok documentation for more info about crafting queries https://developers.tiktok.com/doc/research-api-get-started/

Expand Down

0 comments on commit b29922a

Please sign in to comment.