{"uid":"cap_wO4n5UE4y_AGu-t_Xe3YO","slug":"geometry-shape-measurements-api-1100d4de","name":"Geometry Shape Measurements API","description":"Area, perimeter, surface area and volume of circles, polygons, sectors, spheres, cylinders, cones, boxes, tori and more.","url":"https://math-geometry.x402tookit.com/shape-measure?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":["shape"],"properties":{"R":{"type":"number","description":"Torus major radius"},"a":{"type":"number","description":"Semi-axis or side a"},"b":{"type":"number","description":"Semi-axis or side b"},"c":{"type":"number","description":"Semi-axis c"},"h":{"type":"number","description":"Height"},"l":{"type":"number","description":"Length (box)"},"r":{"type":"number","description":"Radius (circle, sector, sphere, cylinder, cone, torus tube)"},"w":{"type":"number","description":"Width"},"base":{"type":"number","description":"Triangle base"},"side":{"type":"number","description":"Polygon side length"},"shape":{"type":"string","description":"circle, rectangle, triangle, ellipse, trapezoid, regular-polygon, sector, sphere, cylinder, cone, box, pyramid, torus or ellipsoid"},"sides":{"type":"integer","description":"Polygon sides"},"height":{"type":"number","description":"Triangle or trapezoid height"},"angleDeg":{"type":"number","description":"Sector angle in degrees"},"baseArea":{"type":"number","description":"Pyramid base area"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"shape":{"type":["null","string"]},"inputs":{"type":["null","object"],"properties":{"h":{"type":["null","number"]},"r":{"type":["null","number"]}}},"source":{"type":["null","string"]},"volume":{"type":["null","number"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"lateralArea":{"type":["null","number"]},"surfaceArea":{"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_VOqdOsic31LbRZlz2fAMu","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 area, perimeter, surface area, and volume for 2D and 3D geometric shapes including circles, polygons, spheres, cylinders, cones, boxes, tori, and more.","exampleAgentPrompt":"Can you calculate the surface area and volume of a cylinder with radius 4 and height 9?","exampleUseCases":[{"title":"Packaging material estimation","prompt":"I need to figure out the surface area and volume of a box that is 12 cm long, 8 cm wide, and 5 cm tall — can you work that out for me?"},{"title":"Pool volume for a circular pool","prompt":"What's the volume of a cylinder-shaped pool that has a radius of 3.5 meters and is 1.5 meters deep?"},{"title":"Pizza slice area calculation","prompt":"How much area does a pizza slice cover if it's cut from a circle with radius 30 cm at a 45-degree angle?"}],"resultDescription":"Returns a JSON object containing the shape name, the input parameters used, computed measurements (area, perimeter, surface area, volume as applicable), a human-readable summary, and metadata such as source and timestamp.","failureModes":["Missing required 'shape' query parameter returns an error","Shape-specific required parameters not provided (e.g. radius missing for circle) result in an error","Unsupported shape name returns an error or empty result","Negative or zero dimensions may produce errors or undefined results","Network or payment (x402) failure prevents response"],"whenToPreferThis":"Choose this endpoint when you need fast, reliable geometric measurements for standard 2D or 3D shapes without writing your own math. Ideal for educational tools, engineering estimations, packaging calculations, or any agent workflow requiring computed geometry properties. Covers a broad range of shapes (14+) in a single API, avoiding the need to implement formulas manually.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T00:30:45.881Z","isFirstParty":false,"canonicalSlug":"geometry-shape-measurements-api-1100d4de"}