Sape.ru Xml-Rpc

Our xml-rpc interface is available at http://api.sape.ru/xmlrpc/. Request should be made using port 80, the body of xml-response should be put to POST_DATA. All communication is in UTF-8. Also you can work at https https://api.sape.ru/xmlrpc/.

If you know nothing about XML-RPC we recommend you read about it at www.xmlrpc.com:

  1. The protocol implementation for your favorite programming language.
  2. For those who use PHP we recommend Zend Framework

Display categories Hide categories
Select the role:
Select a category
(array) sape.oauth_resource( (string) clientId, (string) accessToken )

Получение информации о пользователю по токену.

Name Type Obligatorily По умолчанию Description
clientId string Yes - ID клиента
accessToken string Yes - токен
Type Description
array Содержит следующие значения:
  • (boolean) success - статус авторизации
  • (array) user Содержит следующие значения:
    • (int) id - User's ID
    • (string) login - логин
    • (string) currency_preffered - предпочитаемая валюта
    • (float) currency_cours_ue - курс у.е.
    • (int) is_workable_seo - признак наличия договора SEO
    • (int) is_workable_wm - признак наличия договора WM
    • (int) is_workable_partner - признак наличия договора партнерства
    • (boolean) have_phone - наличие номера телефона
    • (string) ip - IP пользователя
    • (boolean) bindip - закрепить авторизацию за IP
    • (string) lang - язык
    • (int) subsys_id - ID подсиситемы, в которой регистрировался пользователь
