aid: goatcounter
name: GoatCounter
description: >-
  GoatCounter is open-source, privacy-friendly web analytics from Martin Tournoij, offered both as a free
  donation-supported hosted service at goatcounter.com and as a self-hostable Go binary backed by SQLite or
  PostgreSQL. It tracks pageviews without cookies or persistent personal identifiers. The unversioned JSON API,
  prefixed /api/v0 and served from each account's own subdomain, covers counting pageviews and events from a
  backend, reading dashboard statistics (totals, per-path hits, referrals, browser/system/location breakdowns),
  running asynchronous CSV and JSON exports with an incremental hit-ID cursor, and managing sites and users.
  Authentication is a per-site API key sent as an HTTP bearer token, and the provider publishes its own
  OpenAPI 2.0 contract at https://www.goatcounter.com/api.json.
type: Index
deliveryModel:
  model: saas
  open_source: false
  commercial: true
  callable_host: true
  label: Hosted service · you call their endpoint
  confidence: high
  source:
  - openapi
  - pricing
  generated: '2026-08-28'
  method: derived
accessModel:
  pricing: free
  onboarding: self-serve
  trial: false
  try_now: true
  public: false
  label: Free (donation-supported) · Self-serve signup
  confidence: high
  source:
  - plans
  - authentication
  generated: '2026-08-13'
  method: searched
  note: >-
    Corrected 2026-08-13 from "freemium" to "free". GoatCounter publishes no paid tier — the hosted service is
    offered free for reasonable public usage and funded by donations, with self-hosting as the route for
    heavier use. Source https://www.goatcounter.com/#pricing
position: Consuming
access: 3rd-Party
image: https://kinlane-images.s3.amazonaws.com/shared/apis-json/icons/goatcounter.png
tags:
  - Analytics
  - Page Views
  - Privacy
  - Statistics
  - Web Analytics
  - Open Source
  - Self-Hosted
  - Event
  - Data Export
  - Developer Tools
tags_raw:
  - Analytics
  - Pageviews
  - Privacy
  - Statistics
  - Web Analytics
  - Open Source
  - Self-Hosted
  - Events
  - Data Export
  - Developer Tools
  - Open-Source
created: '2025-02-08'
modified: '2026-08-13'
url: https://raw.githubusercontent.com/api-evangelist/goatcounter/refs/heads/main/apis.yml
specificationVersion: '0.23'
apis:
- aid: goatcounter:goatcounter-exports-api
  name: GoatCounter Exports API
  description: The Exports API from GoatCounter — 3 operation(s) for exports.
  humanURL: https://www.goatcounter.com/help/api
  baseURL: https://{code}.goatcounter.com/api/v0
  tags:
  - Export
  tags_raw:
  - Exports
  properties:
  - type: OpenAPI
    url: openapi/goatcounter-exports-api-openapi.yml
  - type: Documentation
    url: https://www.goatcounter.com/help/api
- aid: goatcounter:goatcounter-pageviews-api
  name: GoatCounter Pageviews API
  description: The Pageviews API from GoatCounter — 1 operation(s) for pageviews.
  humanURL: https://www.goatcounter.com/help/api
  baseURL: https://{code}.goatcounter.com/api/v0
  tags:
  - Page Views
  tags_raw:
  - Pageviews
  properties:
  - type: OpenAPI
    url: openapi/goatcounter-pageviews-api-openapi.yml
  - type: Documentation
    url: https://www.goatcounter.com/help/api
- aid: goatcounter:goatcounter-paths-api
  name: GoatCounter Paths API
  description: The Paths API from GoatCounter — 1 operation(s) for paths.
  humanURL: https://www.goatcounter.com/help/api
  baseURL: https://{code}.goatcounter.com/api/v0
  tags:
  - Paths
  properties:
  - type: OpenAPI
    url: openapi/goatcounter-paths-api-openapi.yml
  - type: Documentation
    url: https://www.goatcounter.com/help/api
- aid: goatcounter:goatcounter-sites-api
  name: GoatCounter Sites API
  description: The Sites API from GoatCounter — 2 operation(s) for sites.
  humanURL: https://www.goatcounter.com/help/api
  baseURL: https://{code}.goatcounter.com/api/v0
  tags:
  - Sites
  properties:
  - type: OpenAPI
    url: openapi/goatcounter-sites-api-openapi.yml
  - type: Documentation
    url: https://www.goatcounter.com/help/api
- aid: goatcounter:goatcounter-statistics-api
  name: GoatCounter Statistics API
  description: The Statistics API from GoatCounter — 5 operation(s) for statistics.
  humanURL: https://www.goatcounter.com/help/api
  baseURL: https://{code}.goatcounter.com/api/v0
  tags:
  - Statistics
  properties:
  - type: OpenAPI
    url: openapi/goatcounter-statistics-api-openapi.yml
  - type: Documentation
    url: https://www.goatcounter.com/help/api
