Core APIs
...
Parameters
Utility Requests
Autocomplete
4 min
autocomplete parameters get get /request when making a request with the type parameter set to type=autocomplete bluecart api will return autocomplete suggestions for the search term specified in the search term parameter type=autocomplete is not supported for walmart ca for example, to request autocomplete suggestions for the search term memory the request would be http https //api bluecartapi com/request?api key=demo\&type=autocomplete\&search term=memorycurl l get https //api bluecartapi com/request \\ d api key="demo" \\ d type="autocomplete" \\ d search term="memory"const axios = require('axios'); // set up the request parameters const params = { api key "demo", type "autocomplete", search term "memory" } // make the http get request to bluecart api axios get('https //api bluecartapi com/request', { params }) then(response => { // print the json response from bluecart api console log(json stringify(response data, 0, 2)); }) catch(error => { // catch and print the error console log(error); })import requests import json \# set up the request parameters params = { 'api key' 'demo', 'type' 'autocomplete', 'search term' 'memory', } \# make the http get request to bluecart api api result = requests get('https //api bluecartapi com/request', params) \# print the json response from bluecart api print(json dumps(api result json()))\<?php \# set up the request parameters $querystring = http build query(\[ 'api key' => 'demo', 'type' => 'autocomplete', 'search term' => 'memory', ]); \# make the http get request to bluecart api $ch = curl init(sprintf('%s?%s', 'https //api bluecartapi com/request', $querystring)); curl setopt($ch, curlopt returntransfer, true); curl setopt($ch, curlopt followlocation, true); \# the following options are required if you're using an outdated openssl version \# more details https //www openssl org/blog/blog/2021/09/13/letsencryptrootcertexpire/ curl setopt($ch, curlopt ssl verifyhost, false); curl setopt($ch, curlopt ssl verifypeer, false); curl setopt($ch, curlopt timeout, 180); $api result = curl exec($ch); curl close($ch); \# print the json response from bluecart api echo $api result; ?> autocomplete parameters the following parameters are available for all requests made when type=autocomplete parameter required description search term required the search term to get autocomplete suggestions for next steps autocomplete results https //docs trajectdata com/bluecartapi/walmart product data api/results/autocomplete