{"agentsJson":"1.0.0","info":{"title":"Motorsclub","version":"1.0.0","description":"Motorsclub vehicle inventory: search new, used and km0 vehicles, browse brands and models, read listing details."},"sources":[{"id":"siteApi","path":"https:\/\/console.autoclub.it\/api\/v1\/docs.jsonopenapi"}],"flows":[{"id":"search_inventory_flow","title":"Search the vehicle inventory","description":"Searches the public vehicle inventory (cars and motorbikes) with optional filters. No authentication required.","actions":[{"id":"searchListings","sourceId":"siteApi","operationId":"api_listingssearch_post"}],"links":[],"fields":{"parameters":[{"name":"website","description":"Website identifier, use \u0022motorsclub\u0022 for this site","type":"string","required":true},{"name":"type","description":"Vehicle type: \u0022auto\u0022 or \u0022moto\u0022","type":"string","required":false},{"name":"perPage","description":"Number of results per page (max 50)","type":"number","required":false}],"responses":{"success":{"type":"object","properties":{"totalItems":{"type":"number"},"_embedded":{"type":"object"}}}}}},{"id":"search_by_brand_flow","title":"Search inventory filtered by brand","description":"Lists the available brands, then searches the inventory for vehicles of a chosen brand.","actions":[{"id":"getBrands","sourceId":"siteApi","operationId":"api_listing_brands_by_search"},{"id":"searchListings","sourceId":"siteApi","operationId":"api_listingssearch_post"}],"links":[{"origin":{"actionId":"getBrands","fieldPath":"response._embedded.item[].@id"},"target":{"actionId":"searchListings","fieldPath":"parameters.brands[]"}}],"fields":{"parameters":[{"name":"website","description":"Website identifier, use \u0022motorsclub\u0022 for this site","type":"string","required":true},{"name":"brands","description":"Array of brand resource IRIs returned by getBrands","type":"array","required":true}],"responses":{"success":{"type":"object","properties":{"totalItems":{"type":"number"},"_embedded":{"type":"object"}}}}}},{"id":"listing_details_flow","title":"Get vehicle listing details","description":"Searches the inventory and retrieves the full details of a single vehicle listing.","actions":[{"id":"searchListings","sourceId":"siteApi","operationId":"api_listingssearch_post"},{"id":"getListing","sourceId":"siteApi","operationId":"api_listings_id_get"}],"links":[{"origin":{"actionId":"searchListings","fieldPath":"response._embedded.item[].id"},"target":{"actionId":"getListing","fieldPath":"parameters.id"}}],"fields":{"parameters":[{"name":"id","description":"Listing identifier returned by searchListings","type":"string","required":true}],"responses":{"success":{"type":"object","properties":{"id":{"type":"string"},"price":{"type":"number"}}}}}}]}