Skip to main content

Autocomplete

POST 

/twirp/ttab.newswire.Entity/Autocomplete

Autocomplete is a method that can be used to provide autocomplete suggestions in a UI.

Request

Body

    text string

    Text to seach for.

    type ttab.newswire.EntityType

    Possible values: [ENTITY_UNSPECIFIED, ENTITY_PERSON, ENTITY_ORGANISATION, ENTITY_PLACE, ENTITY_TOPIC, ENTITY_STORY]

Responses

Method response

Schema
    items object[]

    Items that matched the text.

  • Array [
  • code string

    Code that uniquely identifies the entity.

    coordinates object
    lat number

    Lat is the latitude.

    lng number

    Lng is the longitude.

    name string

    Name of the entity.

  • ]
Loading...