traveldex

v0.1.0
io.github.CloudCorpRecords/traveldex Checked 21 hours ago Published 16 days ago

Search 2.5M travel places and place photos: details, booking routes, photo quotes and wallet.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

num_search_places Search places

Search NUM's travel directory: more than 2.5 million places — restaurants, bars, hotels, spas, tours and shops, deepest in Thailand and the UK. Say where to look: city (one of NUM's destinations — see num_list_destinations) or country; then narrow with q, area and category. Places NUM knows have closed are never returned. Returns name, category, address, phone, website, coordinates and whether the owner has claimed the listing; call num_get_place for how to book one. Each call counts against the daily read quota.

ParameterTypeDescription
areastringA neighbourhood inside the destination, e.g. 'Kata' or 'Soho'.
categorystringe.g. 'Restaurant', 'Bar', 'Hotel', 'Spa', 'Tour'.
citystringA NUM destination, e.g. 'Phuket', 'Edinburgh', 'Bangkok', 'London'. Required unless country is given.
countrystringISO-2 code or name, e.g. 'TH' or 'Thailand'. Searches every NUM destination in that country.
limitintegerMax results, default 20, cap 50.
qstringFree text matched against the place name.

num_list_destinations List NUM's destinations

Every destination NUM covers, with its country. Use a destination's name or slug as num_search_places city. Free, unmetered, and needs no key.

num_get_place Get place details and how to book it

Full record for one place, by the place_id that num_search_places returned, including HOW TO BOOK IT on the venue's own terms. `booking.method` is one of: request (the venue takes requests through NUM and confirms each one itself), venue_system (send the traveller to booking.url, prefilled when you pass party_size, date and time), phone (the number is for the traveller to call), not_through_num, closed, unknown. Follow booking.guidance exactly. If open_status.closed is true, NUM holds evidence the place has gone: do not send anyone there. accolades carry their source; menu is the owner's own l…

ParameterTypeDescription
place_id *stringThe place_id returned by num_search_places.
datestringOptional: YYYY-MM-DD, to prefill the venue's booking page.
party_sizeintegerOptional: people in the party, to prefill the venue's booking page.
timestringOptional: HH:MM 24-hour, local to the venue.

num_list_submissions List your submissions

Lists the businesses and promotions this account has submitted, with the reviewer's decision on each. Free and unmetered.

ParameterTypeDescription
limitintegerMaximum number of submissions to return.
offsetintegerNumber of submissions to skip, for paging.
statusstringOnly submissions with this review status.

num_search_photos Search licensable photos of places

Search photos of real places taken by NUM travelers and offered for licensing per use. Each result has a photo_id, a preview URL, the place (name, city, area, category), the month it was taken, the photographer's public name and the price in US cents for each use: social (one post), web (one page), ad (one campaign) and ai_training (one dataset). A price of null means that use cannot be bought right now. Business uses sell in live drops: a limited number of licenses over 3 days, the price rising 10% after each one; drop shows licenses left, the end time and the next price. Every photo shows a…

ParameterTypeDescription
categorystringe.g. 'Restaurant', 'Bar', 'Hotel'.
citystringA NUM destination or neighbourhood, e.g. 'London' or 'Silom'.
kindstringOnly photos of this kind, e.g. 'storefront' or 'interior'.
limitintegerMaximum number of photos to return.
offsetintegerNumber of photos to skip, for paging.
place_idstringOnly photos of this place (from num_search_places).
qstringFree text matched against the place name.
usestringOnly photos offered for this use.

num_quote_photo Get the price and terms for one use of a photo

The current price in US cents and the full license terms for one use of one photo. Nothing is charged. Counts against the daily read quota.

ParameterTypeDescription
photo_id *stringFrom num_search_photos.
use *stringThe use to price: social (one post), web (one page), ad (one campaign) or ai_training (one dataset).

num_photo_wallet Photo wallet and licenses

This account's photo wallet balance (US cents, plus test credit), what it spent today against the daily cap, and the licenses it holds. Free and unmetered. Adding credit is POST /api/agent/photos/topup, which returns a checkout link a person pays.