PeumeAPI

Social media data · Instagram

Instagram shortcode from post URL

Instagram: extract shortcode (v3)

$0.003 per callUsually answers in about a second

Call it

curl https://api.peume.com/v1/call/instagram-shortcode-from-post-url \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "url": "https://www.instagram.com/p/CrgVBtHrFHm/"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: instagram-shortcode-from-post-url.

Parameters

urlRequiredstring

Full Instagram post URL

Example: https://www.instagram.com/p/CrgVBtHrFHm/

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.