Hidden Endpoints, Usage Widgets and the Risk of Building on Them

APIFreeKeyAnthropic · Updated 2026-11-22 · 8 min read

Back service door next to a lit public entrance
Public APIs are the front door; internal endpoints are the staff entrance.

You want a tiny desktop widget that shows how much of your coding assistant's allowance is left. You open the browser's network tab, spot an internal endpoint that returns exactly the numbers you need, and wonder whether you may call it from your own app. Developers ask this kind of question often, about usage meters, session tokens and internal model lists alike.

This article is for hobbyists and small tool makers who are tempted by undocumented endpoints of AI services. It explains how to think about terms of service, what tends to break, what the security risks are for you and your users, and what safer alternatives exist. It gives no legal advice, and the specific rules of any vendor are in their own current terms, which you should read before shipping anything.

Frequently asked questions

What is an undocumented endpoint?

It is a URL that a service's own apps call but that is not listed in its public API reference. It may serve dashboards, usage meters or login flows, and it can change or disappear without notice.

Is calling an undocumented endpoint illegal?

Usually the question is contractual rather than criminal: whether it violates the service's terms of use. Many terms restrict automated access or reuse of session credentials outside official clients. Read the current terms, and ask the vendor when unsure.

How does a public API differ from an internal one?

A public API comes with documentation, versioning, authentication meant for third parties and some promise of stability. An internal one serves the vendor's own apps, can change any day and often relies on login cookies or tokens not meant for reuse.

Which is safer for a personal tool: scraping a dashboard or an official API?

The official API, almost always. It uses credentials designed for programs, has documented limits, and keeps you within the rules. Scraping a dashboard ties your tool to a page layout and your account to a gray area.

Can using hidden endpoints get my account restricted?

It can, depending on the vendor's terms and how the traffic looks. Unusual automated requests with a consumer login are a classic trigger for security reviews. Losing the account would cost far more than the widget is worth.

Is it safe to share a tool that asks users for their session token?

It is risky for them and for you. A session token can grant full account access, so users must trust your code completely. If the token leaks through logs or a bug, the damage is real.

What about the free endpoints on this site?

They are documented and public: chat completions, completions, models, health and a plain-text ask endpoint. You can build on them freely within the stated limits, keeping in mind there is no SLA.

Why hidden endpoints are so tempting

Official APIs rarely expose everything a power user wants. Subscription usage, session windows and account-level statistics often live only in the vendor's app. The app has to fetch them from somewhere, so the data is one request away in your browser's developer tools. Building a tool on top looks like a weekend job.

The appeal is real and the motive is usually innocent: people want to understand their own usage. The risk is that the easiest path is also the most fragile and the one most likely to conflict with the rules.

Usage meters

Plans that limit usage by window or week often show the meter only in the official client, which pushes curious users toward the internal calls behind it.

Login-bound features

Features tied to a consumer subscription rather than an API key are rarely exposed publicly, so the only programmatic route is the private one.

What the terms usually say, in general

Terms of service for AI products commonly cover automated access, reverse engineering, credential sharing and using consumer plans through third-party software. The precise wording differs and changes over time, so the only reliable source is the vendor's current terms page. If a rule is unclear, a short message to the vendor's support is better than guessing.

Watch especially for clauses separating consumer subscriptions from API access. Many vendors sell API usage separately and expect programs to use API keys, while consumer logins are meant for their own apps. A tool that pipes a subscription session into other software can fall on the wrong side of that line, even if it only reads a number.

Ask before you ship

Writing to support with a concrete description, such as a read-only widget for personal use, often gets a clear answer and sometimes a pointer to an official alternative.

Small gauge on a desk next to a laptop
Usage widgets are a common reason to reach for hidden endpoints.

Stability: the part that bites first

Even when nobody objects, internal endpoints break. They exist to serve one app, and the team that owns them can rename fields, add authentication steps or move to a new path in any release. There is no deprecation notice because there was never a promise. Tools built on them tend to fail silently, showing stale or zero values, which is worse than an error.

The same thing happens to developer tools themselves: features you depend on can be removed in a breaking change. Our guide on surviving breaking changes in AI dev tools covers pinning and fallbacks; with undocumented endpoints you do not even get a changelog.

Silent failure is the worst failure

When a private endpoint changes shape, your parser may still succeed and simply read an empty or default value. A usage widget then shows plenty of allowance left while you are actually at the limit. If you do experiment with such calls for personal use, validate every response strictly and show an obvious error state when fields are missing.

No one to ask

Public APIs have changelogs, forums and support staff who answer questions about them. Internal endpoints have none of that, so when something breaks you are reverse engineering again from scratch, often after the tool has been wrong for days.

  • Field names change without notice when the vendor redesigns a page.
  • New anti-automation checks start rejecting requests that worked yesterday.
  • Regional rollouts mean the endpoint behaves differently for different users of your tool.
  • Rate limits on internal calls are unknown until you hit them.

