Direct answer

What does a video search API return?

AnyCrawler turns a text query into video candidates with titles, links, source metadata, and durations when available. Use the results for review queues or to find surrounding crawlable page text.

Video linksSource metadataTopic discoveryReview candidates

Integration fit

Use video search for source discovery, then crawl surrounding context

Video results are strongest as review candidates. When downstream systems need text, follow the source page with fetch or render and keep the video URL as provenance.

Search before crawl

Find candidates before spending crawl work

Search keeps agents from crawling blindly. Start from a query, pick the right channel, and return normalized result collections that can become crawl targets, review queues, or research inputs. Use the search hub to compare channels before choosing a specific vertical.

Video linksSource metadataTopic discoveryReview candidates

curl

Run video search

curl -X POST "https://api.anycrawler.com/v1/search" \
  -H "Authorization: Bearer $ANYCRAWLER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "channel": "videos",
    "query": "browser automation tutorial",
    "country": "us",
    "page": 1,
    "results_per_page": 10
  }'

Use the unified /v1/search endpoint and select the search type with the channel field.

Use cases

Video Search API for Demos, Talks & Tutorials use cases

Video results are strongest as review candidates. When downstream systems need text, follow the source page with fetch or render and keep the video URL as provenance.

Use

Find product walkthroughs

Surface demos and tutorials when a product workflow is easier to understand from video-first sources.

Use

Build research watchlists

Collect talks, interviews, launches, or technical sessions for analyst queues and topic monitoring.

Use

Connect video to page context

Use linked source pages or descriptions as crawl targets when the video itself needs supporting text context.

How it works

Query, normalize, route the strongest results

The gateway handles request validation, account checks, search provider routing, response normalization, and credit settlement.

1

Submit a query

Send a POST request with query, channel=videos, and optional localization or pagination fields.

2

AnyCrawler routes the search

The gateway validates your API key, checks credits, and sends the request to the selected search collection.

3

Results are normalized

Upstream results are returned in a predictable response envelope with channel, query, nested search parameters, status, and credits.

4

You choose the next step

Use result links as crawl targets, visual review candidates, research inputs, or source lists for a larger agent workflow.

Response

Normalized video results

{
  "ok": true,
  "query": "browser automation tutorial",
  "credits_used": 2,
  "status_code": 200,
  "results": {
    "search_parameters": {
      "channel": "videos",
      "country": "us",
      "page": 1,
      "query": "browser automation tutorial",
      "results_per_page": 10
    },
    "videos": [
      {
        "title": "Browser automation tutorial",
        "link": "https://example.com/videos/browser-automation",
        "source": "Example Video",
        "duration": "12:34",
        "snippet": "A video-first result for demos, tutorials, or review workflows."
      }
    ]
  }
}

Result collections vary by channel, but the public response envelope stays consistent.

What you get

Search results that can become crawl targets

The video search response is built for routing. Use snippets for triage, links for follow-up crawl requests, and status and credit fields for production observability.

  • Video links for human or agent review queues
  • Source metadata for topic triage
  • Candidates for demo and tutorial discovery
  • Follow-up URLs for page crawl or screenshot evidence

Request fields

One search endpoint, explicit channel selection

The stable public contract focuses on the fields below. Undocumented passthrough fields are not part of new integrations.

FieldTypeRequiredNotes
channel"page", "images", "news", "videos", or "scholar"YesSelects the search vertical on the unified public search endpoint.
querystringYesA non-empty search query, up to 512 characters.
countrystring or nullNoOptional localization hint for the upstream provider, not a strict country filter; up to 128 characters.
pageintegerNoLogical result page from 1 to 100. Defaults to 1 and combines with results_per_page.
results_per_pageintegerNoMaximum results from 1 to 100. Defaults to 10; consecutive 10-result provider pages stop early on a short page.

Response fields

Fields your integration can rely on

AnyCrawler keeps the search envelope consistent while the result collection reflects the selected channel.

FieldMeaning
okWhether the gateway completed the search successfully.
queryThe query submitted in the request.
credits_usedCredits settled at 2 per primary result actually returned.
status_codeThe upstream search provider status code returned through the gateway.
results.search_parameters.channelThe search vertical used for the request.
results.search_parameters.countryThe country hint used for localized search results.
results.search_parameters.queryThe query mirrored inside the normalized search parameters.
results.search_parameters.pageThe search result page returned.
results.search_parameters.results_per_pageThe requested maximum number of primary results.
results.videosVideo result candidates with source links for review and research routing.
results.knowledge_graph / answer_box / people_also_ask / related_searchesOptional normalized provider collections when they are available for the query.
error_code / error_message / retryableFailure details returned when ok is false; retryable indicates whether retrying can help.

JavaScript

Use the unified endpoint

const response = await fetch("https://api.anycrawler.com/v1/search", {
  method: "POST",
  headers: {
    "authorization": `Bearer ${process.env.ANYCRAWLER_API_KEY}`,
    "content-type": "application/json",
  },
  body: JSON.stringify({
    channel: "videos",
    query: "browser automation tutorial",
    country: "us",
    page: 1,
    results_per_page: 10,
  }),
});

const data = await response.json();
console.log(data.results);

Change channel to switch between page, images, news, videos, and scholar search.

Search vs crawl

Use video search for source discovery, then crawl surrounding context

Video results are strongest as review candidates. When downstream systems need text, follow the source page with fetch or render and keep the video URL as provenance. Where a result links to an accessible web page, fetch or render can extract that page's Markdown and metadata. Screenshot is a separate request for visual evidence; page crawling does not download media or bypass source access restrictions.

APIBest forReturns
searchFinding candidate pages, sources, media, news, videos, or papersSearch result collections
fetchFast, low-cost extraction when useful content is already in HTMLMarkdown and page fields
renderJavaScript-loaded pages that need browser executionRendered Markdown and page fields
screenshotA separate visual record of a selected public pageStored image fields

Errors

Status codes are explicit enough for production handling

Use response status plus error_code and request headers to route retries, credit issues, authentication problems, and upstream provider failures.

200Search completed and normalized.
400Invalid JSON, missing channel, missing query, or unsupported field value.
401Missing, invalid, or revoked API key.
402Account does not have enough credits.
403Account inactive.
409Gateway could not reserve account capacity; retry the request.
413Request body exceeds the 256 KiB public gateway limit.
429Rate limit reached.
502Upstream provider connection failed or returned an unexpected response.
503Database or search provider is not configured.
504Search provider or gateway timed out.

Billing

Predictable result-count pricing

Search reserves for the requested maximum, then settles only the primary results actually returned and refunds unused reserved credits.

Pricing

Search result pricing

Search settles at 2 credits per primary result actually returned. A request for 10 results costs 20 credits if all 10 return; a short result list costs less. Fetching or rendering a selected page is billed separately.

See included credits and request limits on thefull pricing page.

FAQ

Common video search questions

Short answers for teams using search to choose better crawl targets.

Can I use the same endpoint for other search types?

Yes. POST to /v1/search and change the channel field to page, images, news, videos, or scholar. Each channel also has this dedicated theme page for integration planning.

How do search results fit with page crawling?

Use search to find candidate URLs, then call fetch or render on accessible web pages for Markdown, metadata, or links. Screenshot is a separate request when visual evidence is needed.

Does video search download or transcribe videos?

No. The search channel discovers video-first sources and returns result metadata. Downloading, transcription, or media processing is outside the current search contract.

How should an agent use video search results?

Rank the returned candidates for relevance, retain the video URL as provenance, and crawl linked pages or descriptions when the downstream task needs text context.