---
title: Detect Shot Changes
slug: detect-shot-changes
url: https://apyverse.com/apyhub/service/detect-shot-changes
provider: ApyHub
categories: [Artificial Intelligence, File Conversion]
auth: api_key
---

# Detect Shot Changes

Detect shot boundaries in uploaded videos or URLs using Azure or Google. Returns service-specific results for scene segmentation and video analysis.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `ai/video/detect/shot/change/url` | What it does Detects shot changes in a video fetched from a URL and returns the result in a JSON ob… | 500 |
| POST | `ai/video/detect/shot/change/file` | What it does Uploads a file and runs shot change detection using either the Azure or Google route,… | 500 |

## About

## What it does
Shot Change Detection analyzes a video and returns detection results through either Azure or Google processing, depending on the service you request. Send a video by URL with `url` and `requested_service`, or upload a file with `file` and `requested_service`.

Use the URL route when the video is already hosted, or the file route when you want to upload the media directly. For Azure requests, the URL route accepts an `azure` object and the file route accepts `azure_region`, `azure_account_id`, and `azure_access_token`. For Google requests, the URL route accepts a `google` object with `google_language` and `google_credential_json`, and the file route accepts `google_credential_file`.

The response is wrapped under `data`, with either an `azure` object or a `google` object present according to the service you requested. The API does not prescribe the internal shape of those objects here, so you can treat them as the service-specific detection output.

This is useful when you need to segment video content into shots for editing workflows, scene indexing, preview generation, or downstream video analysis. It lets you plug shot boundary detection into applications without building your own media-processing pipeline.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyverse.com/apyhub/service/detect-shot-changes
