The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.


WebService::Yandex::Suggest - Yandex Suggest as an API


  use WebService::Yandex::Suggest;

  my $suggest = WebService::Yandex::Suggest->new();
  my @suggestions = $suggest->complete("ÿíäå");
  for my $suggestion (@suggestions) {
      print "$suggestion\n";


WebService::Yandex::Suggest is simple pure-perl implementation which allows you to use Yandex Suggest as a Web Service API to retrieve completions to your search query or partial query.


  $suggest = WebService::Yandex::Suggest->new();

Creates new WebService::Yandex::Suggest object.

  @suggestions = $suggest->complete($query);

Sends your $query to Yandex web server and fetches suggestions for the query. Suggestions are in a list

  $ua = $suggest->ua;

Returns underlying LWP::UserAgent object. It allows you to change User-Agent (Windows IE by default), timeout seconds and various properties.


Oleg Nikitin <>, module initially based on Tatsuhiko Miyagawa's <> WebService::Google::Suggest

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

This module gives you NO WARRANTY.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 75:

Non-ASCII character seen before =encoding in '$suggest->complete("ÿíäå");'. Assuming CP1252