OpheliaDocs
Search docs⌘K
DashboardCreate an account
v3 · Guide

Find something

Search one site for what you want: a table, a room, a product, an event. You get back a list of entities, each with an id you use to see what is open or to book.

What it does

POST /v3/search opens the site you name, uses its own search with your ask, and reads the results. Each result is an entity (ent_…). A search with no authorize presses nothing and books nothing.

Send no authorize on a search. max_commitment: "begin" is allowed: the drive then opens a result's booking and stops at its form, with nothing final pressed. Such a search keeps status: "succeeded" even when that walk fails, and then carries the walk's error_code (or no_action_found). It can also pause with 202 requires_action (an authorize_action pause; see When a drive pauses).

commit is never served on a search. A key without the v3:act scope, such as every key the dashboard makes, gets 403 insufficient_scope; only a key with v3:act gets 409 commitment_refused. To book, use POST /v3/bookings.

The request

Name the site and say what you want. Send only the fields your ask has.

FieldWhat to send
site
The website, as a host or a URL: opentable.com, opheliapractice.com/restaurant. Required. A name with no dot is read as that name plus .com, so check the spelling: a typo opens whatever public site it spells.
vertical
Which kind of ask: dining, hotels, shopping and the others in the drive_profile column of GET /v3/verticals. A word that covers several kinds, such as travel, can be refused with ambiguous_vertical.
term
What to look for, in words: "headphones", "sushi".
location
Where: a city, an area or an address.
datetime
When, in RFC 3339. Always write the place's own local time with its own offset: 2026-11-14T19:00:00-05:00 is 7 PM in New York. See the time zones note below.
party_size
How many people, from 0 to 64.
end_date
The other end of a span, such as a hotel check-out: 2026-11-16. end_datetime is also accepted; end_date wins when you send both.
destination
The other end of a route, such as where a flight lands. end_destination (city, state, country) and end_destination_address (address) are also accepted.
slots
Anything the fields above cannot say, keyed by role: {"<role>": {"type": "<type>", "value": …}}. For example the role cabin has the type enum. Never put card details here.
Time zones

Ophelia converts datetime to the place's own local clock only when the request carries a location. With no location, it uses the city of the customer's address, and assumed says so. A request named by entity_id or url with no locationis driven with the clock time you wrote, as written. So write the place's own local time with its own offset, and the time is right either way.

A table for two
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
}'
A two-night stay
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/hotel",
"vertical": "hotels",
"location": "Ophelia Test City",
"datetime": "2026-11-14T19:00:00-05:00",
"end_date": "2026-11-16",
"party_size": 2
}'

A search works a real site and can take a minute. Set your client's timeout to match. Test on the practice site lists typical times.

The response

A finished search is 200 with status: "succeeded" and entities[]. Here is the table search, with one of its three entities.

json
{
"status": "succeeded",
"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"],
"description": "A small French bistro on Practice Lane: steak frites, a short wine list and a zinc bar. Tables are held for 15 minutes; parties of seven or more call the restaurant.",
"rating_scale": "5",
"attributes": {
"dress_code": "Smart casual",
"hours": "Tue–Sun 17:00–22:30",
"phone": "+1 555 010 0101"
}
}
],
"candidate_count": 3,
"served_by": "form",
"slot_source": "session",
"drive_id": "drv_f4d84a9251751e8800d1d9d8"
}
Every entity has

entity_id and addressable are always there. name, host, vertical and booking_url usually are.

FieldMeans
entity_id
The id to send to availability or booking. It belongs to your organization.
name
The name the site shows.
host
The site it was found on.
vertical
The kind of ask it answers.
addressable
true when the result has a page of its own. false means it has none: it carries no booking_url and cannot be booked (unaddressable_entity).
booking_url
The page a booking for it starts on. You can send it as url instead of the entity_id. An entity with addressable: false has none.
Only when the page showed it

These fields appear only when the site stated them. Real sites state far fewer than the practice site, so treat every one as optional.

FieldsMeans
price, price_amount, price_max, currency
The price as printed ("$$$", "$129"), and as numbers when the page gave them.
rating, rating_scale, review_count, reviews[]
The rating, out of what, how many reviews, and a few reviews (rating, scale, author, date, title, text).
category, area, address, location
What kind of place, and where.
image_url, images, description
Pictures and text from the page.
brand, seller, availability
For products: who makes and sells it, and whether it is in stock ("in_stock").
start, end
For events: when it starts and ends.
attributes
Other facts the page listed, by name (dress_code, check_in).
times
The time labels the result card showed. They are not offers and have no ids. Read availability for bookable times.
extras
Raw text from the card, for display only. Never branch on it.
On the answer

candidate_count is how many results were read. drive_id names this drive. path (live, recipe, recipe-search or unsupported), served_by and slot_source say how the answer was read. When the site did not take part of your ask, the answer says so in slot_mismatch, location_mismatch or assumed. Know what an answer means explains each one.

What can go wrong

A failed search has status: "failed", an error_code and an error in words. A search presses no final button, so nothing was booked. The one exception is a search at begin whose booking report carries ALERT_BOOKING_CREATED: the drive landed on a confirmation anyway, so tell the person and check with the site.

No results, or no answer

These two are different. no_results is an answer: the site searched and said it has nothing. search_error means the drive never reached an answer.

json
{
"status": "failed",
"failure_class": "terminal",
"error_code": "no_results",
"error": "the session ended without results: no_results: the site says 'No results'"
}
json
{
"status": "failed",
"failure_class": "terminal",
"error_code": "search_error",
"error": "the session ended without results: the page moved and shows 1 result-like link(s), fewer than 3"
}
error_codeHTTPWhat it means and what to do
no_results
409
The site said it found nothing; error quotes it. Change the term, place or date.
search_error
409
The drive could not finish the search. A page that showed fewer than 3 results counts as this. Try a broader term, or no term.
term_not_applied
409
The site showed results, but not for what you asked. Reword the term.
location_not_applied
409
The site showed results for a different place. Check the location.
no_site
409
The request named no site. Add one.
private_address
409
The site is not on the public internet (a private, loopback or single-label address). Name a public site.
unresolvable_site
409
The site’s address could not be found. Check the spelling.
ambiguous_vertical
400
The vertical covers several kinds of ask; error names them. Send one of those.
invalid_input
400
A field breaks a rule, such as party_size over 64. error says which. Request rules lists every check.
commitment_refused
409
The search carried max_commitment: "commit" on a key with the v3:act scope. It is checked before the ask. A key without v3:act, such as every key the dashboard makes, gets 403 insufficient_scope for the same request. Drop authorize.
A site can also refuse the drive (a bot wall), or ask Ophelia to slow down (site_paced). Retry those later. Handle errors covers them, and Rate limits covers your own limit of 25 searches every 5 minutes.

Next: See what's open.