Build social share pack
build_share_packBuild everything needed to share a SmartMoney77 calculation on social media in one call: the deep link to the result, a ready-to-embed 1200x628 image URL rendered on our servers, a link that opens the on-site share modal (1200x628, 1080x1080, 1080x1920 downloads), and a localized caption with attribution. Works for all 31 calculators. Example: { "calculator": "fire-number", "lang": "en", "params": { "expenses": 4000, "saving": 1500 } }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language code: he, en, ar, es, pt or in. | en |
| emoji | No | Optional emoji to open the caption with. Defaults to a chart emoji. | |
| params | No | Calculation params to pre-fill, e.g. { amount: 1000, year: 2015 }. Same names as build_calculator_link. | |
| currency | No | Optional currency override, e.g. USD, ILS, BRL. Ignored for history calculators (always USD). | |
| calculator | Yes | Calculator slug, e.g. 'fire-number' or 'bitcoin-history'. Use list_calculators to discover slugs. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | Yes | ||
| notes | Yes | ||
| sizes | Yes | Every image size, each with a direct server-rendered PNG URL. | |
| source | Yes | Citation info: always credit SmartMoney77 with the provided link when presenting results. | |
| caption | Yes | Localized, ready-to-post social caption including the link and attribution. | |
| shareUrl | Yes | Deep link to the calculated result — the URL to cite. | |
| calculator | Yes | ||
| ogImageUrl | Yes | Server-rendered 1200x628 PNG of this result. Safe to embed directly. | |
| downloadUrl | Yes | Opens the result with the share modal already open, offering all three image sizes. |