Social Media Image
Given a Sefaria text Ref or page path and some other optional parameters, this endpoint returns a .png image ready to share on social media. At Sefaria.org we use it primarily to auto-generate social media images for any page. If no path is provided, the endpoint returns a fallback image for the request host.
Query parameters
The language the social image should return, en for English language or he for Hebrew. Defaults to the language associated with the request host if omitted. bi is accepted but does not return a bilingual image; it uses the language associated with the request host.
This value determines the size of the image, set to the platform's ideal as specified in its own developer documentation. Defaults to facebook if omitted or invalid. Use twitter for X/Twitter cards.
The title of the version of English text desired for the image.
The title of the version of Hebrew text desired for the image.
Response
Successful Response