LOCALHOST
All pages
API reference

Seo

Every call needs Authorization: Bearer lh_… unless marked No key needed; the example uses $API for https://api.localhost.co.zw and $LH_API_KEY for your key. A * marks a required field.

#

Listings

websites:read

GET /seo/

What is on Google and how it does, and what could be added: live websites and names not on yet, and parked
names (no website to list).

Responses

  • 200 object
  • 401 no key, or a key that was revoked
  • 403 the key lacks the permission
Example request
curl -X GET "$API/seo/" \
  -H "Authorization: Bearer $LH_API_KEY"
#

Turn On

websites:write

POST /seo/

Put a live website, or a name of the account's with a website elsewhere, on Google. The steps run in the
background; read them back with GET /seo/.

Request body TurnOnIn

NameTypeNotes
website string default ""
name string default ""
email string default ""

Responses

  • 200 object
  • 401 no key, or a key that was revoked
  • 403 the key lacks the permission
Example request
curl -X POST "$API/seo/" \
  -H "Authorization: Bearer $LH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "website": "<website>",
    "name": "<name>",
    "email": "<email>"
  }'

Shapes

The objects these endpoints send and receive.

TurnOnIn

NameTypeNotes
website string default ""
name string default ""
email string default ""