GoatCounter Paths API

The Paths API from GoatCounter — 1 operation(s) for paths.

Operations 2

GET /api/v0/paths Get an overview of paths on this site (without statistics). #
GET /paths List paths #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/goatcounter-paths-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

goatcounter-paths-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Goatcounter Paths API
  version: '1.0'
  description: 'Operations tagged paths across 2 of this provider''s published API definitions: goatcounter-api-swagger20.json, goatcounter-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://goatcounter.com/api/v0
  description: Hosted GoatCounter (replace host with your site's subdomain)
tags:
- name: paths
paths:
  /api/v0/paths:
    get:
      operationId: GET_api_v0_paths
      parameters:
      - description: Limit number of returned results
        in: query
        name: Limit
        schema:
          type: integer
          default: '20'
          maximum: 200
          minimum: 1
      - description: Only select paths after this ID, for pagination.
        in: query
        name: After
        schema:
          type: integer
      responses:
        '200':
          description: 200 OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handlers.apiPathsResponse'
        '400':
          description: 400 Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handlers.apiError'
        '401':
          description: 401 Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handlers.authError'
        '403':
          description: 403 Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handlers.authError'
      summary: Get an overview of paths on this site (without statistics).
      tags:
      - paths
      security:
      - basicAuth: []
  /paths:
    get:
      summary: List paths
      description: Get an overview of all tracked paths on the site.
      operationId: listPaths
      tags:
      - paths
      parameters:
      - name: limit
        in: query
        schema:
          type: integer
      - name: after
        in: query
        schema:
          type: integer
      responses:
        '200':
          description: Paths overview.
      security:
      - bearerAuth: []
    servers:
    - url: https://goatcounter.com/api/v0
      description: Hosted GoatCounter (replace host with your site's subdomain)
components:
  schemas:
    handlers.apiError:
      title: apiError
      description: 'Generic API error. An error will have either the "error" or "errors"

        field set, but not both.'
      type: object
      properties:
        error:
          type: string
        errors:
          type: object
    handlers.apiPathsResponse:
      title: apiPathsResponse
      type: object
      properties:
        more:
          description: True if there are more paths.
          type: boolean
        paths:
          description: List of paths, sorted by ID.
          type: array
          items:
            $ref: '#/components/schemas/goatcounter.Path'
    goatcounter.Path:
      title: Path
      type: object
      properties:
        event:
          description: Is this an event?
          type: boolean
        id:
          description: Path ID
          type: integer
        path:
          description: Path name
          type: string
        title:
          description: Page title
          type: string
    handlers.authError:
      title: authError
      description: 'Authentication error: the API key was not provided or incorrect.'
      type: object
      properties:
        Error:
          type: string
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
    bearerAuth:
      type: http
      scheme: bearer
x-refined-from:
- goatcounter-api-swagger20.json
- goatcounter-openapi.yml