- aid: goatcounter:goatcounter-users-api
  name: GoatCounter Users API
  description: The Users API from GoatCounter — 1 operation(s) for users.
  humanURL: https://www.goatcounter.com/help/api
  baseURL: https://{code}.goatcounter.com/api/v0
  tags:
  - User
  tags_raw:
  - Users
  properties:
  - type: OpenAPI
    url: openapi/goatcounter-users-api-openapi.yml
  - type: Documentation
    url: https://www.goatcounter.com/help/api
- aid: goatcounter:goatcounter-count-api
  name: GoatCounter Count API
  description: The count API from GoatCounter — 1 operation(s) for count.
  humanURL: https://www.goatcounter.com/help/api
  baseURL: https://{code}.goatcounter.com/api/v0
  tags:
  - Count
  tags_raw:
  - count
  properties:
  - type: OpenAPI
    url: openapi/goatcounter-count-api-openapi.yml
- aid: goatcounter:goatcounter-export-api
  name: GoatCounter Export API
  description: The export API from GoatCounter — 3 operation(s) for export.
  humanURL: https://www.goatcounter.com/help/api
  baseURL: https://{code}.goatcounter.com/api/v0
  tags:
  - Export
  tags_raw:
  - export
  properties:
  - type: OpenAPI
    url: openapi/goatcounter-export-api-openapi.yml
- aid: goatcounter:goatcounter-stats-api
  name: GoatCounter Stats API
  description: The stats API from GoatCounter — 5 operation(s) for stats.
  humanURL: https://www.goatcounter.com/help/api
  baseURL: https://{code}.goatcounter.com/api/v0
  tags:
  - Stats
  tags_raw:
  - stats
  properties:
  - type: OpenAPI
    url: openapi/goatcounter-stats-api-openapi.yml
common:
  - type: CapabilityMap
    url: capabilities/goatcounter-capability-edges.yml
    name: GoatCounter Business Capability Map
  - type: AgenticAccess
    url: agentic-access/goatcounter-agentic-access.yml
  - type: DomainSecurity
    url: security/goatcounter-domain-security.yml
  - type: Authentication
    url: authentication/goatcounter-authentication.yml
  - type: Website
    url: https://www.goatcounter.com/
  - type: Documentation
    url: https://www.goatcounter.com/help/api
  - type: SignUp
    url: https://www.goatcounter.com/signup
  - type: GitHubOrganization
    url: https://github.com/arp242/goatcounter
  - type: OpenAPI
    name: GoatCounter API (provider-published OpenAPI 2.0)
    url: openapi/_original/goatcounter-api-swagger20.json
  - type: APIReference
    url: https://www.goatcounter.com/api2.html
  - type: GettingStarted
    url: https://www.goatcounter.com/help/start
  - type: Support
    url: https://www.goatcounter.com/contact
  - type: Pricing
    url: https://www.goatcounter.com/#pricing
  - type: TermsOfService
    url: https://www.goatcounter.com/help/terms
  - type: PrivacyPolicy
    url: https://www.goatcounter.com/help/privacy
  - type: StatusPage
    url: https://www.goatcounter.com/status
  - type: Security
    url: https://www.goatcounter.com/security.txt
  - type: SecurityTxt
    url: well-known/goatcounter-security.txt
  - type: VulnerabilityDisclosure
    url: security/goatcounter-vulnerability-disclosure.yml
  - type: Packages
    url: packages/goatcounter-packages.yml
  - type: CLI
    url: cli/goatcounter-cli.yml
  - type: Components
    url: components/goatcounter-components.yml
  - type: Sandbox
    url: sandbox/goatcounter-sandbox.yml
  - type: Conventions
    url: conventions/goatcounter-conventions.yml
  - type: ErrorCatalog
    url: errors/goatcounter-problem-types.yml
  - type: DataModel
    url: data-model/goatcounter-data-model.yml
  - type: Lifecycle
    url: lifecycle/goatcounter-lifecycle.yml
  - type: ChangeLog
    url: changelog/goatcounter-changelog.yml
  - type: Conformance
    url: conformance/goatcounter-conformance.yml
  - type: Overlay
    url: overlays/goatcounter-api-overlay.yaml
  - type: LLMsTxt
    url: llms/goatcounter-llms.txt
  - type: AgentSkill
    url: skills/_index.yml
  - type: Plans
    url: plans/goatcounter-plans-pricing.yml
  - type: RateLimits
    url: rate-limits/goatcounter-rate-limits.yml
  - type: FinOps
    url: finops/goatcounter-finops.yml
maintainers:
  - FN: Kin Lane
    email: kin@apievangelist.com
x-enrichment:
  date: '2026-08-13'
  status: enriched
  artifacts_added: 18
  pass: local-v1
