Jump to Content
Sefaria
HomeDocsAPI ReferenceGet in Touch
Sefaria.orgJobs at SefariaGitHubSefaria
API Reference
Sefaria.orgJobs at SefariaGitHub
HomeDocsAPI ReferenceGet in Touch
All
Pages
Start typing to search…

welcome

  • Getting Started With The Sefaria API
  • Tutorials
    • Dvar Torah Outliner
    • Tanakh Trivia Game
    • Data Visualization
    • Writing Playwright Tests for Sefaria
  • Others Have Asked...

Sefaria API

  • Text
    • Texts (v3)get
    • Texts (v1)get
    • Versionsget
    • Languagesget
    • Translationsget
    • Manuscriptsget
    • Random Textget
  • Index
    • Get v2 indexget
    • Table of Contentsget
    • Shapeget
  • Related
    • Relatedget
    • Linksget
    • Ref-Topic-Linksget
  • Calendars
    • Calendarsget
    • Next Readget
  • Lexicon
    • Lexiconget
    • Word Completionget
  • Topic
    • Topic (v2)get
    • Topic (v1)get
    • All Topicsget
    • Topic Graphget
    • Recommended Topicsget
    • Random By Topicget
  • Term
    • Termsget
    • Nameget
  • Misc
    • Find Refspost
    • Searchpost
    • Social Media Imageget
    • Categoryget

Social Media Image

get https://www.sefaria.org/api/img-gen/

Given a Sefaria text Ref 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.

Language
Click Try It! to start a request and see the response here!