{"openapi":"3.1.0","info":{"title":"Cache API","description":"RESTful API for Instagram and TikTok data. Access user profiles, posts, stories, highlights, comments, hashtags, locations, audio tracks (Instagram), and videos, comments, hashtags, playlists (TikTok).\n\nAll endpoints require an `access_key` query parameter for authentication (handled by the gateway).\n\n**Rate limits** depend on your [plan](https://datalikers.com/pricing). Instagram responses are served from cache with automatic fallback to [HikerAPI](https://hikerapi.com) when available; TikTok responses are cache-only.","termsOfService":"https://datalikers.com/help/terms-of-service","license":{"name":"Pricing","url":"https://datalikers.com/pricing"},"version":"2.10.1"},"paths":{"/v1/user/by/id":{"get":{"tags":["User"],"summary":"Get user by ID","description":"Retrieve an Instagram user profile by their numeric PK (primary key).\n\nReturns the full user object including username, full name, biography,\nfollower/following counts, media count, profile picture URL, and more.","operationId":"user_by_id_v1_user_by_id_get","security":[{"APIKeyQuery":[]}],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"integer","description":"Instagram user PK (numeric ID)","title":"Id"},"description":"Instagram user PK (numeric ID)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response User By Id V1 User By Id Get"}}}},"404":{"description":"User not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/user/by/username":{"get":{"tags":["User"],"summary":"Get user by username","description":"Retrieve an Instagram user profile by their username.\n\nReturns the full user object including PK, full name, biography,\nfollower/following counts, media count, profile picture URL, and more.","operationId":"user_by_username_v1_user_by_username_get","security":[{"APIKeyQuery":[]}],"parameters":[{"name":"username","in":"query","required":true,"schema":{"type":"string","description":"Instagram username (without @)","title":"Username"},"description":"Instagram username (without @)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response User By Username V1 User By Username Get"}}}},"404":{"description":"User not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/user/followers/by/id":{"get":{"tags":["User"],"summary":"Get followers by user ID","description":"List Instagram users known to follow the given user, one page at a time.\n\nBest-effort — coverage is partial, with no guarantee of completeness or\nfreshness. Returns up to 50 users per page; pass the returned\n`next_cursor` to fetch the next page. `next_cursor` is `null` on the\nlast page.","operationId":"followers_by_id_v1_user_followers_by_id_get","security":[{"APIKeyQuery":[]}],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"integer","description":"Instagram user PK (numeric ID) of the followee","title":"Id"},"description":"Instagram user PK (numeric ID) of the followee"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pagination cursor from a previous response's next_cursor","title":"Cursor"},"description":"Pagination cursor from a previous response's next_cursor"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Followers By Id V1 User Followers By Id Get"}}}},"404":{"description":"User not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/user/followers/by/username":{"get":{"tags":["User"],"summary":"Get followers by username","description":"List Instagram users known to follow the given username, one page at a time.\n\nSame coverage caveats and pagination as `/followers/by/id`.","operationId":"followers_by_username_v1_user_followers_by_username_get","security":[{"APIKeyQuery":[]}],"parameters":[{"name":"username","in":"query","required":true,"schema":{"type":"string","description":"Instagram username (without @) of the followee","title":"Username"},"description":"Instagram username (without @) of the followee"},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pagination cursor from a previous response's next_cursor","title":"Cursor"},"description":"Pagination cursor from a previous response's next_cursor"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Followers By Username V1 User Followers By Username Get"}}}},"404":{"description":"User not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/user/about":{"get":{"tags":["User"],"summary":"Get user about info","description":"Retrieve extended \"about\" information for an Instagram user.\n\nReturns country, account registration date, former usernames,\nand other metadata not available in the standard profile endpoint.","operationId":"user_about_v1_user_about_get","security":[{"APIKeyQuery":[]}],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"integer","description":"Instagram user PK (numeric ID)","title":"Id"},"description":"Instagram user PK (numeric ID)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response User About V1 User About Get"}}}},"404":{"description":"User not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/user/face":{"get":{"tags":["User"],"summary":"Get user face analysis","description":"Retrieve AI face analysis data from the user's profile picture.\n\nReturns estimated age, gender, race/ethnicity, and dominant emotion.\nIf no face is detected in the profile picture, returns `{\"face_detected\": false}`.","operationId":"user_face_v1_user_face_get","security":[{"APIKeyQuery":[]}],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"integer","description":"Instagram user PK (numeric ID)","title":"Id"},"description":"Instagram user PK (numeric ID)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response User Face V1 User Face Get"}}}},"404":{"description":"User not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/user/by/id":{"get":{"tags":["User v2"],"summary":"Get user by ID (full)","description":"Retrieve full Instagram user profile by their numeric PK.\n\nReturns the complete unfiltered API response including all fields\nnot available in the normalized v1 endpoint.","operationId":"user_by_id_raw_v2_user_by_id_get","security":[{"APIKeyQuery":[]}],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"integer","description":"Instagram user PK (numeric ID)","title":"Id"},"description":"Instagram user PK (numeric ID)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response User By Id Raw V2 User By Id Get"}}}},"404":{"description":"User not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/media/by/id":{"get":{"tags":["Media"],"summary":"Get media by ID","description":"Retrieve an Instagram media object by its numeric PK.\n\nReturns the full media object including media type (photo/video/carousel),\ncaption, like count, comment count, timestamps, image/video URLs, and\nthe owner user info.","operationId":"media_by_id_v1_media_by_id_get","security":[{"APIKeyQuery":[]}],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"integer","description":"Instagram media PK (numeric ID)","title":"Id"},"description":"Instagram media PK (numeric ID)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Media By Id V1 Media By Id Get"}}}},"404":{"description":"Media not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/media/by/code":{"get":{"tags":["Media"],"summary":"Get media by shortcode","description":"Retrieve an Instagram media object by its shortcode.\n\nThe shortcode is the alphanumeric string in the Instagram post URL:\n`https://instagram.com/p/{CODE}/`","operationId":"media_by_code_v1_media_by_code_get","security":[{"APIKeyQuery":[]}],"parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string","description":"Instagram media shortcode (e.g. 'CxR2k3hLp9Q')","title":"Code"},"description":"Instagram media shortcode (e.g. 'CxR2k3hLp9Q')"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Media By Code V1 Media By Code Get"}}}},"404":{"description":"Media not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/media/by/url":{"get":{"tags":["Media"],"summary":"Get media by URL","description":"Retrieve an Instagram media object by its full URL.\n\nAccepts URLs in formats: `instagram.com/p/{code}/`,\n`instagram.com/reel/{code}/`, `instagram.com/tv/{code}/`.","operationId":"media_by_url_v1_media_by_url_get","security":[{"APIKeyQuery":[]}],"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","description":"Full Instagram post URL (e.g. 'https://instagram.com/p/CxR2k3hLp9Q/')","title":"Url"},"description":"Full Instagram post URL (e.g. 'https://instagram.com/p/CxR2k3hLp9Q/')"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Media By Url V1 Media By Url Get"}}}},"404":{"description":"Media not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/story/by/id":{"get":{"tags":["Story"],"summary":"Get story by ID","description":"Retrieve an Instagram story by its numeric PK.\n\nReturns the story object including media type, image/video URL,\ntimestamps, mentions, and the owner user info.","operationId":"story_by_id_v1_story_by_id_get","security":[{"APIKeyQuery":[]}],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"integer","description":"Instagram story PK (numeric ID)","title":"Id"},"description":"Instagram story PK (numeric ID)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Story By Id V1 Story By Id Get"}}}},"404":{"description":"Story not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/story/by/url":{"get":{"tags":["Story"],"summary":"Get story by URL","description":"Retrieve an Instagram story by its full URL.\n\nAccepts URLs in format:\n`https://www.instagram.com/stories/{username}/{story_id}/`","operationId":"story_by_url_v1_story_by_url_get","security":[{"APIKeyQuery":[]}],"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","description":"Full Instagram story URL (e.g. 'https://instagram.com/stories/username/123456/')","title":"Url"},"description":"Full Instagram story URL (e.g. 'https://instagram.com/stories/username/123456/')"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Story By Url V1 Story By Url Get"}}}},"404":{"description":"Story not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/location/by/id":{"get":{"tags":["Location"],"summary":"Get location by ID","description":"Retrieve an Instagram location by its numeric PK.\n\nReturns the location object including name, address, city,\nlatitude/longitude coordinates, and associated media count.","operationId":"location_by_id_v1_location_by_id_get","security":[{"APIKeyQuery":[]}],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"integer","description":"Instagram location PK (numeric ID)","title":"Id"},"description":"Instagram location PK (numeric ID)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Location By Id V1 Location By Id Get"}}}},"404":{"description":"Location not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/location/by/name":{"get":{"tags":["Location"],"summary":"Search location by name","description":"Find an Instagram location by name (case-insensitive search).\n\nReturns the first matching location object. Use this when you\ndon't know the numeric PK but have the location name.","operationId":"location_by_name_v1_location_by_name_get","security":[{"APIKeyQuery":[]}],"parameters":[{"name":"name","in":"query","required":true,"schema":{"type":"string","description":"Location name to search for","title":"Name"},"description":"Location name to search for"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Location By Name V1 Location By Name Get"}}}},"404":{"description":"Location not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/hashtag/by/id":{"get":{"tags":["Hashtag"],"summary":"Get hashtag by ID","description":"Retrieve an Instagram hashtag by its numeric PK.\n\nReturns the hashtag object including name, media count,\nand profile picture URL.","operationId":"hashtag_by_id_v1_hashtag_by_id_get","security":[{"APIKeyQuery":[]}],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"integer","description":"Instagram hashtag PK (numeric ID)","title":"Id"},"description":"Instagram hashtag PK (numeric ID)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Hashtag By Id V1 Hashtag By Id Get"}}}},"404":{"description":"Hashtag not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/hashtag/by/name":{"get":{"tags":["Hashtag"],"summary":"Get hashtag by name","description":"Retrieve an Instagram hashtag by its name.\n\nThe `#` prefix is optional and will be stripped automatically.\nReturns the hashtag object including PK, media count,\nand profile picture URL.","operationId":"hashtag_by_name_v1_hashtag_by_name_get","security":[{"APIKeyQuery":[]}],"parameters":[{"name":"name","in":"query","required":true,"schema":{"type":"string","description":"Hashtag name (with or without '#' prefix)","title":"Name"},"description":"Hashtag name (with or without '#' prefix)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Hashtag By Name V1 Hashtag By Name Get"}}}},"404":{"description":"Hashtag not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/highlight/by/id":{"get":{"tags":["Highlight"],"summary":"Get highlight by ID","description":"Retrieve an Instagram highlight by its numeric PK.\n\nReturns the highlight object including title, cover image,\nmedia items within the highlight, and the owner user info.","operationId":"highlight_by_id_v1_highlight_by_id_get","security":[{"APIKeyQuery":[]}],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"integer","description":"Instagram highlight PK (numeric ID)","title":"Id"},"description":"Instagram highlight PK (numeric ID)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Highlight By Id V1 Highlight By Id Get"}}}},"404":{"description":"Highlight not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/highlight/by/url":{"get":{"tags":["Highlight"],"summary":"Get highlight by URL","description":"Retrieve an Instagram highlight by its full URL.\n\nAccepts URLs in format:\n`https://www.instagram.com/stories/highlights/{highlight_id}/`","operationId":"highlight_by_url_v1_highlight_by_url_get","security":[{"APIKeyQuery":[]}],"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","description":"Full Instagram highlight URL (e.g. 'https://instagram.com/stories/highlights/123456/')","title":"Url"},"description":"Full Instagram highlight URL (e.g. 'https://instagram.com/stories/highlights/123456/')"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Highlight By Url V1 Highlight By Url Get"}}}},"404":{"description":"Highlight not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/track/by/id":{"get":{"tags":["Track"],"summary":"Get audio track by ID","description":"Retrieve an Instagram audio track by its numeric PK.\n\nReturns the track object including title, artist name, duration,\ncover art URL, and usage count in reels.","operationId":"track_by_id_v1_track_by_id_get","security":[{"APIKeyQuery":[]}],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"integer","description":"Instagram audio track PK (numeric ID)","title":"Id"},"description":"Instagram audio track PK (numeric ID)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Track By Id V1 Track By Id Get"}}}},"404":{"description":"Track not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/comment/by/id":{"get":{"tags":["Comment"],"summary":"Get comment by ID","description":"Retrieve an Instagram comment by its numeric PK.\n\nReturns the comment object including text, timestamp, like count,\nand the author's user info. Cache-only — no live fallback.","operationId":"comment_by_id_v1_comment_by_id_get","security":[{"APIKeyQuery":[]}],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"integer","description":"Instagram comment PK (numeric ID)","title":"Id"},"description":"Instagram comment PK (numeric ID)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Comment By Id V1 Comment By Id Get"}}}},"404":{"description":"Comment not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/t1/user/by/id":{"get":{"tags":["TikTok User"],"summary":"Get TikTok user by ID","description":"Retrieve a TikTok user profile by their numeric PK.\n\nCache-only — lamatok v1 has no /by/id endpoint, so a cache miss\nreturns 404 without an external call.","operationId":"user_by_id_t1_user_by_id_get","security":[{"APIKeyQuery":[]}],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"integer","description":"TikTok user PK (numeric ID)","title":"Id"},"description":"TikTok user PK (numeric ID)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response User By Id T1 User By Id Get"}}}},"404":{"description":"User not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/t1/user/by/username":{"get":{"tags":["TikTok User"],"summary":"Get TikTok user by username","description":"Retrieve a TikTok user profile by their unique_id (TikTok handle).\n\nThe `@` prefix is optional and will be stripped automatically. On\ncache miss the request falls back to api.lamatok.com `/v1/user/by/username`\nand writes the result to Citus + ScyllaDB before returning.","operationId":"user_by_username_t1_user_by_username_get","security":[{"APIKeyQuery":[]}],"parameters":[{"name":"username","in":"query","required":true,"schema":{"type":"string","description":"TikTok handle / unique_id (without @)","title":"Username"},"description":"TikTok handle / unique_id (without @)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response User By Username T1 User By Username Get"}}}},"404":{"description":"User not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/t1/media/by/id":{"get":{"tags":["TikTok Media"],"summary":"Get TikTok media by ID","description":"Retrieve a TikTok media (video) by its numeric PK.\n\nOn cache miss the request falls back to api.lamatok.com\n`/v1/media/by/id` and writes the result to Citus + ScyllaDB.","operationId":"media_by_id_t1_media_by_id_get","security":[{"APIKeyQuery":[]}],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"integer","description":"TikTok media PK (numeric ID)","title":"Id"},"description":"TikTok media PK (numeric ID)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Media By Id T1 Media By Id Get"}}}},"404":{"description":"Media not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/t1/media/by/user":{"get":{"tags":["TikTok Media"],"summary":"List TikTok media by user","description":"List a user's TikTok videos (most recent first).\n\nCache-only — lamatok exposes per-user media listings only via\nbackground ttapi flows (`/v1/hashtag/medias`), not as a point lookup\nsuitable for cache-miss fallback. Returns an empty array if the user\nhas no cached media.","operationId":"media_by_user_t1_media_by_user_get","security":[{"APIKeyQuery":[]}],"parameters":[{"name":"user_pk","in":"query","required":true,"schema":{"type":"integer","description":"TikTok user PK (owner)","title":"User Pk"},"description":"TikTok user PK (owner)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Max items to return","default":20,"title":"Limit"},"description":"Max items to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Media By User T1 Media By User Get"}}}},"404":{"description":"Media not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/t1/comment/by/id":{"get":{"tags":["TikTok Comment"],"summary":"Get TikTok comment by ID","description":"Retrieve a TikTok comment by its numeric PK. Cache-only.","operationId":"comment_by_id_t1_comment_by_id_get","security":[{"APIKeyQuery":[]}],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"integer","description":"TikTok comment PK (numeric ID)","title":"Id"},"description":"TikTok comment PK (numeric ID)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Comment By Id T1 Comment By Id Get"}}}},"404":{"description":"Comment not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/t1/comment/by/user":{"get":{"tags":["TikTok Comment"],"summary":"List TikTok comments by user","description":"List comments authored by a TikTok user (most recent first).\n\nReturns an array of comment short objects. An empty array is a valid\nresult for users with no cached comments.","operationId":"comment_by_user_t1_comment_by_user_get","security":[{"APIKeyQuery":[]}],"parameters":[{"name":"user_pk","in":"query","required":true,"schema":{"type":"integer","description":"TikTok user PK (comment author)","title":"User Pk"},"description":"TikTok user PK (comment author)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Max items to return","default":50,"title":"Limit"},"description":"Max items to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Comment By User T1 Comment By User Get"}}}},"404":{"description":"Comment not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/t1/hashtag/by/id":{"get":{"tags":["TikTok Hashtag"],"summary":"Get TikTok hashtag by ID","description":"Retrieve a TikTok hashtag / challenge by its numeric PK.\n\nCache-only — lamatok exposes hashtag lookup by name only\n(`/v1/hashtag/info`), so a cache miss returns 404 without an\nexternal call.","operationId":"hashtag_by_id_t1_hashtag_by_id_get","security":[{"APIKeyQuery":[]}],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"integer","description":"TikTok hashtag (challenge) PK (numeric ID)","title":"Id"},"description":"TikTok hashtag (challenge) PK (numeric ID)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Hashtag By Id T1 Hashtag By Id Get"}}}},"404":{"description":"Hashtag not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/t1/hashtag/by/name":{"get":{"tags":["TikTok Hashtag"],"summary":"Get TikTok hashtag by name","description":"Retrieve a TikTok hashtag / challenge by its name.\n\nThe `#` prefix is optional and will be stripped automatically. On\ncache miss the request falls back to api.lamatok.com\n`/v1/hashtag/info` and writes the result to Citus + ScyllaDB.","operationId":"hashtag_by_name_t1_hashtag_by_name_get","security":[{"APIKeyQuery":[]}],"parameters":[{"name":"name","in":"query","required":true,"schema":{"type":"string","description":"Hashtag name (with or without '#' prefix)","title":"Name"},"description":"Hashtag name (with or without '#' prefix)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Hashtag By Name T1 Hashtag By Name Get"}}}},"404":{"description":"Hashtag not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/t1/playlist/by/id":{"get":{"tags":["TikTok Playlist"],"summary":"Get TikTok playlist by ID","description":"Retrieve a TikTok playlist (mix) by its numeric PK.","operationId":"playlist_by_id_t1_playlist_by_id_get","security":[{"APIKeyQuery":[]}],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"integer","description":"TikTok playlist (mix) PK (numeric ID)","title":"Id"},"description":"TikTok playlist (mix) PK (numeric ID)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Playlist By Id T1 Playlist By Id Get"}}}},"404":{"description":"Playlist not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/t1/playlist/by/user":{"get":{"tags":["TikTok Playlist"],"summary":"List TikTok playlists by user","description":"List playlists (mixes) owned by a TikTok user (most popular first).\n\nReturns an array of playlist short objects. An empty array is a valid\nresult for users with no cached playlists.","operationId":"playlist_by_user_t1_playlist_by_user_get","security":[{"APIKeyQuery":[]}],"parameters":[{"name":"user_pk","in":"query","required":true,"schema":{"type":"integer","description":"TikTok user PK (playlist owner)","title":"User Pk"},"description":"TikTok user PK (playlist owner)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Max items to return","default":20,"title":"Limit"},"description":"Max items to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Playlist By User T1 Playlist By User Get"}}}},"404":{"description":"Playlist not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sys/healthcheck":{"get":{"tags":["System"],"summary":"Health check","description":"Check API service health.\n\nReturns current status, uptime percentage, and server datetime.","operationId":"healthcheck_sys_healthcheck_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Healthcheck Sys Healthcheck Get"}}}}},"security":[{"APIKeyQuery":[]}]}},"/sys/balance":{"get":{"tags":["System"],"summary":"Get account balance","description":"Returns the current account balance and usage info\nfor the authenticated access_key.","operationId":"balance_sys_balance_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Balance Sys Balance Get"}}}}},"security":[{"APIKeyQuery":[]}]}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"APIKeyQuery":{"type":"apiKey","in":"query","name":"access_key"}}},"tags":[{"name":"User","description":"Instagram user profiles — lookup by PK or username, extended about info, AI face analysis, best-effort followers list."},{"name":"Media","description":"Instagram posts, reels, and carousels — lookup by PK, shortcode, or full URL."},{"name":"Story","description":"Instagram stories — lookup by PK or story URL."},{"name":"Highlight","description":"Instagram story highlights — lookup by PK or URL."},{"name":"Comment","description":"Instagram comments — lookup by PK. Cache-only, no live fallback."},{"name":"Hashtag","description":"Instagram hashtags — lookup by PK or name."},{"name":"Location","description":"Instagram locations — lookup by PK or name search."},{"name":"Track","description":"Instagram audio tracks used in reels — lookup by PK."},{"name":"TikTok User","description":"TikTok user profiles — lookup by PK or unique_id (handle)."},{"name":"TikTok Media","description":"TikTok videos — lookup by PK or by owner user_pk."},{"name":"TikTok Comment","description":"TikTok comments — lookup by PK or by author user_pk. Cache-only."},{"name":"TikTok Hashtag","description":"TikTok hashtags (challenges) — lookup by PK or name."},{"name":"TikTok Playlist","description":"TikTok playlists (mixes) — lookup by PK or by owner user_pk."},{"name":"System","description":"Service health check and account balance."}],"externalDocs":{"description":"Get the access_key","url":"https://datalikers.com/tokens"}}