Code
Message
Description
100
SAPE.RU: Not enough params :o(
Not enough parameters
101
SAPE.RU: Internal error :o(
Internal error
102
SAPE.RU: Bad or unknown ID :o(
Invalid ID
110
SAPE.RU: User registration failed :o(
The user is not registered
111
SAPE.RU: Bad login :o(
Invalid login or password
112
SAPE.RU: Login already in use :o(
This login is already in the system
113
SAPE.RU: Email already in use :o(
This e-mail is already in the system
114
SAPE.RU: Password too short :o(
The password is too short
115
SAPE.RU: Bad email :o(
Invalid e-mail
116
SAPE.RU: Bad username :o(
Invalid username
117
SAPE.RU: Bad refid :o(
Invalid referral ID
118
SAPE.RU: Bad user id :o(
Invalid user ID
119
SAPE.RU: User not auth :o(
The user is not authorized
120
SAPE.RU: Bad external system ID :o(
Invalid external system ID
121
SAPE.RU: Method is restricted for current user :o(
The method is not allowed to be called for this user
122
SAPE.RU: User does not exist :o(
User dos not exist
123
SAPE.RU: User does not have a phone :o(
The user has no phone number
140
SAPE.RU: Billing in progress :o(
Billing is in process
141
SAPE.RU: Afterbilling aggregations building in progress :o(
There is a postbilling creation of aggregations
150
SAPE.RU: Bad subscribe type :o(
Invalid subscription type
151
SAPE.RU: Bad template id :o(
Invalid template ID
210
SAPE.RU: Anchor add failed :o(
Anchor is not added
211
SAPE.RU: Anchor delete failed :o(
Anchor is not removed
310
SAPE.RU: Project create failed :o(
Project is not created
311
SAPE.RU: Project bad name :o(
Invalid project's title
320
SAPE.RU: URL Add failed :o(
URL is not added
321
SAPE.RU: URL is banned :o(
URL is banned
322
SAPE.RU: Bad URL length :o(
Invalid URL length
323
SAPE.RU: URL is malformed :o(
Malformed URL
324
SAPE.RU: Bad URL domain :o(
Invalid URL domain
325
SAPE.RU: Url contains quote :o(
URL contains the quotation marks
330
SAPE.RU: Site add failed :o(
Site is not added
331
SAPE.RU: Bad url :o(
Invalid URL
332
SAPE.RU: Site already exists :o(
Site is already in the system
333
SAPE.RU: No code on front page :o(
There is no system code on the homepage
334
SAPE.RU: No code on page :o(
There is no system code on the page
335
SAPE.RU: No connection to site :o(
Server communication error
336
SAPE.RU: Site cannot be reindexed now :o(
The site recrawling is currently prohibited
337
SAPE.RU: Site is already bought out :o(
Site is already purchased
338
SAPE.RU: Site reindex is already started :o(
Task is in the queue or is being executed.
410
SAPE.RU: Placement create failed :o(
Link is not created
420
SAPE.RU: Placement delete failed :o(
Link is not removed
430
SAPE.RU: Placement update text failed :o(
Link text is not changed
432
SAPE.RU: Placement update price failed :o(
Link price is not changed
435
SAPE.RU: Placement update url failed :o(
Link URL is not changed
440
SAPE.RU: Placement accept SEO failed :o(
Link is not confirmed by the advertiser
450
SAPE.RU: Placement unsleep failed :o(
Link is not restored
460
SAPE.RU: Placement accept WM failed :o(
Link is not confirmed by the publisher
465
SAPE.RU: Placement new price accept failed :o(
Error of new prices confirmation
466
SAPE.RU: Placement new price reject failed :o(
Error of new prices rejection
470
SAPE.RU: Autofilter create failed, no texts on url
Autofilter is not created. There is no texts for URL
471
SAPE.RU: Autofilter create failed, already exist
Autofilter is not created. It already exists
500
SAPE.RU: Bad Project ID
Invalid project ID
501
SAPE.RU: Bad Site ID
Invalid site ID
502
SAPE.RU: Bad URL ID
Invalid URL ID
503
SAPE.RU: Bad Placement ID
Invalid link ID
504
SAPE.RU: Bad Placement Text
Invalid link text
505
SAPE.RU: Bad date in params
Invalid date format in the parameters
506
SAPE.RU: Bad Page ID
Invalid page ID
507
SAPE.RU: Bad Project ID - No URLs
Invalid project ID: there are no URLs
508
SAPE.RU: Bad category id
Invalid category ID
509
SAPE.RU: Bad filter id
Invalid filter ID
510
SAPE.RU: Bad whitelist id
Invalid section ID in favorites
511
SAPE.RU: Bad keyword
Invalid keyword
512
SAPE.RU: Bad stop-words list ID
Invalid ID of censored words list
513
SAPE.RU: Bad Project blacklist ID
Project blacklist is not created
514
SAPE.RU: Bad date interval
Invalid date range
515
SAPE.RU: Bad domain id
Invalid domain ID
521
SAPE.RU: Bad placement anchor ID
Invalid anchor ID
522
SAPE.RU: Empty placement anchor
Empty anchor
523
SAPE.RU: Malformed placement anchor
Incorrect anchor
524
SAPE.RU: Spammed placement anchor
Spammed anchor
525
SAPE.RU: Anchor too long
Anchor is too long
526
SAPE.RU: Anchor exist
Anchor already exists
650
SAPE.RU: Empty login :o(
Empty login
651
SAPE.RU: User is not activated :o(
User is not activated
652
SAPE.RU: Quantity of attempts of authentication for current IP is exceeded :o(
Number of the authorization attemps for the current IP is exhausted
653
SAPE.RU: Login does not exist :o(
User dos not exist
654
SAPE.RU: Invalid authorization cookie :o(
Invalid authorisation cookie
655
SAPE.RU: User is banned :o(
User is banned
656
SAPE.RU: User is blocked - need to change password :o(
User is blocked. Change the password
657
SAPE.RU: Invalid authorization ticket :o(
Invalid authorisation ticket
660
SAPE.RU: Access restricted for current IP :o(
Access from the current IP is forbidden
661
SAPE.RU: No partner contract :o(
There is no affiliate program's contract
662
SAPE.RU: No WM contract :o(
There is no publisher's contract
663
SAPE.RU: No SEO contract :o(
There is no advertiser's contract
664
SAPE.RU: Extended mode denied :o(
Access to the additional functions is closed
665
SAPE.RU: Not wizard account
This is not a Wizard account
666
SAPE.RU: Invalid login or password :o(
Invalid login or password
667
SAPE.RU: Please, login
Log in the system, please
668
SAPE.RU: Quantity of attempts of authentication is exceeded
Number of the authorization attempts is exhausted
669
SAPE.RU: TEMPORARY UNAVAILABLE
Temporarily is not available
670
SAPE.RU: Empty array!
Empty array
671
SAPE.RU: Input array empty!
Input data array is empty
672
SAPE.RU: Return array empty!
Output data array is empty
673
SAPE.RU: Search result empty!
Search returned the empty result
680
SAPE.RU: Request processing error!
Error during the request processing
681
SAPE.RU: Request already exist!
Request already exists
711
SAPE.RU: Bill amount too small :o(
Invoice amount is too small
800
SAPE.RU: Bad handle :o(
Invalid index
801
SAPE.RU: Get task status failed :o(
Status receiving error by the transfered index
802
SAPE.RU: Cannot get factor status :o(
It is impossible to receive the factor status
900
SAPE.RU: OAuth error :o(
"OAuth" error
1000
SAPE.RU: Elama error :o(
"Elama" error
1100
SAPE.RU: RT error :o(
"RT" error
1200
SAPE.RU: RTB error :o(
"RTB" error
1400
SAPE.RU: Wizard error :o(
"Wizard" error
1500
SAPE.RU: Archiving in PR failed :o(
Project archiving in PR failed
2101
SAPE.RU: Anchor add_failed, bad name :o(
Anchor is not added, invalid title
2201
SAPE.RU: Teaser upload failed, maximum allowed size for file 1.95MB :o(
The image file should be less than 1.95 MB
2202
SAPE.RU: Teaser upload failed, file must be jpg, gif or png :o(
The image file should be in jpg, gif or png format
2203
SAPE.RU: Teaser upload failed, file broken:o(
The image file is not readable
4101
SAPE.RU: Placement create failed, undefined page
Link is not created, page is not defined
4102
SAPE.RU: Placement create failed, big price
Link is not created, price is too high
4103
SAPE.RU: Placement create failed, undefined site
Link is not created, site is not defined
4104
SAPE.RU: Placement create failed, links limit reached
Link is not created, placement limit is reached
4105
SAPE.RU: Placement create failed, page is not active
Link is not created, page is not activated
4106
SAPE.RU: Placement create failed, site is not active
Link is not created, site is not activated
4107
SAPE.RU: Placement create failed, self link (anchor_url==site_url)
Link is not created, it is outbound
4108
SAPE.RU: Placement create failed, link already exists
Link is not created, this links already exists
4109
SAPE.RU: Placement create failed, IN WM BL
Link is not created, URL is in the publisher's blacklist
4110
SAPE.RU: Placement create failed, IN SEO BL
Link is not created, URL is in the advertiser's blacklist
4111
SAPE.RU: Placement create failed, text error
Link is not created, text error
4112
SAPE.RU: Placement create failed, not enough money for 2 days
Link is not created, not enough funds for 2 days placement
4113
SAPE.RU: Placement context create failed, anchor text error
Contextual link is not created, anchor text's error
4114
SAPE.RU: Placement context create failed, sql error
Contextual link is not created, SQL error
4116
SAPE.RU: Placement context create failed, no snippet
Contextual link is not created, there is no snippet
4117
SAPE.RU: Placement get good text failed, there are stop words
Text is not selected, there are censored words
4118
SAPE.RU: Placement get good text failed, there are russian chars
Text is not selected, there are Russian letters
4119
SAPE.RU: Placement get good text failed
Text is not selected
4120
SAPE.RU: Placement get good text failed, no active anchor texts
Text is not selected, there are no active texts
4510
SAPE.RU: URL unsleep failed :o(
URL is no restored
4511
SAPE.RU: URL unsleep failed, no money :o(
URL is no restored, not enough money
4512
SAPE.RU: URL unsleep failed, no links to unsleep :o(
URL is no restored, there are no links to be restored
6651
SAPE.RU: Not wizard user account
This account doesn't use Wizard
6661
SAPE.RU: Authorization by password or md5 is prohibited. Please use token instead (Details: https://help.sape.ru/sape/faq/1685). To generate token visit https://passport.sape.ru/security/token/.
Authorization by password or md5 is prohibited. Use token, please (More info at: https://help.sape.ru/sape/faq/1685). You may generate token in your account: https://passport.sape.ru/security/token/
7000
SAPE.RU: Too deep :o(
Specify search conditions
7001
SAPE.RU: Too short word :o(
Too short word
7002
SAPE.RU: Quantity of calls to a method is exceeded
Number of the calls to the method is exhausted
7003
SAPE.RU: Search result is too big :o(
Too much data in SERP, specify search conditions
41021
SAPE.RU: Placement create failed, zero price
Link is not created, zero price
41031
SAPE.RU: Placement create failed, site is not saling
Link is not created, links selling is off on the site
41181
SAPE.RU: Placement get good text failed, there are not russian chars
Text is not selected, there are no Russian letters
41301
SAPE.RU: Placement create failed, undefined teaser page
Link is not created, teaser page is not defined
41302
SAPE.RU: Placement create failed, not enough traffic
Link is not created, not enough traffic on the page
41304
SAPE.RU: Placement create failed, not enough traffic on site
Link is not created, not enough traffic on the site
41305
SAPE.RU: Placement create failed, teaser blocks limit reached
Ссылка не создана, превышен лимит тизерных блоков