Security risks for you and your users

Most undocumented endpoints authenticate with your session cookie or an OAuth token issued to the official app. To call them from a widget, you have to copy that credential somewhere your code can read it. That credential is often far more powerful than an API key: it may allow changing account settings, reading conversations or managing billing.

If you distribute the tool, every user pastes their own powerful token into your code. A single logging mistake, a crash report uploaded with environment variables, or a compromised update can expose all of them. Responsible tool makers avoid that design entirely.

Scope matters

An API key can often be limited to one workspace or spending cap. A session token usually cannot be scoped, so leaking it gives away the whole account.

Rotation is hard

Session tokens refresh in ways you do not control, so tools end up asking users to paste them again and again, training people to hand credentials to software.

House of cards near an open window
Tools built on internal calls can fall over with any update.

Safer ways to get the same information

Start with the official API reference and the developer console. Vendors increasingly offer usage and cost reports for API workspaces, sometimes with an admin API. If you use API keys for your own projects, you can also measure usage yourself from the usage field that most chat APIs return with each response.

For subscription usage that has no public interface, accept the official app as the source of truth, or file a feature request. A self-built counter that logs your own requests is legitimate and often more useful anyway, because it records exactly what your tools sent.

Log at the source

Wrap your API client so every call appends prompt and completion tokens to a local file. A widget can then read that file instead of a private endpoint.

import json, time
from openai import OpenAI

# Count your own usage locally instead of scraping a dashboard.
client = OpenAI(base_url="https://api.apifreekeyanthropic.com/v1", api_key="none")

def ask(prompt, log_path="usage_log.jsonl"):
    r = client.chat.completions.create(model="free-ai",
                                       messages=[{"role": "user", "content": prompt}])
    entry = {"ts": time.time(),
             "prompt_tokens": r.usage.prompt_tokens,
             "completion_tokens": r.usage.completion_tokens}
    with open(log_path, "a") as f:
        f.write(json.dumps(entry) + "\n")
    return r.choices[0].message.content

print(ask("Give me one tip for naming Python variables."))

A quick decision guide

When you are tempted by an internal call, run through a few honest questions. The answers usually make the decision obvious.

Personal use versus distribution

A script on your own laptop affects only you. Publishing an extension that thousands install multiplies every risk, including to your reputation.

  • Is the data available through a documented API or export? Use that.
  • Would the vendor's terms reasonably cover this use? If you cannot tell, ask them.
  • Does the call require a session credential with broad powers? Then do not distribute it.
  • Would the tool still be useful if the endpoint vanished tomorrow? If not, design a fallback.
  • Is this only for you, on your own machine, reading your own data? Lower stakes, but the terms still apply.
Ring of keys with one large master key
Session tokens are often master keys, far more powerful than an API key.

Brand-name clones and fake 'internal' APIs

A related trap is third-party services claiming to offer a vendor's internal or unofficial API at a discount. They often rely on pooled consumer accounts or shared keys, which breaks terms and puts your data in unknown hands. Avoid them, and never use key lists or generators of any kind.

To be clear about this site: it is not affiliated with Anthropic and provides no access to Claude models. It runs free-ai, an independent open-weight model of roughly 35B parameters, through a public, documented OpenAI-compatible API. Each request leaves a technical log with time, IP, user agent, country, endpoint, status, latency, sizes and token counts.

Red flags in an offer

Unlimited usage for a flat small fee, payment only in gift cards or crypto, a request to install a browser extension that reads your sessions, and vague answers about where requests are actually sent. Any one of these is reason enough to walk away.

Building on documented endpoints instead

Documented APIs give you a contract: the paths, the fields and the limits are written down. The keyless API here lists POST /v1/chat/completions, POST /v1/completions, GET /v1/models, GET /health and GET /ask?q=. Limits are published too: one request per second with bursts of three, two in parallel, and a daily cap that resets at 00:00 UTC.

That does not make it a production service with guarantees; there is no SLA and no account, and a 503 means the server is busy and you should retry in a few seconds. But you can build openly on it. For a small desktop helper, the /ask endpoint returning plain text is often all you need. If you also want to render rich answers in a page, see rendering model-generated HTML safely, and for task-pane tools see calling a chat API from an Office add-in.

Check health before calling

A widget can poll /health occasionally and show a grey state when the service is unavailable, instead of pretending to work.

Notebook with tally marks beside a cup of tea
Counting your own requests is a legitimate alternative.
Try the free API

Send a first prompt from the chat box on the home page: no key, no account and no card, just your browser.

Read also