# API reference

Request parameters, response schemas and working examples for every source.

Canonical reference: https://flashdata.dev/docs/reference

<a id="request-basics"></a>

## Request basics

Set source to the product you need and authenticate with X-API-Key. Source pages below contain exact fields, response examples and an interactive request builder.

### API hosts

```text
Data API        https://data.flashdata.dev
Management API  https://api.flashdata.dev
Header          X-API-Key: YOUR_API_KEY
```

| Workflow | Request | Returns |
| --- | --- | --- |
| Realtime · Data API | POST /v1/queries/realtime | Source results in the response |
| Async · Data API | POST /v1/queries | A job ID for status and results |
| Batch · Data API | POST /v1/queries/batch | A separate receipt per query |
| Bulk · Management API | POST /v2/bulk-jobs | A Bulk ID and signed input-file upload URL |
| Job · Management API | GET /v2/jobs/{id} | Status of an existing job |

### [API](https://flashdata.dev/docs/guides/http-quickstart/reference.md)

New to the API? Set your key and run a complete first request.

<a id="api-basics"></a>

## API basics

### [Realtime and async](https://flashdata.dev/docs/reference/realtime-and-async/reference.md)

Get results in the response, or submit a job and retrieve them later. Choose how your application or agent waits for work.

### [Batch and bulk](https://flashdata.dev/docs/reference/batch-and-bulk/reference.md)

Choose Batch for independent queries with different inputs. Choose Bulk for a file of video IDs that all need the same operation.

### [Completion webhooks](https://flashdata.dev/docs/reference/webhooks/reference.md)

Receive, deduplicate and verify async, batch and Bulk completion notifications.

### [Response formats](https://flashdata.dev/docs/guides/response-formats/reference.md)

Choose structured JSON for your application or Markdown content for an AI agent. Control the response with two headers.

### [Errors and status codes](https://flashdata.dev/docs/errors/reference.md)

Read an error response and decide whether to fix, retry or stop.

<a id="google-search"></a>

## Google Search

### [Search](https://flashdata.dev/docs/sources/google_search/reference.md)

Retrieve organic results, related questions and rich results from Google Search as structured JSON. Filter by country, language and location.

source: `google_search`

### [Images](https://flashdata.dev/docs/sources/google_images/reference.md)

Search Google Images and retrieve original image URLs, thumbnails, dimensions and source pages as JSON.

source: `google_images`

### [News](https://flashdata.dev/docs/sources/google_news/reference.md)

Retrieve Google News articles with headlines, source publications, links and publication dates. Filter by country, language and date range.

source: `google_news`

### [Shopping](https://flashdata.dev/docs/sources/google_shopping/reference.md)

Search Google Shopping for products and retrieve prices, merchants, ratings and product links in structured JSON.

source: `google_shopping`

### [Videos](https://flashdata.dev/docs/sources/google_videos/reference.md)

Find videos across websites with Google Videos. Retrieve titles, video links, thumbnails, durations and source information.

source: `google_videos`

### [Places](https://flashdata.dev/docs/sources/google_places/reference.md)

Search for local businesses and places. Retrieve names, addresses, coordinates, ratings and contact details when available.

source: `google_places`

<a id="youtube-data"></a>

## YouTube Data

### [Search](https://flashdata.dev/docs/sources/youtube_search/reference.md)

Search YouTube videos by keyword and retrieve titles, channels, durations, view counts and thumbnails as JSON.

source: `youtube_search`

### [Extended Search](https://flashdata.dev/docs/sources/youtube_search_extended/reference.md)

Retrieve up to 700 YouTube search results per request, with video details, thumbnails and search filters.

source: `youtube_search_extended`

### [Video Metadata](https://flashdata.dev/docs/sources/youtube_metadata/reference.md)

Retrieve video metadata by YouTube video ID, including channel details, engagement counts, thumbnails, available formats and chapters.

source: `youtube_metadata`

### [Transcript](https://flashdata.dev/docs/sources/youtube_transcript/reference.md)

Retrieve YouTube transcript text with timestamps and a full transcript. Automatic captions are selected by default.

source: `youtube_transcript`

### [Captions](https://flashdata.dev/docs/sources/youtube_captions/reference.md)

Retrieve YouTube captions as timestamped text and a full transcript. Uploader-provided captions are selected by default.

source: `youtube_captions`

### [Channel](https://flashdata.dev/docs/sources/youtube_channel/reference.md)

Retrieve a YouTube channel profile and its recent videos by handle, including subscriber counts, channel images and video details.

source: `youtube_channel`

### [Suggestions](https://flashdata.dev/docs/sources/youtube_suggestions/reference.md)

Retrieve YouTube autocomplete suggestions for a keyword or phrase, with language and region controls.

source: `youtube_suggestions`

### [License labels](https://flashdata.dev/docs/sources/youtube_trainability/reference.md)

Check a YouTube video's license metadata for a Creative Commons label and retrieve the result as JSON.

source: `youtube_trainability`

<a id="youtube-download"></a>

## YouTube Download

### [Download](https://flashdata.dev/docs/sources/youtube_download/reference.md)

Download YouTube video or audio to your cloud storage. Choose resolution, format and clip duration, then track the asynchronous job through completion.

source: `youtube_download`

<a id="bulk-processing"></a>

## Bulk processing

### [Bulk processing API](https://flashdata.dev/docs/reference/bulk-processing/reference.md)

Create and control file-based YouTube jobs, then retrieve their manifests and result parts.

<a id="group-5"></a>

## Protocol references

### [Management API](https://flashdata.dev/docs/api-reference/reference.md)

Jobs, account access, agent registration, claiming and credential handoff.

### [MCP tools and schemas](https://flashdata.dev/docs/mcp/reference.md)

Tool arguments, account tools, background jobs and large results.

<a id="group-6"></a>

## Specifications and client references

### [OpenAPI specification (JSON)](https://flashdata.dev/docs/openapi.json)

Machine-readable operations and schemas for API tooling.

### [CLI command reference](https://github.com/flashdatadev/flashdata-cli/blob/v1.4.0/docs/commands.md)

Commands, flags and exit codes for v1.4.0. Opens GitHub.

### [Go SDK method reference](https://github.com/flashdatadev/flashdata-go/blob/v1.3.0/docs/api-reference.md)

Client methods and types for v1.3.0. Opens GitHub.

### [Python SDK method reference](https://github.com/flashdatadev/flashdata-python/blob/v1.3.0/docs/api-reference.md)

Client methods and types for v1.3.0. Opens GitHub.

### [TypeScript SDK method reference](https://github.com/flashdatadev/flashdata-typescript/blob/v1.3.0/docs/api-reference.md)

Client methods and types for v1.3.0. Opens GitHub.
