{
  "components": {
    "callbacks": {},
    "examples": {},
    "headers": {},
    "links": {},
    "parameters": {},
    "pathItems": {},
    "requestBodies": {},
    "responses": {},
    "schemas": {},
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "",
    "title": "Ahrefs (Site Explorer)",
    "version": "1",
    "x-aisa-capabilities": {
      "idempotency": "Idempotency-Key",
      "max_price": "X-AISA-Max-Price-USD",
      "quote": {
        "header": "X-AISA-Cost-Mode",
        "value": "quote"
      }
    },
    "x-aisa-catalogs": {
      "ahrefs": {
        "description": "",
        "title": "Ahrefs (Site Explorer)",
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          }
        },
        "x-aisa-document": {
          "facts_hash": "b2b5f29b871ad9b67549d532d37d3ab94d07941d8cee5c43463cda2f2f05fea0",
          "generator_version": "3",
          "protocol_version": "1",
          "schema_version": "1"
        },
        "x-aisa-plans": {
          "builder": 1.0,
          "display_plan": "payg",
          "payg": 1.0,
          "similarweb_payg": 1.0,
          "team": 1.0,
          "version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb"
        }
      }
    },
    "x-aisa-configured-paths": [
      "/apis/v1/ahrefs/site-explorer/domain-rating",
      "/apis/v1/ahrefs/site-explorer/metrics"
    ],
    "x-aisa-document": {
      "composer_version": "31",
      "document_hash": "sha256:6c76ec48b372615f01faee37e6d4e4f60f6a54380a1fd5faca2cffc3d5959f35",
      "facts_hash": "b2b5f29b871ad9b67549d532d37d3ab94d07941d8cee5c43463cda2f2f05fea0",
      "generator_version": "3",
      "protocol_version": "1",
      "response_pending": [],
      "schema_version": "1"
    },
    "x-aisa-plans": {
      "builder": 1.0,
      "display_plan": "payg",
      "payg": 1.0,
      "similarweb_payg": 1.0,
      "team": 1.0,
      "version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb"
    },
    "x-aisa-provider": "ahrefs"
  },
  "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
  "openapi": "3.1.0",
  "paths": {
    "/apis/v1/ahrefs/site-explorer/domain-rating": {
      "get": {
        "description": "Return the Ahrefs Domain Rating (0-100 authority score) and Ahrefs Rank for a target domain on a given date.  4xx/5xx are not charged.",
        "operationId": "get_ahrefs_domain_rating",
        "parameters": [
          {
            "description": "Snapshot date in `YYYY-MM-DD` format.",
            "in": "query",
            "name": "date",
            "required": true,
            "schema": {
              "example": "2026-08-01",
              "format": "date",
              "type": "string"
            }
          },
          {
            "description": "Target domain, e.g. `ahrefs.com`.",
            "in": "query",
            "name": "target",
            "required": true,
            "schema": {
              "example": "ahrefs.com",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "domain_rating": {
                    "ahrefs_rank": 619,
                    "domain_rating": 91.0
                  }
                },
                "schema": {
                  "properties": {
                    "domain_rating": {
                      "properties": {
                        "ahrefs_rank": {
                          "description": "Global Ahrefs Rank.",
                          "type": "integer"
                        },
                        "domain_rating": {
                          "description": "Domain Rating (0-100).",
                          "type": "number"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Domain Rating result."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Error response; upstream passthrough responses may use provider formats"
          }
        },
        "summary": "Ahrefs Domain Rating",
        "tags": [
          "ahrefs"
        ],
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "mpp": false,
          "mpp_methods": [],
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          },
          "x402": false
        },
        "x-aisa-catalog-id": "ahrefs",
        "x-aisa-category": "seo",
        "x-aisa-docs-url": "https://aisa.one/docs/api-reference/ahrefs/get_ahrefs-site-explorer-domain-rating",
        "x-aisa-passthrough": true,
        "x-aisa-pricing": {
          "cost_contract": "fixed_success",
          "customer_multiplier": 1.0,
          "customer_pricing": "provider_cost_multiplier",
          "default_request_estimate_usd": 0.08,
          "estimate_source": "profile_seed",
          "evidence_source": "request_snapshot"
        },
        "x-aisa-query-policy": {
          "ignore_undeclared": false,
          "request_wins": true
        },
        "x-aisa-response-source": {
          "content_hash": "sha256:bcf2b5ead7f0b76c33416259229db8b61ec75d2b62fa5df42ac407733d5b10de",
          "kind": "upstream_success_contract",
          "source": {
            "content_hash": "sha256:1dbd8932d7813f730920b6d561597e836fe454ccfa2edc7597da50bd150eac03",
            "converter": "canonical-example-structure@1",
            "fetched_at": "2026-09-29T21:25:55+08:00",
            "kind": "manual",
            "owner": "AIsa-team/docs",
            "path_space": "public",
            "policy_revision": "sha256:f2a32d3c8b6a20320f7d3d368aae81f74d7be58259ffc8ae0889fc986fc94bd9",
            "prior_source": {
              "content_hash": "sha256:56231e8d42282ceaae2e37ae97fe9ec5ac002a3f919601b09fed7747f3a581e9",
              "converter": "scripts/import_existing_contracts.py@1",
              "fetched_at": "2026-09-29T21:25:55+08:00",
              "kind": "manual",
              "owner": "AIsa-team/docs",
              "path_space": "public",
              "policy_revision": "sha256:e335bbe2b5a2f357a70696de3ef832699405fd43db8350724081e5a3b8bb60df",
              "refresh_policy": "manual",
              "review_period_days": 30,
              "url": "https://github.com/AIsa-team/docs/blob/7783840e4710bb00886143feab84606f8aaea67c/openapi/ahrefs.json"
            },
            "refresh_policy": "manual",
            "review_evidence": "Two target examples structured from the existing ahrefs.com description; no wire default or constraint changes.",
            "review_period_days": 30,
            "source_revision": "18f9724963df1d8c2b90819aa7a8a82ccbcfb0cd",
            "url": "https://github.com/AIsa-team/docs/blob/18f9724963df1d8c2b90819aa7a8a82ccbcfb0cd/openapi/upstream/ahrefs.json"
          }
        },
        "x-aisa-revision": {
          "customer_pricing_ref": "53d233dc98fb",
          "plan_policy_version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb",
          "profile_ref": "4770d1d419cd"
        },
        "x-aisa-runtime-operation": {
          "method": "ANY",
          "operation_id": "get_ahrefs_domain_rating",
          "path": "/apis/v1/ahrefs/site-explorer/domain-rating"
        },
        "x-aisa-source": {
          "content_hash": "sha256:1dbd8932d7813f730920b6d561597e836fe454ccfa2edc7597da50bd150eac03",
          "converter": "canonical-example-structure@1",
          "fetched_at": "2026-09-29T21:25:55+08:00",
          "kind": "manual",
          "owner": "AIsa-team/docs",
          "path_space": "public",
          "policy_revision": "sha256:f2a32d3c8b6a20320f7d3d368aae81f74d7be58259ffc8ae0889fc986fc94bd9",
          "prior_source": {
            "content_hash": "sha256:56231e8d42282ceaae2e37ae97fe9ec5ac002a3f919601b09fed7747f3a581e9",
            "converter": "scripts/import_existing_contracts.py@1",
            "fetched_at": "2026-09-29T21:25:55+08:00",
            "kind": "manual",
            "owner": "AIsa-team/docs",
            "path_space": "public",
            "policy_revision": "sha256:e335bbe2b5a2f357a70696de3ef832699405fd43db8350724081e5a3b8bb60df",
            "refresh_policy": "manual",
            "review_period_days": 30,
            "url": "https://github.com/AIsa-team/docs/blob/7783840e4710bb00886143feab84606f8aaea67c/openapi/ahrefs.json"
          },
          "refresh_policy": "manual",
          "review_evidence": "Two target examples structured from the existing ahrefs.com description; no wire default or constraint changes.",
          "review_period_days": 30,
          "source_revision": "18f9724963df1d8c2b90819aa7a8a82ccbcfb0cd",
          "url": "https://github.com/AIsa-team/docs/blob/18f9724963df1d8c2b90819aa7a8a82ccbcfb0cd/openapi/upstream/ahrefs.json"
        },
        "x-aisa-status": "enabled",
        "x-aisa-upstream-path": "/v3/site-explorer/domain-rating",
        "x-aisa-validation": "provider",
        "x-codeSamples": [
          {
            "label": "Reference example",
            "lang": "text",
            "source": "# Fixed reference example. Playground inputs do not update this sample.\ncurl --request GET \\\n  --url 'https://api.aisa.one/apis/v1/ahrefs/site-explorer/domain-rating?date=2026-08-01&target=ahrefs.com' \\\n  --header 'Authorization: Bearer <token>'"
          }
        ]
      }
    },
    "/apis/v1/ahrefs/site-explorer/metrics": {
      "get": {
        "description": "Return core Site Explorer metrics for a target domain on a given date: organic and paid keyword counts, top-3 keyword count, organic traffic, and traffic value.  4xx/5xx are not charged.",
        "operationId": "get_ahrefs_site_metrics",
        "parameters": [
          {
            "description": "Snapshot date in `YYYY-MM-DD` format.",
            "in": "query",
            "name": "date",
            "required": true,
            "schema": {
              "example": "2026-08-01",
              "format": "date",
              "type": "string"
            }
          },
          {
            "description": "Target domain, e.g. `ahrefs.com`.",
            "in": "query",
            "name": "target",
            "required": true,
            "schema": {
              "example": "ahrefs.com",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "metrics": {
                    "org_cost": 42474500,
                    "org_keywords": 1843000,
                    "org_keywords_1_3": 412000,
                    "org_traffic": 20413900,
                    "paid_keywords": 6790
                  }
                },
                "schema": {
                  "properties": {
                    "metrics": {
                      "properties": {
                        "org_cost": {
                          "description": "Estimated organic traffic value.",
                          "type": "integer"
                        },
                        "org_keywords": {
                          "description": "Organic keyword count.",
                          "type": "integer"
                        },
                        "org_keywords_1_3": {
                          "description": "Organic keywords ranking in top 3.",
                          "type": "integer"
                        },
                        "org_traffic": {
                          "description": "Estimated monthly organic traffic.",
                          "type": "integer"
                        },
                        "paid_keywords": {
                          "description": "Paid keyword count.",
                          "type": "integer"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "Core site metrics."
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Error response; upstream passthrough responses may use provider formats"
          }
        },
        "summary": "Ahrefs Site Metrics",
        "tags": [
          "ahrefs"
        ],
        "x-aisa-capabilities": {
          "idempotency": "Idempotency-Key",
          "max_price": "X-AISA-Max-Price-USD",
          "mpp": false,
          "mpp_methods": [],
          "quote": {
            "header": "X-AISA-Cost-Mode",
            "value": "quote"
          },
          "x402": false
        },
        "x-aisa-catalog-id": "ahrefs",
        "x-aisa-category": "seo",
        "x-aisa-docs-url": "https://aisa.one/docs/api-reference/ahrefs/get_ahrefs-site-explorer-metrics",
        "x-aisa-passthrough": true,
        "x-aisa-pricing": {
          "cost_contract": "fixed_success",
          "customer_multiplier": 1.0,
          "customer_pricing": "provider_cost_multiplier",
          "default_request_estimate_usd": 0.08,
          "estimate_source": "profile_seed",
          "evidence_source": "request_snapshot"
        },
        "x-aisa-query-policy": {
          "ignore_undeclared": false,
          "request_wins": true
        },
        "x-aisa-response-source": {
          "content_hash": "sha256:fe0d175c135c9e3e65e7590f441d117ff9da32bdaf29c2e14d9c8c3452a3a49b",
          "kind": "upstream_success_contract",
          "source": {
            "content_hash": "sha256:1dbd8932d7813f730920b6d561597e836fe454ccfa2edc7597da50bd150eac03",
            "converter": "canonical-example-structure@1",
            "fetched_at": "2026-09-29T21:25:55+08:00",
            "kind": "manual",
            "owner": "AIsa-team/docs",
            "path_space": "public",
            "policy_revision": "sha256:f2a32d3c8b6a20320f7d3d368aae81f74d7be58259ffc8ae0889fc986fc94bd9",
            "prior_source": {
              "content_hash": "sha256:56231e8d42282ceaae2e37ae97fe9ec5ac002a3f919601b09fed7747f3a581e9",
              "converter": "scripts/import_existing_contracts.py@1",
              "fetched_at": "2026-09-29T21:25:55+08:00",
              "kind": "manual",
              "owner": "AIsa-team/docs",
              "path_space": "public",
              "policy_revision": "sha256:e335bbe2b5a2f357a70696de3ef832699405fd43db8350724081e5a3b8bb60df",
              "refresh_policy": "manual",
              "review_period_days": 30,
              "url": "https://github.com/AIsa-team/docs/blob/7783840e4710bb00886143feab84606f8aaea67c/openapi/ahrefs.json"
            },
            "refresh_policy": "manual",
            "review_evidence": "Two target examples structured from the existing ahrefs.com description; no wire default or constraint changes.",
            "review_period_days": 30,
            "source_revision": "18f9724963df1d8c2b90819aa7a8a82ccbcfb0cd",
            "url": "https://github.com/AIsa-team/docs/blob/18f9724963df1d8c2b90819aa7a8a82ccbcfb0cd/openapi/upstream/ahrefs.json"
          }
        },
        "x-aisa-revision": {
          "customer_pricing_ref": "86dd61e5b7a3",
          "plan_policy_version": "e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb",
          "profile_ref": "e9a58b6e53b8"
        },
        "x-aisa-runtime-operation": {
          "method": "ANY",
          "operation_id": "get_ahrefs_site_metrics",
          "path": "/apis/v1/ahrefs/site-explorer/metrics"
        },
        "x-aisa-source": {
          "content_hash": "sha256:1dbd8932d7813f730920b6d561597e836fe454ccfa2edc7597da50bd150eac03",
          "converter": "canonical-example-structure@1",
          "fetched_at": "2026-09-29T21:25:55+08:00",
          "kind": "manual",
          "owner": "AIsa-team/docs",
          "path_space": "public",
          "policy_revision": "sha256:f2a32d3c8b6a20320f7d3d368aae81f74d7be58259ffc8ae0889fc986fc94bd9",
          "prior_source": {
            "content_hash": "sha256:56231e8d42282ceaae2e37ae97fe9ec5ac002a3f919601b09fed7747f3a581e9",
            "converter": "scripts/import_existing_contracts.py@1",
            "fetched_at": "2026-09-29T21:25:55+08:00",
            "kind": "manual",
            "owner": "AIsa-team/docs",
            "path_space": "public",
            "policy_revision": "sha256:e335bbe2b5a2f357a70696de3ef832699405fd43db8350724081e5a3b8bb60df",
            "refresh_policy": "manual",
            "review_period_days": 30,
            "url": "https://github.com/AIsa-team/docs/blob/7783840e4710bb00886143feab84606f8aaea67c/openapi/ahrefs.json"
          },
          "refresh_policy": "manual",
          "review_evidence": "Two target examples structured from the existing ahrefs.com description; no wire default or constraint changes.",
          "review_period_days": 30,
          "source_revision": "18f9724963df1d8c2b90819aa7a8a82ccbcfb0cd",
          "url": "https://github.com/AIsa-team/docs/blob/18f9724963df1d8c2b90819aa7a8a82ccbcfb0cd/openapi/upstream/ahrefs.json"
        },
        "x-aisa-status": "enabled",
        "x-aisa-upstream-path": "/v3/site-explorer/metrics",
        "x-aisa-validation": "provider",
        "x-codeSamples": [
          {
            "label": "Reference example",
            "lang": "text",
            "source": "# Fixed reference example. Playground inputs do not update this sample.\ncurl --request GET \\\n  --url 'https://api.aisa.one/apis/v1/ahrefs/site-explorer/metrics?date=2026-08-01&target=ahrefs.com' \\\n  --header 'Authorization: Bearer <token>'"
          }
        ]
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ]
}
