For developers

Measurement and auth, without dragging in a SaaS

One script under 2 KB. A JSON API that tells you what quota you have left in every response. Social login you configure once. No SDK, no build step, no dashboard you have to live in.

< 2 KB script Quota echoed Key auth No SDK required
index.html
<script async src="https://astrina.io/a.js" data-site="42"></script>
No SDK required

What you wire up before you measure anything

None of that was the job. The job was answering how many people came and whether they signed up.

And the last one is not hypothetical: a key that travels in a query string ends up in your access log, your proxy log, and the Referer header of every outbound link on the page. Astrina will not accept a key in a URL at all — header only, so the mistake is not available to make.

?api_key=ak_… X-Api-Key: ak_…
Three snippets, no SDK

The whole integration

Step 1

Count something

One async tag with your site id, plus a noscript pixel if you want the hardened path. It sets a first-party id on your own domain — no third-party cookies. Reports fill from the first hit.

<script async src="https://astrina.io/a.js" data-site="42"></script>
<noscript><img src="https://astrina.io/px.gif?s=42" width="1" height="1" alt=""></noscript>
Step 2

Name what counts

Define a goal on a URL in the dashboard, or fire a named event from code for anything a URL cannot express. Each goal reports its own conversion rate.

AstrinaGoal("signup", { plan: "pro" });
Step 3

Read it back out

Generate a key in your account and send it as a header. Every response echoes the quota you have left, so you are not guessing until a 429. Keys are stored hashed — we can issue a new one, never show you the old one.

curl -s https://astrina.io/api/v1/stats \
  -H "X-Api-Key: ak_..." \
  -G -d site=example.com

# {"quota":{"used":7,"limit":100}, ...}
The one limit you will actually hit

Calls a day, by plan

The number next to each plan is the limit the API itself enforces. The bars are drawn on a log scale, so the free tier stays visible.

quota.limit
Free 100calls / day
Pro 5,000calls / day
Business 25,000calls / day
Business Plus 100,000calls / day
No card, no sales call

Start on Free and see if it fits

Free

€0forever

Enough to wire it into one project.

  • 3 sites
  • 100 API calls a day
  • 33 days of history
  • Goals by URL or named event
  • Social login, every provider
Start free
Best for one product

Pro

€19/ 30 days

When something real is running on it.

  • 25 sites
  • 5,000 API calls a day
  • 180 days of history
  • CSV export of raw visits
  • The live visitor feed
Choose Pro

Business

€59/ 30 days

For a fleet, or a busy API client.

  • 100 sites
  • 25,000 API calls a day
  • 365 days of history
  • Session replay, with fields masked by default
Choose Business

Paid from an account balance you top up by card or crypto through Payora. Nothing auto-renews — a plan expires and you decide again. Every social login provider is supported in code and switches on once you supply your own app credentials. Early-adopter pricing.

One tag now, one header later

Paste the script, see the first hit, then read it back out with a key. Free covers one project with room to spare.

What this page answers

  • analytics API for developers
  • lightweight counter script
  • site monitoring from code
  • developer-friendly analytics
  • what is Astrina for developers
  • how Astrina for developers works
  • Astrina for developers explained
  • Astrina for developers guide
  • how to start with Astrina for developers
  • Astrina for developers reviews
  • is Astrina for developers worth it
  • Astrina for developers pricing
  • Astrina for developers alternatives
  • Astrina for developers for beginners
  • why Astrina for developers
  • Astrina for developers — what you get