Сайты

Поиск сайтов и список страниц сайта с примерами запросов

Работа с сайтами

Поиск сайтов

GET https://api.lpmotor.ru/v1/site

Поиск пользовательских сайтов и выданных по доступу.

Query Parameters

Headers

{
  "count": 0,
  "limit": 0,
  "offset": 0,
  "sites": [
    {
      "id": 0,
      "user_id": 0,
      "home_id": 0,
      "title": "string",
      "subdomain": "string",
      "attached_domain": "string",
      "d_created": "2021-08-04T15:28:46.655Z",
      "d_updated": "2021-08-04T15:28:46.655Z",
      "pages_is_signed": 0,
      "d_sign_off_expire": null,
      "is_del": false,
      "d_del": null,
      "home": {
        "id": 0,
        "user_id": 0,
        "name": "string",
        "url": "string",
        "site_id": 0,
        "is_enabled": false,
        "d_last_change": "2021-08-04T15:28:46.655Z",
        "access_count": 0,
        "is_base_variant": false,
        "is_variant": false,
        "variant_name": "string",
        "access_type": ["self"],
        "base_id": 0
      },
      "leads_count_new": 0,
      "https": false,
      "domain": "string",
      "domain_decoded": "string",
      "preview_image": "string",
      "project_id_list": [0,0]
    }
  ]
}

Пример запроса

curl \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "X-Api-User-Id: <<Your-user-id>>" \
-H "Authorization: Bearer <<Your-API-token>>" \
-X GET "https://api.lpmotor.ru/v1/site?type=all&sort_field=id&sort_dir=DESC&limit=18&offset=0"

Список страниц сайта

GET https://api.lpmotor.ru/v1/site/{site_id}/page

Поиск страниц определенного сайта

Path Parameters

Query Parameters

Headers

Пример запроса

curl \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "X-Api-User-Id: <<Your-user-id>>" \
-H "Authorization: Bearer <<Your-API-token>>" \
-X GET "https://api.lpmotor.ru/v1/site/<<site_id>>/page?limit=18&offset=0&with_variants=0"

Last updated