Python3 Example
Here is an example of constructing a request to obtain suggestions of country for companies.
import requests
import json
url = " https://api.neuron360.io/autocomplete"
payload = json.dumps({
"entity": "company",
"field": "countries",
"display_count": true,
"page_size": 10,
"page_number": 1,
"parameters": {
"input_text": "ba"
}
})
headers = {
'x-api-key': <<INSERT YOUR API KEY HERE>>,
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
Updated 10 months ago
What’s Next