Source: https://developers.woosmap.com/api-reference/indoor-api/get-indoor-venues-venue_id-pois-autocomplete/

> For clean Markdown of any page, append `.md` to the page URL.

> For a complete documentation index, see https://developers.woosmap.com/llms.txt

# Autocomplete Venue Pois By Key



# Autocomplete Venue Pois By Key

 GET 
https://api.woosmap.com/indoor/venues/{venue\_id}/pois/autocomplete

Autocomplete text search of the features of a venue using a name or description

**Rate limit** : `20/1s`

### Authorization

[`private_key`](#authorization-indoor-api-privatekeyauth)
apiKeyquery

[`X-Api-Key`](#authorization-indoor-api-privatekeyheaderauth)
apiKeyheader

[`key`](#authorization-indoor-api-publickeyauth)
apiKeyquery

### Path Parameters

[`venue_id`](#path-venue-id)
stringrequired

ID of the venue

### Query Parameters

[`items_by_page`](#query-items-by-page)
integerDefaults to `0`

Number of items per page. A value of 0 means no pagination.

[`page`](#query-page)
integerDefaults to `0`

Page number. 0 being the first page.

[`from_location`](#query-from-location)
string

A string with the format lat,lng,level

Example:`48.8818546,2.3572283,0`

[`q`](#query-q)
string

Search string. If not passed then all features will be listed alphabetically

[`extended`](#query-extended)
string

Option to search even not searchable pois (extended=full)

Example:`full`

[`level`](#query-level)
integer

Filter by level.

[`building`](#query-building)
string

Filter by building (use `undefined` to find POIs not associated with a building.).

[`category`](#query-category)
string

Filter by category.

[`ref`](#query-ref)
string

Filter by a comma seperated list of POI Refs.

Example:`ref:main_entrance,ref:side_entrance`

[`language`](#query-language)
stringDefaults to `en`

A supported language as an ISO 639-1 2 letter code.

[`advanced_filter`](#query-advanced-filter)
string

Filter by complex queries on properties (ex: indoor:="room" OR door:="yes").

### Response

200application/json

OK

[`pagination`](#resp-200-pagination)
objectrequired

Pagination Information

#Show 4 propertiesHide 4 properties

pagination.[`page`](#resp-200-pagination-page)
integerrequired

Current page number

pagination.[`page_count`](#resp-200-pagination-page-count)
integerrequired

Total number of pages

pagination.[`total`](#resp-200-pagination-total)
integerrequired

Total number of items

pagination.[`per_page`](#resp-200-pagination-per-page)
integerrequired

Number of items per page

[`predictions`](#resp-200-predictions)
object[]

List of Indoor features

#Show 8 propertiesHide 8 properties

predictions.[`id`](#resp-200-predictions-id)
integerrequired

ID of the Feature

predictions.[`name`](#resp-200-predictions-name)
string

Name of the Feature

predictions.[`distance`](#resp-200-predictions-distance)
number

If from location provided, is the distance in metres from that location

predictions.[`duration`](#resp-200-predictions-duration)
number

If from location provided, is the duration in seconds from that location

predictions.[`level`](#resp-200-predictions-level)
string

Level of the Feature

predictions.[`ref`](#resp-200-predictions-ref)
string

Reference of the Feature

predictions.[`building`](#resp-200-predictions-building)
string

Building the Feature is in

predictions.[`category`](#resp-200-predictions-category)
string

Catagory of the Feature

### Errors

#401

Unauthorized

 

`application/json`

[`detail`](#err-401-detail)
stringrequired

#402

Payment Required

 

`application/json`

No properties defined

#403

Forbidden

 

`application/json`

No properties defined

#422

Unprocessable Entity

 

`application/json`

[`detail`](#err-422-detail)
object[]required

The validation errors.

[`context`](#err-422-context)
objectrequired

Context

```shell
curl -L -X GET 'https://api.woosmap.com/indoor/venues/west_pal/pois/autocomplete?q=cham&language=en&key=YOUR_PUBLIC_API_KEY' \
-H 'Referer: http://localhost'
```

```python
import requests

url = "https://api.woosmap.com/indoor/venues/west_pal/pois/autocomplete?q=cham&language=en&key=YOUR_PUBLIC_API_KEY"

payload={}
headers = {
    'Referer': 'http://localhost'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
```

```javascript
var requestOptions = {
  method: 'GET',
  redirect: 'follow'
};

fetch("https://api.woosmap.com/indoor/venues/west_pal/pois/autocomplete?q=cham&language=en&key=YOUR_PUBLIC_API_KEY", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));
```

```json
{
  "pagination": {
    "page": 1,
    "page_count": 1,
    "per_page": 2,
    "total": 2
  },
  "predictions": [
    {
      "building": "Palace of Westminster",
      "category": null,
      "distance": null,
      "duration": null,
      "id": 3623459,
      "level": "1",
      "name": "Painted Chamber",
      "ref": null
    },
    {
      "building": "Palace of Westminster",
      "category": null,
      "distance": null,
      "duration": null,
      "id": 3624060,
      "level": "1",
      "name": "Lord Chamberlain's Private Office",
      "ref": null
    }
  ]
}
```
