Back to Instagram
TikHub·Instagram

Instagram V2: Convert media ID to shortcode

/api/v1/instagram/v2/media_id_to_shortcodesync$0.003 / call

Convert Instagram post media ID to shortcode. Shortcode can be used to construct post URL: instagram.com/p/{shortcode}/ (TikHub · Instagram V2)

Input
FieldTypeRequiredDescription
media_idstringyesPost media ID

Run it

curl -s https://www.sooma.dev/v1/run \ -H "Authorization: Bearer $SOOMA_API_KEY" \ -H "Content-Type: application/json" \ -d '{"provider":"tikhub","endpoint":"/api/v1/instagram/v2/media_id_to_shortcode","input":{}}'

Or ask your agent: it will call inspect for this schema and run it over MCP.