OpheliaDocs
Search docs⌘K
DashboardCreate an account
v3 · Endpoints

POST /v3/search

Search one site for what you ask. Each result comes back as an entity with an entity_id you can read availability for or book.

POST/v3/search
Scope: v3:search or v3:bookLimit: 25 per 5 minutes, its own budget

How to word an ask, and what each result field means: Find something.

Request

FieldTypeDefaultRule
site
string
none
Required. The website, as a host or a URL (opentable.com, opheliapractice.com/restaurant). A word with no dot is read as <word>.com. None → 409 no_site.
vertical
string
none
Which kind of ask: a drive_profile value from GET /v3/verticals (dining, hotels, shopping, …). A broad category that covers several (travel) answers 400 ambiguous_vertical naming the choices.
term
string
none
What to look for.
location
string
none
Where.
datetime
string
none
RFC 3339 with a zone. Write the place's own local time with its own offset (2026-11-14T19:00:00-05:00 is 7 PM in New York). With a location (or, with none, the customer's own city from customer.location or customer.address; assumed then says so), Ophelia converts it to the place's clock; a request by entity_id or url with no location is driven at the clock time you wrote. A time with no zone (2026-11-14T19:00:00 or 2026-11-14T19:00) is read as the place's own clock. Anything else → 400 invalid_input.
party_size
integer
none
0 to 64. Negative or over 64 → 400 invalid_input.
end_date
string
none
The other end of a span (a stay's check-out). end_datetime is accepted too; end_date wins when both are sent.
destination
string
none
The other end of a route. Also accepted: end_destination {city, state, country} and end_destination_address {street, line2, city, state, zip_code, country}.
slots
object
none
What the fields above cannot say, as {"role": {"type", "value"}}. Never put card values here.
actor
object
none
Same shape as slots.
authorize.max_commitment
string
read
read or begin. begin also walks a result to its booking form and stops there. commit is refused on a search (see Keys and scopes). Otherwise leave authorize out of a search.
end_user
string
none
Read as the person, on their connected account (for a site that shows prices only to a signed-in customer). Needs authorize.sign_in: true and authorize.fill_identity: true; nothing is pressed.

Response

FieldWhat it is
status
succeeded, needs_input or failed. At begin, also requires_action.
entities[]
The results. Each is an entity.
candidate_count
How many results were read.
drive_id
The id of this drive (drv_).
served_by
How the answer was read.
slot_source
Where the answer was read from.
assumed
Values Ophelia supplied because the request named none.
slot_mismatch
What you asked that the site's controls did not take.
location_mismatch
The same for the place.
location_checked
true: the place was verified. false: it could not be. Absent: no location was asked.
diagnosis
The site's own reason a form could not be passed.
missing[]
With needs_input: what the request must add. See missing item.
offer, booking
Only with authorize.max_commitment: "begin": what the drive saw and pressed. For display; their inner keys are not a contract.
error_code
With failed, plus error and failure_class. At begin, also on succeeded: why the walk to the form stopped.

The meaning of each field: Objects and Know what an answer means.

Statuses and error codes

HTTPStatus / error codeWhen
200
succeeded
The site answered with results.
200
succeeded + error_code
At begin: the results are real, and the walk to a result's form stopped. error_code says why (the walk's own code, or no_action_found).
202
requires_action
At begin: the walk paused on a press it may not make unattended (challenge_type: "authorize_action"). See When a drive pauses.
422
needs_input
The ask lacks something the site needs; missing[] lists it.
409
no_results
The site's own search found nothing. error carries the site's words.
409
search_error
The search could not be completed, including a page that showed fewer than 3 results.
409
term_not_applied, location_not_applied
The results do not answer the term or the location you sent.
409
no_site, unresolvable_site, private_address
No site, a site that is not a host or URL, or an address not on the public internet.
409
commitment_refused
The search carried max_commitment: "commit" on a key with v3:act.
400
invalid_input, ambiguous_vertical
A field fails its rule.
403
insufficient_scope
The search carried max_commitment: "commit" on a key without v3:act.
403
merchant_not_enabled_for_key
The key is not enabled for this site. Nothing was driven.
429
site_paced
The site is busy with another drive or was read moments ago. Come back later.
502
search_nav_failed
The site never loaded. Nothing was done. Retry later.
503
a block, drive_capacity
A site's bot wall or block stopped the drive, or Ophelia is running as many drives as it can. Honour Retry-After.

Every code: Statuses and error codes. Refusals before the search runs (key, scope, body, rate limit): Request rules.

Example

curl
curl -X POST https://api.opheliaos.com/v3/search \
-H "Authorization: Bearer YOUR_TEST_KEY" \
-H "Content-Type: application/json" \
-d '{
"site": "opheliapractice.com/restaurant",
"vertical": "dining",
"location": "Ophelia Test City",
"datetime": "2026-11-14T19:00:00-05:00",
"party_size": 2
}'

Response 200, with one of the three entities shown:

json
{
"status": "succeeded",
"path": "live",
"entities": [
{
"entity_id": "ent_bc78e91578f61f35555280df",
"name": "Practice Bistro",
"host": "opheliapractice.com",
"vertical": "dining",
"addressable": true,
"booking_url": "https://opheliapractice.com/restaurant/practice-bistro",
"price": "$$$",
"rating": "4.6",
"review_count": "812",
"category": "French",
"address": "12 Practice Lane, Ophelia Test City",
"image_url": "https://api.opheliaos.com/practice/images/practice-bistro-1.svg",
"times": ["5:00 PM", "5:30 PM", "6:00 PM", "7:00 PM", "7:30 PM", "8:30 PM", "9:00 PM"],
"rating_scale": "5"
}
],
"candidate_count": 3,
"served_by": "form",
"slot_source": "session",
"drive_id": "drv_f4d84a9251751e8800d1d9d8"
}