lurkapi
The official Python client for LurkAPI: public social media data as clean JSON. Profiles, posts, comments, transcripts and ads from TikTok, Instagram, YouTube, Reddit, X (Twitter), LinkedIn, Facebook, Google and more, one GET request per call.
No dependencies: the standard library only. Python 3.9+.
pip install lurkapi
export LURKAPI_API_KEY=lk_live_… # free at https://lurkapi.com/login
from lurkapi import LurkAPI
lurk = LurkAPI() # reads LURKAPI_API_KEY
profile = lurk.tiktok.profile(handle="nike")
print(profile["user"]["nickname"], profile["stats"]["followerCount"])
text = lurk.youtube.transcript(url="https://www.youtube.com/watch?v=dQw4w9WgXcQ")["transcript_only_text"]
Every answer is the API's JSON as a dict: the endpoint's fields beside success, credits_charged and credits_remaining.
Every endpoint, including ones added after you installed
The client holds no list of endpoints. It reads the API's own index, so anything in the docs works without an update:
lurk.tiktok.profile_videos(handle="nike") # lurk.<platform>.<endpoint>()
lurk.get("tiktok_profile_videos", handle="nike") # by name
lurk.get("/v3/tiktok/profile/videos", {"handle": "nike"}) # by path: no lookup, the fastest
endpoints = lurk.endpoints() # [{"name", "path", "summary", "credits", "cost", "docs"}, …]
The first call by name reads the index once (5 KB); a call by path never does. Parameters go as keywords, as a dict, or both; True and False are sent as the API expects them.
Your editor completes the endpoints known when your version was released, with their parameters and a line on what each costs. A newer endpoint works the same way; it just isn't suggested yet.
Errors
A failed call raises LurkAPIError with the API's code, status, message, docs link and, for bad parameters, issues:
from lurkapi import LurkAPI, LurkAPIError
try:
lurk.tiktok.profile(handle="someone-who-is-not-there")
except LurkAPIError as e:
if e.code != "not_found":
raise
print("no such account")
The codes are in the docs. When there was no answer at all, status is 0 and code is timeout, connection_error, bad_response or unknown_endpoint.
Retried for you, twice by default: any 5xx (never charged), a 429 that says when to come back, and a connection that failed. Nothing else is: a not_found is charged, so it's never asked twice.
Pages
Endpoints page the way their platform does, so the cursor's name is on each endpoint's docs page. The loop is the same everywhere:
after = None
while True:
page = lurk.reddit.subreddit_posts(subreddit="marketing", after=after)
for post in page["posts"]:
print(post["title"])
after = page.get("after")
if not after:
break
Options
lurk = LurkAPI(
"lk_live_…", # default: LURKAPI_API_KEY
timeout=100, # seconds to wait (default 100: a web page can take 90)
max_retries=2,
)
One client keeps its connections open, so make it once and share it; it's safe across threads. In async code, await asyncio.to_thread(lurk.tiktok.profile, handle="nike").
It doesn't read HTTPS_PROXY.
Links
Docs · Pricing · Status · JavaScript client and CLI · support@lurkapi.com
MIT
Metadata
Release files for lurkapi 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lurkapi-0.1.0.tar.gz | 25.9 kB | With provenance | Details for lurkapi-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lurkapi-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for lurkapi-0.1.0-py3-none-any.whl |
Total release size: 46.8 kB
Release files / lurkapi-0.1.0.tar.gz
| Download URL | lurkapi-0.1.0.tar.gz |
|---|---|
| Size | 25.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2cd5cd24bbc7a3831777eff4b3ae6bc5c6ebb8bc6a66f84fc55b46b48779f3d
|
|
BLAKE2b-256 checksum How to use checksums |
3ee0138b39de0146a6a5e3bcc5f22b98e097220548d240788b921e74aedf8ce3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logRelease files / lurkapi-0.1.0-py3-none-any.whl
| Download URL | lurkapi-0.1.0-py3-none-any.whl |
|---|---|
| Size | 20.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
68f2b4135a12f929d1e8733d575fd29c78b810887ef9d67a47696a438e5185b0
|
|
BLAKE2b-256 checksum How to use checksums |
4355093b9d2a46fcfa29a9010fc8281b20ea6ccef82b3fe6483545fef24c8186
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logSecurity for lurkapi 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for lurkapi-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.