Discover/lockcodes.com API
live

lockcodes.com APIlockcodes.com

Access lock pinning charts, key blank cross-references, and combination counters via the LockCodes.com API. 4 endpoints covering cylinder types, MACS, and more.

Endpoints
4
Updated
17d ago
Try it

No input parameters required.

api.parse.bot/scraper/997b8ff0-6959-4f36-adb0-2031dde791ec/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/997b8ff0-6959-4f36-adb0-2031dde791ec/pinitnow_list_cylinder_types' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 4 totalclick to expand

List all available cylinder types for the Pin It Now! pinning calculator. Returns cylinder names, slugs (used as input to pinitnow_get_pin_chart), and template strings.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "cylinder_types": "array of objects, each with name (string), slug (string), and template (string)"
  },
  "sample": {
    "data": {
      "cylinder_types": [
        {
          "name": "Arrow",
          "slug": "arrow",
          "template": "1234"
        },
        {
          "name": "Schlage",
          "slug": "schlage",
          "template": "1234"
        },
        {
          "name": "Kwikset",
          "slug": "kwikset",
          "template": "1234"
        }
      ]
    },
    "status": "success"
  }
}

About the lockcodes.com API

The LockCodes.com API gives developers access to 4 endpoints covering lock pinning charts, key blank name cross-references, and key combination calculations. The pinitnow_get_pin_chart endpoint generates a full text pinning chart — including top and bottom pin assignments and lengths in thousandths — for dozens of cylinder types when given a change key cut string and an optional master or control key.

Pinning Charts and Cylinder Types

The pinitnow_list_cylinder_types endpoint returns all cylinder types supported by the Pin It Now! calculator, including each cylinder's name, slug, and template string. That slug value feeds directly into pinitnow_get_pin_chart as the required cylinder_slug parameter. Supported cylinders include common brands such as Schlage, Kwikset, Arrow, and Best A2. The chart endpoint accepts a required change_cuts digit string and optional master_cuts and control_cuts strings, returning a chart_text field with a complete pinning chart showing pin chamber assignments and lengths.

Key Blank Cross-References

names_listing_search performs case-insensitive substring matching against a cross-reference database of lock names and blank identifiers. Pass a query string such as "Abus" or "Master" and the response returns a results array. Each result includes a name field and an info field containing pipe-separated cross-reference details. The dataset is static, so some lock names may return an empty array if they are not present in the current cross-reference set.

Combination Counting

The combination_counter endpoint calculates the total number of valid key combinations given three integer inputs: spaces (number of key positions), depths (number of available depth values), and macs (Maximum Adjacent Cut Specification). The response includes a count string with the total combinations and a text string with the full calculation result, including pullout count. Note that macs must be strictly less than depths for the calculation to produce valid results.

Common use cases
  • Generate pinning charts for Schlage or Kwikset cylinders from cut codes in a locksmith management app
  • Build a master key system tool that accepts change, master, and control cuts and outputs pin assignments
  • Look up key blank cross-references by manufacturer name to find compatible blank identifiers
  • Calculate total keyspace size for a given bitting specification before issuing a key series
  • Validate MACS constraints when designing restricted keyways or master key systems
  • Enumerate cylinder types programmatically to populate a dropdown in a locksmith workflow tool
  • Cross-reference unfamiliar lock names against the LockCodes database to identify compatible blanks
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does LockCodes.com have an official public developer API?+
LockCodes.com does not publish an official developer API or documented public endpoints. This Parse API provides structured programmatic access to the pinning, cross-reference, and combination data available on the site.
What does pinitnow_get_pin_chart return, and do I need a master key to use it?+
The endpoint returns a chart_text string containing a full pinning chart with top and bottom pin assignments and lengths in thousandths of an inch. The master_cuts and control_cuts parameters are both optional — if omitted, the chart is generated for the change key only. Only change_cuts and cylinder_slug are required.
What is the known limitation of names_listing_search?+
The cross-reference dataset is static. If a lock name or blank identifier was not present when the dataset was assembled, the endpoint returns an empty results array rather than a partial match. There is no fuzzy matching beyond case-insensitive substring search, so queries must contain a substring that actually appears in the dataset.
Does the API expose historical key code records or specific key code lookups by bitting list?+
Not currently. The API covers pinning chart generation from cut strings, name-based blank cross-references, and combination counting. It does not expose a searchable bitting list or historical code record lookup. You can fork this API on Parse and revise it to add an endpoint targeting that data.
What happens if macs is not less than depths in combination_counter?+
The endpoint documents that macs must be strictly less than depths for valid results. Passing a macs value equal to or greater than depths will not produce a meaningful combination count. Always ensure your inputs satisfy this constraint before calling the endpoint.
Page content last updated . Spec covers 4 endpoints from lockcodes.com.
Related APIs in OtherSee all →
industrynet.com API
Find industrial suppliers and browse product categories across a comprehensive marketplace directory. Connect directly with suppliers by viewing detailed listings and submitting contact inquiries programmatically.
blinkit.com API
Search for products and check real-time availability across Blinkit locations, browse categories, and view detailed product information all from one place. Set your location to discover what's currently in stock nearby and compare offerings.
allcarindex.com API
Browse and search detailed information on over 14,000 automotive brands and 6,000 concept cars, organized by region, country, and model specifications. Discover vehicle data across the world's largest automotive encyclopedia with instant access to brand details, model information, and comprehensive search capabilities.
naics.com API
Find NAICS industry classification codes and their detailed descriptions by searching keywords or browsing all available codes to identify the right sector and industry classification for your business. Get comprehensive information including code numbers, sector titles, and related industry details to ensure accurate business categorization.
pinnacle.com API
Access real-time and pre-event sports betting odds, matchups, and markets from Pinnacle. Retrieve data across all available sports and leagues, monitor live events with scores and live odds, and explore political and entertainment betting markets. Covers full market depth including spreads, totals, moneylines, props, and alternate lines.
watchcharts.com API
Search and analyze luxury watch market data including current listings, historical price trends, and recent sales information. Get detailed watch specifications and track market pricing to make informed collecting or investment decisions.
thecocktaildb.com API
Discover and explore thousands of cocktail recipes by searching by name, ingredient, category, or glass type, plus get random drink suggestions and detailed information about cocktail components. Filter drinks by whether they're alcoholic or non-alcoholic, and browse complete lists of available categories, glasses, and ingredients.
aapc.com API
Access comprehensive medical coding information including CPT, ICD-10-CM, ICD-10-PCS, and HCPCS codes with detailed hierarchies, sections, and code-specific details. Search across all medical coding systems to find the exact codes and their descriptions for billing, documentation, and compliance purposes.