POST /v1/search

POST /v1/search

Search the web. Optionally scrape every result in the same call. Five credits, plus one per scraped result.

Get your API keyCost · 5 credits + 1 per scraped result
Overview

What this verb does.

search issues a web query through a backend provider (DuckDuckGo HTML by default; SearchAPI/Serper as a v1.5 premium upgrade). It returns the top N results with title, URL and snippet.

Set scrape_results: true and Stekpad runs the scrape verb against each result and merges the markdown into the response. This is the verb most-used by Claude agents — it is the cheapest path to current web context inside an MCP call.

Request

Make the call.

Pick your language. Every snippet is a real, runnable example.

curl -X POST https://api.stekpad.com/v1/search \
-H "Authorization: Bearer stkpd_live_..." \
-H "Content-Type: application/json" \
-d '{
"query": "best project management tools 2026",
"num_results": 10,
"scrape_results": true,
"scrape_options": { "formats": ["markdown"] },
"country": "US",
"language": "en"
}'
Parameters

Request body.

NameTypeRequiredDescription
querystringrequiredThe search query.
num_resultsintoptionalDefault 10. Max 50.
scrape_resultsbooleanoptionalIf true, runs scrape on each result.
scrape_optionsobjectoptionalSame shape as /v1/scrape.
countrystringoptionalISO country code. Default US.
languagestringoptionalISO language code. Default en.
datasetobjectoptionalLand results as rows in a table dataset.
Response

What you get back.

search-response.json
json
{
"run_id": "run_01HZ...",
"query": "best project management tools 2026",
"results": [
{
"position": 1,
"url": "https://example.com/best-pm-tools",
"title": "The Best Project Management Tools of 2026",
"snippet": "We tested 30 tools...",
"scrape": { "markdown": "# The Best...\n..." }
}
],
"credits_charged": 15
}
Errors

Structured, typed, actionable.

CodeWhen
query_too_shortQuery under 2 characters.
search_provider_unavailableThe backend search provider rate-limited us.
target_blockedA specific result could not be scraped. The other results still return.

Every error includes a code, a human message, and a guidance field with the exact action to take.

Try /v1/search now.

Get an API key, paste the curl, watch the row land in your dataset.

POST /v1/search — web search and scrape | Stekpad API — Stekpad