Legal Data Hunter Admin API

The Admin API from Legal Data Hunter — 7 operation(s) for admin.

GitHub OpenAPI

Operations 8

GET /v1/admin/stats Admin Stats #
GET /v1/admin/users Admin Users #
GET /v1/admin/users/{user_id}/endpoints Admin User Endpoints #
PATCH /v1/admin/users/{user_id} Update User #
DELETE /v1/admin/users/{user_id} Delete User #
GET /v1/admin/feedback Admin Feedback #
PATCH /v1/admin/feedback/{report_id} Update Feedback #
POST /v1/admin/feedback/{report_id}/mark-forwarded Mark Feedback Forwarded #

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/legaldatahunter-com:legaldatahunter-com-admin-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

legaldatahunter-com-admin-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Legal Search Admin API
  description: Hybrid semantic + keyword search over EU legal data (case law, legislation, doctrine).
  version: 0.1.0
tags:
- name: Admin
paths:
  /v1/admin/stats:
    get:
      tags:
      - Admin
      summary: Admin Stats
      description: 'Dashboard stats: daily request counts (30 days), total users, requests today,

        new/active user counts, and top endpoints.'
      operationId: admin_stats_v1_admin_stats_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /v1/admin/users:
    get:
      tags:
      - Admin
      summary: Admin Users
      description: Per-user request counts and metadata. Supports search by email/name and pagination.
      operationId: admin_users_v1_admin_users_get
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 5000
          minimum: 1
          default: 50
          title: Limit
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 0
          title: Offset
      - name: sort
        in: query
        required: false
        schema:
          type: string
          pattern: ^(requests|created_at|email)$
          default: requests
          title: Sort
      - name: search
        in: query
        required: false
        schema:
          type: string
          maxLength: 100
          default: ''
          title: Search
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/admin/users/{user_id}/endpoints:
    get:
      tags:
      - Admin
      summary: Admin User Endpoints
      description: Endpoint breakdown for a single user — top endpoints by call count.
      operationId: admin_user_endpoints_v1_admin_users__user_id__endpoints_get
      parameters:
      - name: user_id
        in: path
        required: true
        schema:
          type: string
          title: User Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/admin/users/{user_id}:
    patch:
      tags:
      - Admin
      summary: Update User
      description: Update a user's plan — admin override for whitelisting/upgrading users.
      operationId: update_user_v1_admin_users__user_id__patch
      parameters:
      - name: user_id
        in: path
        required: true
        schema:
          type: string
          title: User Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Admin
      summary: Delete User
      description: 'Delete a user account for GDPR erasure requests.


        Records the deletion in user_deletion_log before removing the user row.

        Cascades: api_keys and subscriptions are deleted. api_usage/feedback user_id

        is set to NULL (anonymized, not deleted — needed for operational stats).

        Stripe subscriptions are cancelled best-effort after the DB commit.'
      operationId: delete_user_v1_admin_users__user_id__delete
      parameters:
      - name: user_id
        in: path
        required: true
        schema:
          type: string
          title: User Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/admin/feedback:
    get:
      tags:
      - Admin
      summary: Admin Feedback
      description: List feedback reports from MCP agents.
      operationId: admin_feedback_v1_admin_feedback_get
      parameters:
      - name: status
        in: query
        required: false
        schema:
          type: string
          pattern: ^(open|forwarded|resolved|dismissed|all)$
          default: open
          title: Status
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 200
          minimum: 1
          default: 50
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/admin/feedback/{report_id}:
    patch:
      tags:
      - Admin
      summary: Update Feedback
      description: Update feedback report status (resolve / dismiss / forwarded).
      operationId: update_feedback_v1_admin_feedback__report_id__patch
      parameters:
      - name: report_id
        in: path
        required: true
        schema:
          type: string
          title: Report Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/admin/feedback/{report_id}/mark-forwarded:
    post:
      tags:
      - Admin
      summary: Mark Feedback Forwarded
      description: 'Mark a feedback report as forwarded to the public GitHub repo.


        The admin creates the issue manually (signed in as themselves) using

        the pre-filled new-issue URL the dashboard builds client-side, then

        pastes the resulting issue URL here so the row is tracked.'
      operationId: mark_feedback_forwarded_v1_admin_feedback__report_id__mark_forwarded_post
      parameters:
      - name: report_id
        in: path
        required: true
        schema:
          type: string
          title: Report Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError