{"uid":"cap_bZQVdSoaWp4wEbeHeD6T-","slug":"map-tile-count-storage-estimator-7932c22e","name":"Map Tile Count & Storage Estimator","description":"Number of slippy-map tiles covering a lat/lon box for a zoom range, with a rough storage estimate at your average tile size.","url":"https://map-tiles.x402tookit.com/tile-count?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":["west","south","east","north","maxZoom"],"properties":{"east":{"type":"number","description":"East longitude"},"west":{"type":"number","description":"West longitude"},"north":{"type":"number","description":"North latitude"},"south":{"type":"number","description":"South latitude"},"maxZoom":{"type":"integer","description":"Last zoom level, up to 22"},"minZoom":{"type":"integer","description":"First zoom level (default 0)"},"avgTileKB":{"type":"number","description":"Average tile size in kilobytes for storage (default 15)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"byZoom":{"type":["array","null"],"items":{"type":"object","properties":{"zoom":{"type":["null","number"]},"tiles":{"type":["null","number"]},"tilesHigh":{"type":["null","number"]},"tilesWide":{"type":["null","number"]}}}},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"avgTileKB":{"type":["null","number"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"totalTiles":{"type":["null","number"]},"estimatedGigabytes":{"type":["null","number"]},"estimatedMegabytes":{"type":["null","number"]}}}}}}},"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_CQHJ54E_5fz49copGZdR3","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":"Counts the number of slippy-map tiles covering a lat/lon bounding box across a zoom range and estimates storage requirements at a given average tile size.","exampleAgentPrompt":"How many slippy-map tiles would cover the continental US (roughly -125 west, 24 south, -66 east, 49 north) from zoom level 0 to zoom 12, and about how much storage would that take if each tile is 20 KB on average?","exampleUseCases":[{"title":"Offline map download planning","prompt":"I want to download map tiles for offline use covering the London metro area — bounding box roughly -0.51 west, 51.28 south, 0.33 east, 51.69 north — from zoom 10 to zoom 16. How many tiles is that and how much storage will I need if tiles average 25 KB each?"},{"title":"Tile server capacity planning","prompt":"We're setting up a tile server for the state of California (bounding box: -124.5 west, 32.5 south, -114.1 east, 42.0 north) and need to cache everything from zoom 0 through zoom 14. Can you calculate the total tile count and estimated storage at 15 KB per tile?"},{"title":"Comparing zoom level storage costs","prompt":"I'm building a hiking app and want to know how many map tiles cover the Swiss Alps (5.9 west, 45.8 south, 10.5 east, 47.8 north) at zoom levels 12 through 18, and estimate the total gigabytes needed assuming 30 KB average tile size."}],"resultDescription":"Returns a per-zoom-level breakdown showing tile count, tiles wide, and tiles high for each zoom level in the requested range, plus a grand total tile count and storage estimates in both megabytes and gigabytes based on the provided or default average tile size.","failureModes":["Missing required bounding box parameters (west, south, east, north, maxZoom) returns an error","Invalid coordinate values (e.g. latitude outside -90 to 90) may produce incorrect results or errors","Very large zoom ranges (e.g. 0–22 over large areas) may return astronomically large tile counts that are impractical","maxZoom below minZoom may produce empty or invalid results","Non-numeric parameter values will fail schema validation"],"whenToPreferThis":"Use this endpoint when you need to pre-plan tile caching, estimate storage budgets, or understand the scale of tile coverage for a geographic region across zoom levels. It is the right choice when the primary goal is arithmetic planning (how many tiles, how much space) rather than rendering, fetching, or converting tile coordinates.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:15:03.707Z","isFirstParty":false,"canonicalSlug":"map-tile-count-storage-estimator-7932c22e"}