{
  "openapi": "3.1.0",
  "info": {
    "title": "Northlab Research agent API",
    "version": "2026-11-17",
    "description": "Free AI crawler / agent checkout check, machine-readable offers, checkout hand-off to Stripe, and JSON delivery after payment. Prices are in EUR with VAT included; see /offers.json.",
    "contact": {
      "name": "Northlab Research",
      "email": "northlab.research@outlook.com",
      "url": "https://northlab-check.pages.dev/"
    }
  },
  "servers": [
    {
      "url": "https://northlab-check.pages.dev"
    }
  ],
  "externalDocs": {
    "description": "Agent guide",
    "url": "https://northlab-check.pages.dev/llms.txt"
  },
  "paths": {
    "/api/check": {
      "get": {
        "operationId": "runFreeCheck",
        "summary": "Free check: AI crawler access (robots.txt, llms.txt, sitemap, CDN/WAF blocks) plus six agent checkout tests.",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Public http(s) site address."
          }
        ],
        "responses": {
          "200": {
            "description": "Check result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit: 10 checks per hour per client.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/offers.json": {
      "get": {
        "operationId": "listOffers",
        "summary": "All paid offers: name, EUR price with VAT, what is delivered, checkout fields, delivery URLs.",
        "responses": {
          "200": {
            "description": "Offer catalog.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/report": {
      "get": {
        "operationId": "getReportOffer",
        "summary": "Agent access report (€19) offer for one shop. Answers HTTP 402 with the offer and Payment Link.",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "402": {
            "description": "Payment required: machine-readable offer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/report/go": {
      "post": {
        "operationId": "checkoutReport",
        "summary": "Start checkout for the Agent access report (€19).",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "required": [
                  "url",
                  "wd-start",
                  "wd-ack"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "description": "Site or shop address the purchase is for."
                  },
                  "wd-start": {
                    "type": "string",
                    "enum": [
                      "1"
                    ],
                    "description": "Buyer expressly requests immediate delivery before the 14-day withdrawal period ends. Ask the buyer; never set it for them."
                  },
                  "wd-ack": {
                    "type": "string",
                    "enum": [
                      "1"
                    ],
                    "description": "Buyer acknowledges losing the 14-day withdrawal right once delivered. Ask the buyer; never set it for them."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "303": {
            "description": "Redirect to Stripe Checkout (Payment Link) for this offer. Follow it and pay."
          },
          "400": {
            "description": "Site address or a withdrawal confirmation missing (HTML order form returned)."
          }
        }
      }
    },
    "/fix-pack/go": {
      "post": {
        "operationId": "checkoutFixPack",
        "summary": "Start checkout for the AI crawler fix pack (€29).",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "required": [
                  "url",
                  "wd-start",
                  "wd-ack"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "description": "Site or shop address the purchase is for."
                  },
                  "wd-start": {
                    "type": "string",
                    "enum": [
                      "1"
                    ],
                    "description": "Buyer expressly requests immediate delivery before the 14-day withdrawal period ends. Ask the buyer; never set it for them."
                  },
                  "wd-ack": {
                    "type": "string",
                    "enum": [
                      "1"
                    ],
                    "description": "Buyer acknowledges losing the 14-day withdrawal right once delivered. Ask the buyer; never set it for them."
                  },
                  "lang": {
                    "type": "string",
                    "enum": [
                      "en",
                      "es"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "303": {
            "description": "Redirect to Stripe Checkout (Payment Link) for this offer. Follow it and pay."
          },
          "400": {
            "description": "Site address or a withdrawal confirmation missing (HTML order form returned)."
          }
        }
      }
    },
    "/agent-checkout/go": {
      "post": {
        "operationId": "checkoutAgentCheckoutFix",
        "summary": "Start checkout for the Agent checkout fix: tier diy = fix report (€49), dfy = fixed with you (€149).",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "required": [
                  "url",
                  "wd-start",
                  "wd-ack",
                  "tier"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "description": "Site or shop address the purchase is for."
                  },
                  "wd-start": {
                    "type": "string",
                    "enum": [
                      "1"
                    ],
                    "description": "Buyer expressly requests immediate delivery before the 14-day withdrawal period ends. Ask the buyer; never set it for them."
                  },
                  "wd-ack": {
                    "type": "string",
                    "enum": [
                      "1"
                    ],
                    "description": "Buyer acknowledges losing the 14-day withdrawal right once delivered. Ask the buyer; never set it for them."
                  },
                  "tier": {
                    "type": "string",
                    "enum": [
                      "diy",
                      "dfy"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "303": {
            "description": "Redirect to Stripe Checkout (Payment Link) for this offer. Follow it and pay."
          },
          "400": {
            "description": "Site address or a withdrawal confirmation missing (HTML order form returned)."
          }
        }
      }
    },
    "/report/delivery.json": {
      "get": {
        "operationId": "getReportDelivery",
        "summary": "Agent access report delivery after payment.",
        "parameters": [
          {
            "name": "session_id",
            "in": "query",
            "required": true,
            "description": "Stripe Checkout Session id from the payment redirect ({CHECKOUT_SESSION_ID}).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The dated report as JSON (payment verified, withdrawal confirmations recorded).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment not verified for this offer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Paid, but the buyer's withdrawal confirmations are missing. Open human_url to give them.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/fix-pack/delivery.json": {
      "get": {
        "operationId": "getFixPackDelivery",
        "summary": "AI crawler fix pack delivery after payment.",
        "parameters": [
          {
            "name": "session_id",
            "in": "query",
            "required": true,
            "description": "Stripe Checkout Session id from the payment redirect ({CHECKOUT_SESSION_ID}).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "robots.txt, llms.txt and hosting steps as JSON (payment verified, withdrawal confirmations recorded).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment not verified for this offer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Paid, but the buyer's withdrawal confirmations are missing. Open human_url to give them.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/agent-checkout/delivery.json": {
      "get": {
        "operationId": "getAgentCheckoutDelivery",
        "summary": "Agent checkout fix report delivery after payment.",
        "parameters": [
          {
            "name": "session_id",
            "in": "query",
            "required": true,
            "description": "Stripe Checkout Session id from the payment redirect ({CHECKOUT_SESSION_ID}).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The fix report as JSON (payment verified, withdrawal confirmations recorded).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment not verified for this offer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Paid, but the buyer's withdrawal confirmations are missing. Open human_url to give them.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/lemon-squeezy": {
      "get": {
        "operationId": "runLemonSqueezyCheck",
        "summary": "Free Lemon Squeezy migration checker: what would break on Stripe Managed Payments, Polar, Dodo, Paddle or Creem.",
        "parameters": [
          {
            "name": "keys",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "yes",
                "no"
              ]
            },
            "description": "Whether the store uses this Lemon Squeezy feature."
          },
          {
            "name": "files",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "yes",
                "no"
              ]
            },
            "description": "Whether the store uses this Lemon Squeezy feature."
          },
          {
            "name": "subs",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "yes",
                "no"
              ]
            },
            "description": "Whether the store uses this Lemon Squeezy feature."
          },
          {
            "name": "affiliates",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "yes",
                "no"
              ]
            },
            "description": "Whether the store uses this Lemon Squeezy feature."
          },
          {
            "name": "paypal",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "yes",
                "no"
              ]
            },
            "description": "Whether the store uses this Lemon Squeezy feature."
          },
          {
            "name": "api",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "yes",
                "no"
              ]
            },
            "description": "Whether the store uses this Lemon Squeezy feature."
          },
          {
            "name": "webhooks",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "yes",
                "no"
              ]
            },
            "description": "Whether the store uses this Lemon Squeezy feature."
          }
        ],
        "responses": {
          "200": {
            "description": "A list, per destination, of what would break, with source URLs.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/lemon-squeezy/go": {
      "post": {
        "operationId": "checkoutLsMigration",
        "summary": "Start checkout for the Lemon Squeezy migration, done for you (€149).",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "required": [
                  "url",
                  "wd-start",
                  "wd-ack"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "description": "Site or shop address the purchase is for."
                  },
                  "wd-start": {
                    "type": "string",
                    "enum": [
                      "1"
                    ],
                    "description": "Buyer expressly requests immediate delivery before the 14-day withdrawal period ends. Ask the buyer; never set it for them."
                  },
                  "wd-ack": {
                    "type": "string",
                    "enum": [
                      "1"
                    ],
                    "description": "Buyer acknowledges losing the 14-day withdrawal right once delivered. Ask the buyer; never set it for them."
                  },
                  "lang": {
                    "type": "string",
                    "enum": [
                      "en",
                      "es"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "303": {
            "description": "Redirect to Stripe Checkout (Payment Link) for this offer. Follow it and pay."
          },
          "400": {
            "description": "Site address or a withdrawal confirmation missing (HTML order form returned)."
          }
        }
      }
    },
    "/lemon-squeezy/delivery.json": {
      "get": {
        "operationId": "getLsMigrationDelivery",
        "summary": "Confirmation of the Lemon Squeezy migration order after payment.",
        "parameters": [
          {
            "name": "session_id",
            "in": "query",
            "required": true,
            "description": "Stripe Checkout Session id from the payment redirect ({CHECKOUT_SESSION_ID}).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Order confirmation; first email within one business day as JSON (payment verified, withdrawal confirmations recorded).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment not verified for this offer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Paid, but the buyer's withdrawal confirmations are missing. Open human_url to give them.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/report/sample.json": {
      "get": {
        "operationId": "getSampleReport",
        "summary": "A complete sample Agent access report from a real public scan.",
        "responses": {
          "200": {
            "description": "Sample report.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          }
        }
      }
    }
  }
}