Skip to main content

Build a website from the catalogue

Everything you need to list and show products comes from read-only endpoints.

You wantCallPermission
CataloguesGET /cataloguescatalogues:read
Categories for navigationGET /categoriescategories:read
Product listingsGET /productsproducts:read
A product pageGET /products/{id}products:read
Gallery imagesGET /products/{id}/mediamedia:read
PricesGET /products/{id}/pricespricing:read
CalendarGET /products/{id}/availabilityavailability:read
ReviewsGET /products/{id}/reviewsreviews:read
BlogGET /blogs, GET /blog-categoriesblogs:read

What you see​

You only get published records from the catalogues the app can access, after its catalogue and storefront restrictions. A record you cannot see returns 404, the same as one that does not exist.

Merchant apps see products offered to customers (B2C). Agent apps and B2B portal apps see products offered to travel agents (B2B).

Listing products​

curl "https://api.staging.agantia.com/api/public/v1/products?filter[category_id]=12&filter[product_type]=tour&sort=-rating&per_page=24" \
-H "Authorization: Bearer $TOKEN"
  • filter[catalogue_id], filter[category_id], filter[product_type] (tour, ticket, activity, transportation, hotel, rental, visa, restaurant, addon, flight), filter[slug], filter[q], filter[city_id], filter[country_id], filter[city] and filter[country] (name contains, such as filter[city]=Abu Dhabi).
  • filter[q] takes words, or the start of words, in any order, such as desert safari or safar. Case and extra spaces do not matter. Each word must appear in the title, product code, short description or description ( matched on its text, not its HTML ). When you send no sort, the exact title or product code comes first, then titles with the whole search, then titles with every word.
  • sort by title, created_at, updated_at, display_rate, or rating. Prefix with - for descending.
  • fields=title,slug,from_price,main_image returns only what a listing card needs.

from_price is filled only when the app has pricing:read, and main_image only with media:read. Otherwise they are null.

Product pages by slug​

Look the product up by slug, then load the details:

curl "https://api.staging.agantia.com/api/public/v1/products?filter[slug]=desert-safari-bbq&fields=id" -H "Authorization: Bearer $TOKEN"
curl "https://api.staging.agantia.com/api/public/v1/products/156" -H "Authorization: Bearer $TOKEN"

Besides the listing fields, a product's details carry what a product page needs:

FieldWhat it holds
itineraryThe day plan, in order: time ( HH:MM or null ), title, description ( plain text ) and location
inclusions, exclusionsWhat the price includes and does not include
pickupis_available, is_drop_off_available, pickup_times ( pickup_time, tour_start_time ), the daily tour_start_time, and locations: the merchant's places in the product's cities where guests can be picked up ( title, address, type, city, at most 50 ). null for products without pickup settings, such as activities
meeting_pointtitle and address of where guests meet when their own place has no pickup, or null
cancellation_policyThe product's cancellation policy, or null
languagesLanguages the tour is guided in
faqstopic, question and answer
addonsExtras that can be added to a booking: id, name, description and price per unit. price needs pricing:read, like from_price

These fields are plain text; a product's own description stays the merchant's HTML, so sanitize it before you render it. Lists are empty and fields null when the product has none. Use fields to leave out what a page does not show, for example fields=title,itinerary,inclusions,exclusions.

Availability​

curl "https://api.staging.agantia.com/api/public/v1/products/156/availability?from=2026-12-01&to=2026-12-31" \
-H "Authorization: Bearer $TOKEN"

You get one entry per day with is_available and, for products with timeslots, the slots. Ask for at most 92 days per request.

Prices​

GET /products/{id}/prices returns the merchant's published display prices that are in effect now. For the exact price of a party on a date, including tax and options, use a quote.

Caching​

Catalogue data changes rarely. Cache listings and product pages for a few minutes, and cache availability for a minute or less. Respect the rate limits.