Skip to content
worldgovdata

Legal / Cookies

Cookie policy

Two cookies, both strictly necessary, both set only after you sign in. No analytics cookie, no advertising, no cross-site tracking — which is exactly why this site has never shown you a consent banner.

Version 2026-07-28Effective 2026-07-28

01

The short version

A signed-out visitor to worldgovdata receives no cookies at all. You can browse every country page, ranking, chart and export without one being set.

Signing in sets two: one that holds your session, one that carries a token proving a form submission came from our own page. Both are strictly necessary for a service you asked for. There is no third cookie waiting to be switched on.

02

The cookies we set

Both are first-party, both are set only after you sign in, and both disappear when you sign out.

Every cookie worldgovdata sets, with its purpose, lifetime and attributes.
NameWhat it doesLifetimeAttributes
__Host-wgd_sessionHolds an opaque session token so the server knows you are signed in. The token is random; we store only its SHA-256 hash, so the cookie is the only copy that exists in usable form. It carries no information about you.30 days sliding, 90 days maximumHttpOnly · Secure · SameSite=Lax · Path=/
__Host-wgd_csrfA double-submit token. Every state-changing request must send the same value back in a header or a form field, which is what stops another site submitting a form as you. It must be readable by our own scripts, so it is not HttpOnly — and it is useless to anyone who cannot already read it.SessionSecure · SameSite=Lax · Path=/

The names change on a local development server

The __Host- prefix is a browser-enforced hardening measure that requires the cookie to be Secure, which plain http://localhost is not. On such a server the same two cookies are named wgd_session and wgd_csrf. On the live site you will always see the prefixed names.

03

Preferences kept on your device, which are not cookies

Two settings are remembered in your browser’s local storage. They are not cookies: they are never attached to a request, so they never reach our servers, and we could not read them if we wanted to.

Browser local-storage keys, what they hold, and why they are not cookies.
KeyWhat it holdsWhy
wgd-themeYour theme choice: system, light or dark.So the page does not flash the wrong palette on every load. Set only when you pick one.
wgd-docs-langWhich language the documentation code samples show — cURL, JavaScript, Python, R or Go.So you do not re-pick your language on every documentation page.

Clearing site data in your browser removes both. Nothing breaks: the theme returns to following your system setting and the samples return to cURL.

05

Third parties that could set their own

We embed no social widgets, no comment systems, no advertising tags, no fonts loaded from somebody else’s server and no video players. Two exceptions exist, and both are narrow:

  • The payment checkout. When you open the checkout on account billing, the payment provider’s script loads and may set cookies within its own flow, under its own privacy notice. It loads on that one page and nowhere else, and it never loads for a visitor who is not buying credits.
  • The CDN. Our content delivery network may set a strictly-necessary cookie of its own to tell automated traffic from human traffic and to keep the site available under attack. It is not used for advertising and not used for cross-site tracking.
06

Controlling them

Your browser controls cookies, and we do not override it. Every major browser lets you view, block and delete them per site.

  • Deleting the session cookie signs you out. Nothing else is lost — sign in again and your account, keys, balance and history are exactly where they were.
  • Blocking cookies for this site means you cannot sign in at all: without a session cookie the server has no way to recognise you between two requests. Everything that does not need an account keeps working.
  • Signing out deletes both cookies immediately, and revokes the session on the server so a copy of the cookie is worthless.

The API itself uses no cookies at all. It authenticates with a bearer key on each request, so anything you build on it is unaffected by any of this.

07

Changes

If we ever needed to set a cookie that is not strictly necessary, we would ask for consent first — properly, with a real refuse option — and this page and the privacy policy would say so before it happened. Any change here bumps the version stamp at the top of the page. Questions: connect@worldgovdata.com.

This page lists everything stored on your device by worldgovdata. If you find something here that this page does not describe, that is a bug and we want to hear about it: connect@worldgovdata.com.