{
  "openapi": "3.0.1",
  "info": {
    "title": "Company Domain Authority: Rank by Sector and Country",
    "description": "Use this tool when you need to see how a company's official website ranks against peers in its industry and country, with referring subnets and recent rank change.",
    "version": "1.0",
    "x-build-id": "wtTfnVGODewZKJ0hk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/phonic_lily~company-domain-authority-wikidata/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-phonic_lily-company-domain-authority-wikidata",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/phonic_lily~company-domain-authority-wikidata/runs": {
      "post": {
        "operationId": "runs-sync-phonic_lily-company-domain-authority-wikidata",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/phonic_lily~company-domain-authority-wikidata/run-sync": {
      "post": {
        "operationId": "run-sync-phonic_lily-company-domain-authority-wikidata",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "title": "Company name or domain contains",
            "type": "string",
            "description": "Company name or domain contains this text (accent- and case-insensitive substring), e.g. nestle or toyota.com."
          },
          "industry": {
            "title": "Industry contains",
            "type": "string",
            "description": "Any of the entity's Wikidata industries contains this text (accent- and case-insensitive substring), e.g. bank, food industry or software. Entities without a recorded industry never match."
          },
          "country": {
            "title": "Country contains",
            "type": "string",
            "description": "Any of the entity's Wikidata countries contains this text (accent- and case-insensitive substring), e.g. switzerland. Entities without a recorded country never match."
          },
          "domains": {
            "title": "Exact domains (e.g. nestle.com)",
            "type": "array",
            "description": "Exact domain names to look up (lower-case, e.g. nestle.com, toyota.com). Domains with no entity in the data return nothing.",
            "items": {
              "type": "string"
            }
          },
          "qids": {
            "title": "Wikidata IDs (e.g. Q160746)",
            "type": "array",
            "description": "Exact Wikidata entity identifiers, e.g. Q160746.",
            "items": {
              "type": "string"
            }
          },
          "countryCodes": {
            "title": "Country codes (ISO 3166-1 alpha-2, e.g. CH, US)",
            "type": "array",
            "description": "ISO country code of the entity's first Wikidata country. Entities without a country never match.",
            "items": {
              "type": "string"
            }
          },
          "siteScopes": {
            "title": "Site scope (domain_root, page_or_subdomain)",
            "type": "array",
            "description": "domain_root keeps only entities whose official website is the root of the domain (the cleanest company-to-domain link); page_or_subdomain keeps pages and sub-domains of a shared site.",
            "items": {
              "type": "string"
            }
          },
          "tlds": {
            "title": "TLDs (e.g. com, fr)",
            "type": "array",
            "description": "TLDs (e.g. com, fr). Records with an empty value never match.",
            "items": {
              "type": "string"
            }
          },
          "minGlobalRank": {
            "title": "Min Majestic rank (1 = best)",
            "type": "number",
            "description": "Min Majestic rank (1 = best). Records with an empty value never match."
          },
          "maxGlobalRank": {
            "title": "Max Majestic rank (1 = best)",
            "type": "number",
            "description": "Max Majestic rank (1 = best). Records with an empty value never match."
          },
          "minRankInIndustry": {
            "title": "Min rank in industry",
            "type": "number",
            "description": "Min rank among the domains of the same main industry. Only primary domain roots have a rank; others never match."
          },
          "maxRankInIndustry": {
            "title": "Max rank in industry (1 = most authoritative)",
            "type": "number",
            "description": "Max rank among the domains of the same main industry (give 10 for the top 10). Only primary domain roots have a rank; others never match."
          },
          "minRankInCountry": {
            "title": "Min rank in country",
            "type": "number",
            "description": "Min rank among the domains of the same country. Only primary domain roots have a rank; others never match."
          },
          "maxRankInCountry": {
            "title": "Max rank in country (1 = most authoritative)",
            "type": "number",
            "description": "Max rank among the domains of the same country (give 10 for the top 10). Only primary domain roots have a rank; others never match."
          },
          "minRankDelta": {
            "title": "Min rank change",
            "type": "number",
            "description": "Min rank change (previous rank minus current rank; positive = rose). Domains without a previous rank never match."
          },
          "maxRankDelta": {
            "title": "Max rank change",
            "type": "number",
            "description": "Max rank change (negative = fell). Domains without a previous rank never match."
          },
          "minRefSubnets": {
            "title": "Min referring subnets",
            "type": "number",
            "description": "Min referring subnets. Records with an empty value never match."
          },
          "maxRefSubnets": {
            "title": "Max referring subnets",
            "type": "number",
            "description": "Max referring subnets. Records with an empty value never match."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "globalRank",
              "rankInIndustry",
              "rankInCountry",
              "biggestFallFirst",
              "name"
            ],
            "type": "string",
            "description": "Sort order of results. Default: file order (or distance when a radius is given)."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum records returned and billed (1..10000).",
            "default": 20
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}