const textSimilaritySearch = async () => { try { const query = { query: 'Formal black button-up shirt', // The search query filters: { vendors: [], // List of specific brands to filter results from genders: ['Male', 'Female'], // A list of genders to return results for article: { name: 'T-Shirt', // The specific article type section: 'top' // The general article area } } limit: 5 // Number of results to return }; const response = await fetch('https://api.stylegpt.net/v1/dataset/search/text', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_API_KEY' }, body: JSON.stringify(query) }); const result = await response.json(); } catch (err) { throw new Error(`Error creating market analysis: ${err.message}`); } };