get
Returns data from the advertiser's business profiles on Yandex.
The advertiser can get data for businesses that meet at least one of the following criteria:
- The advertiser's chief representative has confirmed rights for the business in Yandex Business Directory.
- The business profile is linked to one of the advertiser's ads.
If the business profile doesn't pass moderation in Yandex Business Directory, the NO value is returned in the IsPublished
parameter. You won't be able to link this business profile to an ad.
Learn more
Request
Request structure in JSON format:
{
"method": "get",
"params": { /* params */
"SelectionCriteria": { /* IdsCriteria */
"Ids": [(long), ... ] /* required */
},
"FieldNames": [( "Id" | "Name" | "Address" | "Phone"
| "ProfileUrl" | "InternalUrl" | "IsPublished"
| "MergedIds" | "Rubric" | "Urls"
| "HasOffice" ), ... ], /* required */
"Page": { /* LimitOffset */
"Limit": (long),
"Offset": (long)
}
}
}
Parameter |
Type |
Description |
Required |
params structure (for JSON) / GetRequest (for SOAP) |
|||
|
IdsCriteria |
Criteria for selecting business profiles. |
No |
|
array of BusinessFieldEnum |
The names of parameters to get. |
Yes |
|
LimitOffset |
Structure that defines the page for paginated selection of data. |
No |
IdsCriteria structure |
|||
|
array of long |
IDs of the requested business profiles (a maximum of |
Yes |
Response
Response structure in JSON format:
{
"result": { /* result */
"Businesses": [{ /* BusinessGetItem */
"Id": (long),
"Name": (string),
"Address": (string), /* nillable */
"Phone": (string),
"ProfileUrl": (string),
"InternalUrl": (string),
"IsPublished": ( "YES" | "NO" ),
"MergedIds": { /* ArrayOfLong */
"Items": [(long), ... ]
},
"Rubric": (string),
"Urls": { /* ArrayOfString */
"Items": [(string), ... ]
},
"HasOffice": ( "YES" | "NO" )
}, ... ],
"LimitedBy": (long)
}
}
Parameter |
Type |
Description |
result structure (for JSON) / GetResponse (for SOAP) |
||
|
array of BusinessGetItem |
Business profiles. |
|
long |
Sequential number of the last object returned. It is included if there was a limit on the number of objects in the response. See the section Paginated data selection. |
BusinessGetItem structure |
||
|
long |
ID of the business profile. |
|
string |
Name of the organization. |
|
string, nillable |
Address of the business. |
|
string |
Phone number of the business. |
|
string |
Link to the business profile on Yandex. |
|
string |
Link to the business editing page in Yandex Business Directory. |
|
YesNoEnum |
Indicates that the business profile passed moderation in Yandex Business Directory and is published. You can link a business profile to an ad only if the YES value is returned in the |
|
ArrayOfLong |
IDs of business profiles that are combined with the main profile (the ID of the main profile is specified in the Only IDs of profiles linked to the advertiser's ads are returned, and only if the request omitted |
|
string |
Type of business. |
|
ArrayOfString |
Links to the site and social networks. |
|
YesNoEnum |
Indicates that the organization has a physical location. |