L2Tools NPCs API

NPC search and record data

GitHub OpenAPI

Operations 3

GET /api/v1/{chronicle}/npcs Search NPCs by name or numeric ID #
GET /api/v1/{chronicle}/npcs/{npcId} Get one NPC record #
GET /api/v1/{chronicle}/npcs/{npcId}/drops Get effective x1 drops and spoil for one NPC #

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/l2tools-org:l2tools-org-npcs-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

l2tools-org-npcs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: L2Tools Public NPCs API
  version: 1.0.0
  description: Read-only, chronicle-scoped Lineage 2 reference data and deterministic tools. Responses include dataset and formula provenance. REST traffic is limited per client IP to 10 requests per second with a burst of 30; excess requests receive HTTP 429.
  contact:
    url: https://l2tools.org/corrections
servers:
- url: https://l2tools.org/
  description: L2Tools
tags:
- name: NPCs
  description: NPC search and record data
paths:
  /api/v1/{chronicle}/npcs:
    get:
      operationId: searchNpcs
      summary: Search NPCs by name or numeric ID
      tags:
      - NPCs
      parameters:
      - name: chronicle
        in: path
        required: true
        schema:
          type: string
          enum:
          - interlude
          - high-five
        description: Exact Lineage 2 chronicle namespace.
      - name: query
        in: query
        required: true
        schema:
          type: string
          minLength: 2
          maxLength: 100
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          maximum: 50
          default: 20
      responses:
        '200':
          description: Matching NPCs
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NpcSearchResponse'
        '400':
          description: Invalid input
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                properties:
                  error:
                    type: object
                    required:
                    - code
                    - message
                    properties:
                      code:
                        type: string
                      message:
                        type: string
  /api/v1/{chronicle}/npcs/{npcId}:
    get:
      operationId: getNpc
      summary: Get one NPC record
      tags:
      - NPCs
      parameters:
      - name: chronicle
        in: path
        required: true
        schema:
          type: string
          enum:
          - interlude
          - high-five
        description: Exact Lineage 2 chronicle namespace.
      - name: npcId
        in: path
        required: true
        schema:
          type: integer
          minimum: 1
        description: Stable numeric NPC identifier.
      responses:
        '200':
          description: NPC record
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NpcResponse'
        '404':
          description: NPC not found
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                properties:
                  error:
                    type: object
                    required:
                    - code
                    - message
                    properties:
                      code:
                        type: string
                      message:
                        type: string
  /api/v1/{chronicle}/npcs/{npcId}/drops:
    get:
      operationId: getNpcDrops
      summary: Get effective x1 drops and spoil for one NPC
      description: Probabilities are published x1 percentages from the active normalized snapshot. No custom server-rate multiplier is applied.
      tags:
      - NPCs
      parameters:
      - name: chronicle
        in: path
        required: true
        schema:
          type: string
          enum:
          - interlude
          - high-five
        description: Exact Lineage 2 chronicle namespace.
      - name: npcId
        in: path
        required: true
        schema:
          type: integer
          minimum: 1
        description: Stable numeric NPC identifier.
      responses:
        '200':
          description: NPC loot
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NpcDropsResponse'
        '404':
          description: NPC not found
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                properties:
                  error:
                    type: object
                    required:
                    - code
                    - message
                    properties:
                      code:
                        type: string
                      message:
                        type: string
components:
  schemas:
    ApiMeta:
      type: object
      required:
      - apiVersion
      - chronicle
      - provenance
      - methodologyUrl
      - correctionsUrl
      properties:
        apiVersion:
          type: string
        chronicle:
          type: string
        provenance:
          $ref: '#/components/schemas/Provenance'
        methodologyUrl:
          type: string
          format: uri
        correctionsUrl:
          type: string
          format: uri
    NpcResponse:
      type: object
      required:
      - meta
      - data
      properties:
        meta:
          $ref: '#/components/schemas/ApiMeta'
        data:
          type: object
          additionalProperties: true
    Provenance:
      type: object
      required:
      - chronicle
      - datasetId
      - technicalBasis
      - fieldLineage
      - displayMode
      - formulaSet
      - evidenceStatus
      - lastReviewed
      properties:
        chronicle:
          type: string
        datasetId:
          type: string
        technicalBasis:
          type: string
        fieldLineage:
          type: string
        displayMode:
          type: string
        formulaSet:
          type: string
        evidenceStatus:
          type: string
        lastReviewed:
          type: string
          format: date
    NpcDropsResponse:
      type: object
      required:
      - meta
      - npc
      - counts
      - drops
      - spoil
      properties:
        meta:
          $ref: '#/components/schemas/ApiMeta'
        npc:
          type: object
          additionalProperties: true
        counts:
          type: object
          additionalProperties:
            type: integer
        drops:
          type: array
          items:
            type: object
            additionalProperties: true
        spoil:
          type: array
          items:
            type: object
            additionalProperties: true
    NpcSearchResponse:
      type: object
      required:
      - meta
      - query
      - count
      - results
      properties:
        meta:
          $ref: '#/components/schemas/ApiMeta'
        query:
          type: string
        count:
          type: integer
        results:
          type: array
          items:
            type: object
            additionalProperties: true
externalDocs:
  description: API and methodology
  url: https://l2tools.org/developers
x-mcp-server: https://l2tools.org/api/mcp
x-mcp-manifest: https://l2tools.org/server.json