{"uid":"cap_Z8PZBqbOMaAA2B81eBuob","slug":"chess-square-distance-calculator-09408d80","name":"Chess Square Distance Calculator","description":"Distance between two chess squares as king moves, rook moves, bishop moves and knight moves on an empty board.","url":"https://chess-notation.x402tookit.com/square-distance?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["from","to"],"properties":{"to":{"type":"string","description":"Second square such as h8"},"from":{"type":"string","description":"First square such as a1"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"to":{"type":["null","string"]},"asOf":{"type":["null","string"]},"from":{"type":["null","string"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"kingMoves":{"type":["null","number"]},"manhattan":{"type":["null","number"]},"rookMoves":{"type":["null","number"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"queenMoves":{"type":["null","number"]},"bishopMoves":{"type":["null","number"]},"knightMoves":{"type":["null","number"]},"fileDifference":{"type":["null","number"]},"rankDifference":{"type":["null","number"]},"sameColorSquares":{"type":["boolean","null"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_tz2EfIMrkERO1CO7kwxzn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the minimum number of moves between two chess squares for king, rook, bishop, and knight pieces on an empty board.","exampleAgentPrompt":"How many moves would it take a king, rook, bishop, and knight to travel from e4 to h8 on an empty board?","exampleUseCases":[{"title":"Evaluating knight reach in endgame","prompt":"I'm analyzing an endgame position — how many knight moves does it take to get from b1 to g6, and how many king moves would it take?"},{"title":"Checking bishop color compatibility","prompt":"Are the squares a1 and h8 the same color, and can a bishop reach one from the other in a single move?"},{"title":"Calculating rook and queen efficiency","prompt":"What's the minimum number of rook moves and queen moves to travel from d1 to d8, and what's the manhattan distance between them?"}],"resultDescription":"Returns an object containing the minimum number of moves for a king, rook, bishop, knight, and queen to travel between the two specified squares on an empty board, along with manhattan distance, file difference, rank difference, and whether the two squares share the same color.","failureModes":["Invalid square notation (e.g. 'z9' or 'i1') returns an error or null values","Missing required query parameters 'from' or 'to' returns a validation error","Same square for both 'from' and 'to' returns zero distances","Bishop distance may be null/infinite if squares are different colors (bishop cannot reach them)"],"whenToPreferThis":"Use this endpoint when you need precise, piece-specific movement distance metrics between any two chess squares on an empty board, especially when your use case involves chess engine analysis, puzzle generation, endgame tablebase reasoning, or chess education tools. It is uniquely suited for quickly checking reachability and minimum move counts for multiple piece types simultaneously in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:11:18.237Z","isFirstParty":false,"canonicalSlug":"chess-square-distance-calculator-09408d80"}