InstagramInstagramSocial

Stage an Instagram post — create its media container

instagram.instagram.media.container.create

Stage an Instagram post by creating the media container it will be published from

Price
freeAl precio del proveedor
Success rate
—Aún no hay datos de tasa de éxitoAún no hay datos de tasa de éxito
Latency p50
——
Last verified
—Not verified yet
POSThttps://toolswitch.dev/v1/tools/instagram.instagram.media.container.createPreview
Try onlinePróximamenteProvider docs ↗
  • Uses platform quota
  • Synchronous response
  • Reads public data

Parámetros

step 1 of the publish flow. Needs instagram_content_publish (treg's `post` capability — a `read` connection 403s here) and returns {id: <container id>}. A VIDEO container is not ready when this returns: poll instagram.media.container.status until status_code is FINISHED before publishing, or the publish call fails. Stories have no carousel — publish each story as its own container

ParámetroTipoObligatorioDescripciónEjemplo
Parámetros de ruta
ig_user_idcadenaObligatorionumeric Instagram professional account id — the same one instagram.user.profile takes17841400000000000
Parámetros de consulta
captioncadenaOpcionalup to 2,200 characters and 30 hashtags. On a carousel the caption belongs on the PARENT container — set it on a child and the post publishes captionlessThree things we learned this week.
childrencadenaOpcionalCAROUSEL parent only: comma-separated child container ids, 2 to 10 of them, in display order17890000000000001,17890000000000002
image_urlcadenaOpcionalpublic JPEG URL. Use this OR video_url, never bothhttps://example.com/photo.jpg
video_urlcadenaOpcionalpublic MP4 URLhttps://example.com/clip.mp4
media_typecadenaOpcionalomit for a plain feed image; REELS for a video in the feed, STORIES for a 24-hour story, CAROUSEL for the parent container that groups childrenREELS
location_idcadenaOpcionala Facebook Page id that has a location
thumb_offsetenteroOpcionalvideo only — milliseconds into the clip to take the cover frame from0
collaboratorscadenaOpcionalJSON array of @handles invited as collaborators; not allowed on stories
is_carousel_itembooleanoOpcionaltrue on each child container of a carousel; children carry no caption and are never published on their owntrue
  • Parámetros de ruta
  • ig_user_idcadenaObligatorio

    numeric Instagram professional account id — the same one instagram.user.profile takes

    Ejemplo: 17841400000000000

  • Parámetros de consulta
  • captioncadenaOpcional

    up to 2,200 characters and 30 hashtags. On a carousel the caption belongs on the PARENT container — set it on a child and the post publishes captionless

    Ejemplo: Three things we learned this week.

  • childrencadenaOpcional

    CAROUSEL parent only: comma-separated child container ids, 2 to 10 of them, in display order

    Ejemplo: 17890000000000001,17890000000000002

  • image_urlcadenaOpcional

    public JPEG URL. Use this OR video_url, never both

    Ejemplo: https://example.com/photo.jpg

  • video_urlcadenaOpcional

    public MP4 URL

    Ejemplo: https://example.com/clip.mp4

  • media_typecadenaOpcional

    omit for a plain feed image; REELS for a video in the feed, STORIES for a 24-hour story, CAROUSEL for the parent container that groups children

    Ejemplo: REELS

  • location_idcadenaOpcional

    a Facebook Page id that has a location

  • thumb_offsetenteroOpcional

    video only — milliseconds into the clip to take the cover frame from

    Ejemplo: 0

  • collaboratorscadenaOpcional

    JSON array of @handles invited as collaborators; not allowed on stories

  • is_carousel_itembooleanoOpcional

    true on each child container of a carousel; children carry no caption and are never published on their own

    Ejemplo: true

Ejemplos de código

Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.

Preview
curl -X POST 'https://toolswitch.dev/v1/tools/instagram.instagram.media.container.create' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY"

La API de la pasarela está en versión preliminar; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a free, incluida la tarifa de servicio.