Skip to content

API quickstart

Machine clients send a JSON URL to POST https://api.pinchana.cc/scrape and authenticate with X-API-Key. Ask the API operator for a named key; do not put machine keys in browser code.

Terminal window
curl --fail-with-body https://api.pinchana.cc/scrape \
--request POST \
--header 'Content-Type: application/json' \
--header 'X-API-Key: YOUR_API_KEY' \
--data '{"url":"https://www.instagram.com/p/SHORTCODE/"}'
  1. Store the key in a server-side secret such as PINCHANA_API_KEY.
  2. Submit a supported, complete HTTP(S) URL. Scraping and upstream media downloads can take time; use a client timeout near the gateway’s 120-second forwarding timeout.
  3. Join relative media paths to the API origin and fetch them with the same X-API-Key.
Terminal window
curl --fail --location \
--header 'X-API-Key: YOUR_API_KEY' \
--output media.mp4 \
'https://api.pinchana.cc/media/instagram/SHORTCODE/video.mp4'