Platforms · Instagram

Instagram Media Screen Text Scraper API

Reads the text shown on an Instagram post: the headlines, list items, place names, captions and meme text creators design into a photo, a carousel slide or a reel, which the post caption never carries. What is read depends on the post. On a photo, the photo itself. On a carousel, every slide in order, 10 slides a call: the first 10 by default, and the next 10 with slide_offset=10; a longer carousel's response carries a warning giving its full slide count, and next_slide_offset names the offset that reads the rest (null when every slide has been read).

GET /api/v1/data/instagram/media-screen-text · 5 credits per call · The same call repeated within 10 minutes may get the same answer, so data can be up to 10 minutes old.

Inputs

  • url (required): Full URL of the Instagram post, reel or video (a `/p/`, `/reel/`, `/reels/` or `/tv/` link).
  • slide_offset: Carousels only: the 0-based index of the first slide to read, 10 slides a call. Default 0. `slide_offset=10` reads slides 11 to 20. Each image in `images` keeps its index in the whole carousel, and `next_slide_offset` gives the value for the next call.

What comes back

  • result_status (string): success, or not_available when the item does not exist, was removed or is not public.
  • source_data.duration_seconds (number): The video's length in seconds.
  • source_data.frame (string): Null on photos and carousels.
  • source_data.images (array): One entry per image read. Empty on a video.
  • source_data.images.image_url (string): A link to the image that was read. The link expires.
  • source_data.images.index (integer): The image's position in the post, counting from 0.
  • source_data.images.texts (array): The text read from this image. Null when it could not be read, which `warnings` explains.
  • source_data.media_type (string): The kind of post that was read. Null when the post carries no readable media.
  • source_data.native_texts (array): Reels only: the text typed in Instagram's own editor, in the order it appears. Null when the reel has none, and on photos and carousels.
  • source_data.next_slide_offset (integer): The `slide_offset` that reads the next slides, or null when none are left.
  • source_data.post_id (string)
  • source_data.shortcode (string): The post's shortcode from its URL.
  • source_data.slide_count (integer): The total slides on a carousel, including any past the 10 that are read. Null on other posts.
  • source_data.slide_offset (integer): The index of the first slide read on this call.
  • source_data.source (string): Which layers produced text: `native` is the text typed in the app's own editor, `ocr` is text read off the picture, `native+ocr` is both, `none` is neither.
  • source_data.subtitles (array): Captions of the speech or lyrics, without repeats, in the order they appear. Kept out of `texts`.
  • source_data.texts (array): Every block of text found, without repeats, in reading order. Empty when the post shows no text.
  • source_data.timeline (array): Every text block read from the video, each once, in time order.
  • source_data.timeline.at_seconds (number): When the text first shows, in seconds from the start of the video.
  • source_data.timeline.kind (string): `text` is text placed on the video and `subtitle` is a caption of the speech or lyrics.
  • source_data.timeline.text (string): The text that was read.
  • source_data.url (string): The post's link.
  • source_data.warnings (array): Notices about the read, such as slides that could not be read.
  • source_data (object): Everything the platform sent for this call, as it came.

Good to know

  • The price depends on what the call returns: from 5 credits to 10 credits.
  • The same call repeated within 10 minutes may get the same answer, so data can be up to 10 minutes old.

Example call

GET /api/v1/data/instagram/media-screen-text?url=https%3A%2F%2Fwww.instagram.com%2Fp%2FDdEqEl5Dl-S%2F

Questions

How much does the Instagram Media Screen Text API cost?

Each call costs 5 to 10 credits, depending on what it returns. A call that finds nothing, or fails, costs nothing.

What do I send?

You must send url. 1 more input is optional: slide_offset. Inputs go in the query string of a GET, or as JSON in a POST, along with your API key.

How fresh is the data?

The same call repeated within 10 minutes may get the same answer, so data can be up to 10 minutes old.

Do I need an Instagram account or developer app?

No. You call SocialHz with your SocialHz API key, and the same key works for every platform.

Can I try it before paying?

Yes. Signing up gives you 10 free credits, with no card needed.

Related Instagram endpoints

More Instagram scraper APIs