{"uid":"cap_ERr0KAdJhQ_rL_GFpSFqd","slug":"paper-size-dimensions-lookup-56bd4d62","name":"Paper Size Dimensions Lookup","description":"Return dimensions and aspect ratio for paper sizes such as A4, A3, Letter and Legal, in mm, inches and pixels at a given DPI. Pure CPU, instant.","url":"https://api.gadgethumans.com/page-size?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"object","properties":{"queryParams":{"type":"object","required":["size"],"properties":{"dpi":{"type":"integer","description":"Resolution for pixel size"},"size":{"type":"string","description":"Size name such as A4"}}}}},"output":{"type":"object","properties":{"example":{"ok":true}}}}},"responseSchema":{"type":"json","example":{"ok":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gE9dBkkJ-4WCGo5V-JnvW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns width, height, and aspect ratio for standard paper sizes (A4, A3, Letter, Legal, etc.) in mm, inches, and pixels at a specified DPI.","exampleAgentPrompt":"What are the dimensions of A4 paper in mm, inches, and pixels at 300 DPI?","exampleUseCases":[{"title":"PDF canvas setup for print","prompt":"I'm building a PDF generator and need the exact pixel dimensions of A4 paper at 96 DPI — can you get me the width and height?"},{"title":"Design template sizing","prompt":"What are the width and height of Letter-size paper in inches and pixels at 150 DPI? I'm setting up a design template."},{"title":"Comparing paper format aspect ratios","prompt":"Can you get me the dimensions and aspect ratios for both A3 and A4 paper in mm so I can compare them?"}],"resultDescription":"A JSON object containing the paper size's width and height in millimetres, inches, and pixels (at the requested DPI), plus the aspect ratio.","failureModes":["Unrecognised size name returns an error or empty result","Missing required 'size' query parameter causes a 400 bad request","Non-integer DPI value may cause validation failure","Unsupported or misspelled size names (e.g. 'a 4', 'letter size') may not resolve"],"whenToPreferThis":"Use this endpoint when you need authoritative, standardised paper dimensions across multiple unit systems (mm, inches, pixels) without maintaining a local lookup table. Ideal for print tooling, PDF generation, design automation, or any workflow that needs pixel dimensions at a specific DPI without manual calculation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T00:36:41.245Z","isFirstParty":false,"canonicalSlug":"paper-size-dimensions-lookup-56bd4d62"}