SocialCrawl

Search, news and web

Tavily data API

Search the web and extract page content for grounding, with one key.

Search the current public web with optional written answers, extract clean content from URLs, and crawl or map the pages of a site. Every endpoint is a GET.

안내

Tavily responses pass through in Tavily's own shape: ranked results[], an optional answer, and failed_results on extract. They do not use the unified Author / Post field map that the social platforms use, because web search results are not social posts.

Tavily 데이터 활용 사례

  • RAG·에이전트 빌더: include_answer 검색으로 그라운딩한 뒤 인용 URL을 extract해 임베딩합니다.
  • 문서·리서치 잡: 문서 루트를 map한 뒤 instructions로 API·제품 페이지만 crawl합니다.
  • 풀스택 제품 팀: 프로덕션에 별도 Tavily 키를 두지 않고 소셜 읽기 옆에 오픈 웹 맥락을 붙입니다.
Tavily API 소개

Your first call

cURL
curl "https://www.socialcrawl.dev/v1/tavily/search?query=claude+opus+release+notes" \
  -H "x-api-key: sc_your_key_here"
TypeScript
const res = await fetch(
  "https://www.socialcrawl.dev/v1/tavily/search?query=claude+opus+release+notes",
  { headers: { "x-api-key": process.env.SOCIALCRAWL_API_KEY! } },
);
const { data } = await res.json();
for (const r of data.results) {
  console.log(r.score, r.title, r.url);
}
Python
import os
import requests

res = requests.get(
    "https://www.socialcrawl.dev/v1/tavily/search",
    headers={"x-api-key": os.environ["SOCIALCRAWL_API_KEY"]},
    params={"query": "claude opus release notes"},
)
for r in res.json()["data"]["results"]:
    print(r["score"], r["title"], r["url"])

Each result has a url, title, a content excerpt chosen for the query, and a relevance score. Measured on 22/11/2026: this call returned 10 results for 1 credit in about 1.1 seconds.

2. Ask for a written answer alongside the results

cURL
curl "https://www.socialcrawl.dev/v1/tavily/search?query=who+founded+anthropic&include_answer=true" \
  -H "x-api-key: sc_your_key_here"

The response includes both ranked results[] and a synthesised answer string.

What it covers

What you wantCall
Ranked web results for a query/v1/tavily/search
A written answer with the results/v1/tavily/search with include_answer=true
Only recent news or one topic/v1/tavily/search with topic and time_range
Clean text from one or more URLs/v1/tavily/extract
The list of pages a site exposes/v1/tavily/map
The text of the pages worth reading on a site/v1/tavily/crawl

What it does not cover

  • Pages behind a login. A URL that cannot be read comes back in failed_results instead of as text.
  • Social posts as posts. Use the platform's own endpoints when you need authors, likes and comments.
  • A standing monitor. Each call reads the web once; see Web scraping for monitors and async crawls.

Search and extract

search takes query, search_depth, topic, time_range, max_results, include_answer, include_domains, exclude_domains, country, start_date and end_date. extract takes urls (up to 20, comma-separated), extract_depth, format, include_images and timeout. Any URL that could not be read comes back in failed_results rather than failing the whole request.

cURL
curl "https://www.socialcrawl.dev/v1/tavily/extract?urls=https://en.wikipedia.org/wiki/Lionel_Messi" \
  -H "x-api-key: sc_your_key_here"

Walk a site

map returns the URLs a site exposes without any page bodies. crawl returns each followed page's extracted content, starting from one URL. Both take the same scoping parameters (url, max_depth, max_breadth, limit, instructions, select_paths, select_domains, exclude_paths, exclude_domains, allow_external, categories). A map and the crawl that follows it can therefore take identical settings. The crawl endpoint also takes extract_depth and format.

What separates them is instructions: plain-language guidance on which paths are worth following. Use map when you want the shape of a site, and crawl when you want its text. Mapping first is the cheap way to find out what exists before you spend anything reading it.

cURL
# What pages does this site have?
curl "https://www.socialcrawl.dev/v1/tavily/map?url=https://docs.anthropic.com&max_depth=2&limit=100" \
  -H "x-api-key: sc_your_key_here"

# Read the ones about pricing
curl "https://www.socialcrawl.dev/v1/tavily/crawl?url=https://docs.anthropic.com&instructions=pages%20about%20pricing%20and%20rate%20limits&limit=20" \
  -H "x-api-key: sc_your_key_here"

Questions people ask

Does universal search use Tavily in the background?

Not by that name. Universal search has a web source that returns ranked web results, and tavily is accepted as another name for it in the sources list. It also has a separate perplexity source that writes a cited web answer. Call this page's endpoints directly when you want Tavily's own filters, extraction or crawl. See universal search for every source.

All endpoints

엔드포인트 4개를 제공해요.

엔드포인트경로크레딧 등급
Crawl a website with LLM-driven path selection/v1/tavily/crawlstandard (1cr)
Extract clean content from one or more URLs/v1/tavily/extractstandard (1cr)
Map a website's sitegraph/v1/tavily/mapstandard (1cr)
Tavily web search with optional LLM-generated answer/v1/tavily/searchstandard (1cr)

국가와 지역 파라미터

country와 region은 엔드포인트마다 하는 일이 다릅니다. 아래 각 줄은 해당 엔드포인트에서 그 파라미터가 하는 일입니다. 차이 보기

  • country 적용 경로: /v1/tavily/search: ISO 3166-1 alpha-2 country code to bias results toward.

호출 응답 시간

캐시를 거치지 않은 프로덕션 호출을 14/10/2026부터 21/10/2026까지 측정한 값입니다. 캐시된 호출은 이보다 빨리 응답합니다. 클라이언트 타임아웃을 권장 타임아웃 열의 값으로 잡아야 느린 호출이 중간에 끊겨 다시 보내는 일이 없습니다.

경로중간값호출 95%의 응답 시간권장 타임아웃
/v1/tavily/extract1.5초11초28초
/v1/tavily/search1.4초3.2초10초

Platform notes

  • Empty search results (results: []) are billed normally. You paid for the search, and an empty result is a real answer.
  • Array-typed Tavily params (urls, include_domains, select_paths, and the rest) are accepted as comma-separated strings on this surface and split server-side.
  • Authentication is your SocialCrawl x-api-key, not a Tavily key.
  • Caching: search responses cache for 2 minutes, extract for 10 minutes, map and crawl for 30 minutes. Cache hits cost 0 credits, and Cache-Control: no-cache requests a billed refresh.

Next steps