{"uid":"cap_vwaCzth3MbnZVnTd-fxdy","slug":"google-solar-api-geotiff-layer-to-image-converter-782989e7","name":"Google Solar API GeoTIFF Layer to Image Converter","description":"Google Solar API - Download any GeoTIFF data layer (rgb, dsm, annualFlux, monthlyFlux, hourlyShade, mask) and return it as a PNG/JPEG image. Accepts either a GeoTIFF `id` (Mode A) or `latitude`/`longitude` (Mode B, which resolves the layer URL via dataLayers:get). For monthlyFlux pass `month` (1-12) for a single month, omit for a 4×3 grid. For hourlyShade pass `month` (required in Mode B) and optional `hour` (0-23); omit `hour` for a 6×4 grid.","url":"https://stable-enrich-git-stableenrich-solar-rgb-image-merit-systems.vercel.app/api/google-maps/solar/rgb-image","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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["radiusMeters","layer","format","scale","crop","quality"],"properties":{"id":{"type":"string"},"crop":{"type":"boolean","default":false},"hour":{"type":"integer","maximum":23,"minimum":0},"layer":{"enum":["rgb","dsm","annualFlux","monthlyFlux","hourlyShade","mask"],"type":"string","default":"rgb"},"month":{"type":"integer","maximum":12,"minimum":1},"scale":{"type":"integer","default":1,"maximum":2,"minimum":1},"format":{"enum":["png","jpeg"],"type":"string","default":"png"},"quality":{"type":"integer","default":85,"maximum":100,"minimum":1},"latitude":{"type":"number","maximum":90,"minimum":-90},"longitude":{"type":"number","maximum":180,"minimum":-180},"radiusMeters":{"type":"number","default":30,"maximum":100,"minimum":0.1}},"additionalProperties":false}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_K4wsGY6XHVrRwUS6I9q6M","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Downloads a Google Solar API GeoTIFF data layer (rgb, dsm, annualFlux, monthlyFlux, hourlyShade, or mask) for a given location or layer ID and returns it as a PNG or JPEG image","exampleAgentPrompt":"Can you pull up the monthly solar flux image for January for the building at 37.4220° latitude, -122.0841° longitude, with a 50-meter radius, and return it as a PNG?","exampleUseCases":null,"resultDescription":"A PNG or JPEG image rendered from the requested Google Solar API GeoTIFF data layer. Depending on the layer, this may be a true-color RGB aerial image, a digital surface model heatmap, an annual or monthly solar flux visualization, an hourly shade grid, or a rooftop mask. For monthlyFlux without a month, returns a 4×3 grid; for hourlyShade without an hour, returns a 6×4 grid.","failureModes":["Missing required parameters (radiusMeters, layer, format, scale, crop, quality) returns a 400 error","Invalid latitude/longitude outside valid ranges returns a validation error","GeoTIFF id not found or expired returns a 404 or upstream error","month required for hourlyShade in Mode B but omitted causes an error","Upstream Google Solar API quota exceeded or unavailable returns a 502/503","Invalid layer enum value returns a 400 error","Payment not completed (x402) results in a 402 Payment Required response"],"whenToPreferThis":"Use this endpoint when you need to visually render any Google Solar API GeoTIFF data layer as a PNG or JPEG image — either by coordinates (Mode B) or by a known GeoTIFF layer ID (Mode A). Prefer this over raw GeoTIFF downloads when you need a ready-to-display image. It is especially useful for solar energy assessments, rooftop visualization, shade analysis, and building-level solar flux mapping.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T04:06:36.300Z","isFirstParty":false}