XeoRank Business Reports API

The business-reports API from XeoRank — 12 operation(s) for business-reports.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 15

GET /sites/{site_id}/reports/branding Report Branding #
GET /sites/{site_id}/reports List Reports #
PATCH /sites/{site_id}/reports/{report_id}/presentation Update Report Presentation #
GET /sites/{site_id}/reports/{report_id}/attachments/{attachment_id} Open Report Attachment #
DELETE /sites/{site_id}/reports/{report_id} Delete Report #
GET /sites/{site_id}/reports/{report_id} Get Report #
POST /sites/{site_id}/reports/{report_id}/duplicate Duplicate Report #
POST /sites/{site_id}/reports/generate Generate Report #
GET /sites/{site_id}/reports/schedule Get Schedule #
PUT /sites/{site_id}/reports/schedule Upsert Schedule #
GET /sites/{site_id}/reports/{report_id}/export-pdf Export Report Pdf #
POST /sites/{site_id}/reports/{report_id}/export-pdf Export Displayed Report Pdf #
POST /sites/{site_id}/reports/failures Record Report Failure #
GET /sites/{site_id}/reports/{report_id}/export-doc Export Report Doc #
PATCH /sites/{site_id}/reports/{report_id}/delivery Update Report Delivery #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/xeorank-com:xeorank-com-business-reports-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

xeorank-com-business-reports-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SEO Intelligence Engine Business Reports API
  version: 0.1.0
tags:
- name: business-reports
paths:
  /sites/{site_id}/reports/branding:
    get:
      tags:
      - business-reports
      summary: Report Branding
      description: Whether this user can white-label reports (agency plan) + their org name.
      operationId: report_branding_sites__site_id__reports_branding_get
      security:
      - APIKeyHeader: []
      parameters:
      - name: site_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Site Id
      - name: email
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BrandingOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /sites/{site_id}/reports:
    get:
      tags:
      - business-reports
      summary: List Reports
      description: List business reports for a site, newest first.
      operationId: list_reports_sites__site_id__reports_get
      security:
      - APIKeyHeader: []
      parameters:
      - name: site_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Site Id
      - name: email
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          default: 20
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ReportOut'
                title: Response List Reports Sites  Site Id  Reports Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /sites/{site_id}/reports/{report_id}/presentation:
    patch:
      tags:
      - business-reports
      summary: Update Report Presentation
      description: Store report layout edits separately from verified source measurements.
      operationId: update_report_presentation_sites__site_id__reports__report_id__presentation_patch
      security:
      - APIKeyHeader: []
      parameters:
      - name: site_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Site Id
      - name: report_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Report Id
      - name: email
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReportPresentationUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReportOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /sites/{site_id}/reports/{report_id}/attachments/{attachment_id}:
    get:
      tags:
      - business-reports
      summary: Open Report Attachment
      operationId: open_report_attachment_sites__site_id__reports__report_id__attachments__attachment_id__get
      security:
      - APIKeyHeader: []
      parameters:
      - name: site_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Site Id
      - name: report_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Report Id
      - name: attachment_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Attachment Id
      - name: download
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Download
      - name: email
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /sites/{site_id}/reports/{report_id}:
    delete:
      tags:
      - business-reports
      summary: Delete Report
      operationId: delete_report_sites__site_id__reports__report_id__delete
      security:
      - APIKeyHeader: []
      parameters:
      - name: site_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Site Id
      - name: report_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Report Id
      - name: email
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - business-reports
      summary: Get Report
      description: Get a single business report by ID.
      operationId: get_report_sites__site_id__reports__report_id__get
      security:
      - APIKeyHeader: []
      parameters:
      - name: site_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Site Id
      - name: report_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Report Id
      - name: email
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReportOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /sites/{site_id}/reports/{report_id}/duplicate:
    post:
      tags:
      - business-reports
      summary: Duplicate Report
      operationId: duplicate_report_sites__site_id__reports__report_id__duplicate_post
      security:
      - APIKeyHeader: []
      parameters:
      - name: site_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Site Id
      - name: report_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Report Id
      - name: email
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReportOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /sites/{site_id}/reports/generate:
    post:
      tags:
      - business-reports
      summary: Generate Report
      description: 'Generate an on-demand business impact report.


        Aggregates data from GSC, GA4, and Shopify (when connected), then

        calls Gemini to produce a narrative summary. The finished report

        is persisted and returned.'
      operationId: generate_report_sites__site_id__reports_generate_post
      security:
      - APIKeyHeader: []
      parameters:
      - name: site_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Site Id
      - name: email
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateReportRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReportOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /sites/{site_id}/reports/schedule:
    get:
      tags:
      - business-reports
      summary: Get Schedule
      description: Get the report schedule for a site (if one exists).
      operationId: get_schedule_sites__site_id__reports_schedule_get
      security:
      - APIKeyHeader: []
      parameters:
      - name: site_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Site Id
      - name: email
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/ScheduleOut'
                - type: 'null'
                title: Response Get Schedule Sites  Site Id  Reports Schedule Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
      - business-reports
      summary: Upsert Schedule
      description: 'Create or update the report schedule for a site.


        Requires the ``scheduled_reports`` feature flag on the user''s plan.'
      operationId: upsert_schedule_sites__site_id__reports_schedule_put
      security:
      - APIKeyHeader: []
      parameters:
      - name: site_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Site Id
      - name: email
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/api__routers__business_reports__ScheduleRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScheduleOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /sites/{site_id}/reports/{report_id}/export-pdf:
    get:
      tags:
      - business-reports
      summary: Export Report Pdf
      description: 'Export a business report as a Deloitte-style PDF.


        Generates a self-contained HTML report using the monthly template

        and renders it to an A4 PDF via headless Chromium.'
      operationId: export_report_pdf_sites__site_id__reports__report_id__export_pdf_get
      security:
      - APIKeyHeader: []
      parameters:
      - name: site_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Site Id
      - name: report_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Report Id
      - name: email
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
      - name: white_label
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: White Label
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - business-reports
      summary: Export Displayed Report Pdf
      description: Download the report view's print layout as a PDF.
      operationId: export_displayed_report_pdf_sites__site_id__reports__report_id__export_pdf_post
      security:
      - APIKeyHeader: []
      parameters:
      - name: site_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Site Id
      - name: report_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Report Id
      - name: email
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PrintableReportRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /sites/{site_id}/reports/failures:
    post:
      tags:
      - business-reports
      summary: Record Report Failure
      description: Persist a scheduled generation failure so it remains visible in history.
      operationId: record_report_failure_sites__site_id__reports_failures_post
      security:
      - APIKeyHeader: []
      parameters:
      - name: site_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Site Id
      - name: email
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FailedReportRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReportOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /sites/{site_id}/reports/{report_id}/export-doc:
    get:
      tags:
      - business-reports
      summary: Export Report Doc
      description: 'Export a business report as a Google Doc in the user''s Drive.


        Uses the same styled HTML as the PDF export, uploaded to Google Drive

        which auto-converts it to Google Docs format.'
      operationId: export_report_doc_sites__site_id__reports__report_id__export_doc_get
      security:
      - APIKeyHeader: []
      parameters:
      - name: site_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Site Id
      - name: report_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Report Id
      - name: email
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
      - name: white_label
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: White Label
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExportDocResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /sites/{site_id}/reports/{report_id}/delivery:
    patch:
      tags:
      - business-reports
      summary: Update Report Delivery
      description: Record scheduled-report delivery outcome for report history.
      operationId: update_report_delivery_sites__site_id__reports__report_id__delivery_patch
      security:
      - APIKeyHeader: []
      parameters:
      - name: site_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Site Id
      - name: report_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Report Id
      - name: email
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeliveryUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReportOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ReportPresentationUpdate:
      properties:
        presentation:
          additionalProperties: true
          type: object
          title: Presentation
      type: object
      required:
      - presentation
      title: ReportPresentationUpdate
    ExportDocResponse:
      properties:
        doc_id:
          type: string
          title: Doc Id
        doc_url:
          type: string
          title: Doc Url
      type: object
      required:
      - doc_id
      - doc_url
      title: ExportDocResponse
    PrintableReportRequest:
      properties:
        html:
          type: string
          maxLength: 6000000
          minLength: 100
          title: Html
      type: object
      required:
      - html
      title: PrintableReportRequest
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    api__routers__business_reports__ScheduleRequest:
      properties:
        frequency:
          type: string
          title: Frequency
          description: weekly, monthly, or both
        is_active:
          type: boolean
          title: Is Active
          default: true
        day_of_month:
          type: integer
          maximum: 28.0
          minimum: 1.0
          title: Day Of Month
          default: 1
        recipients:
          items:
            type: string
          type: array
          maxItems: 50
          title: Recipients
        timezone:
          type: string
          maxLength: 64
          minLength: 1
          title: Timezone
          default: UTC
        brand_terms:
          items:
            type: string
          type: array
          maxItems: 25
          title: Brand Terms
      type: object
      required:
      - frequency
      title: ScheduleRequest
    GenerateReportRequest:
      properties:
        period_type:
          type: string
          title: Period Type
          description: weekly, monthly, or custom
        period_start:
          type: string
          format: date-time
          title: Period Start
        period_end:
          type: string
          format: date-time
          title: Period End
        comparison_mode:
          type: string
          title: Comparison Mode
          description: previous_period or previous_year
          default: previous_period
        brand_terms:
          items:
            type: string
          type: array
          maxItems: 25
          title: Brand Terms
        comparison_start:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Comparison Start
        comparison_end:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Comparison End
        comparison_enabled:
          type: boolean
          title: Comparison Enabled
          default: true
        data_only:
          type: boolean
          title: Data Only
          default: false
      type: object
      required:
      - period_type
      - period_start
      - period_end
      title: GenerateReportRequest
    ScheduleOut:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        site_id:
          type: string
          format: uuid
          title: Site Id
        frequency:
          type: string
          title: Frequency
        is_active:
          type: boolean
          title: Is Active
        day_of_month:
          anyOf:
          - type: integer
          - type: 'null'
          title: Day Of Month
        recipients:
          anyOf:
          - items: {}
            type: array
          - type: 'null'
          title: Recipients
        timezone:
          type: string
          title: Timezone
          default: UTC
        brand_terms:
          anyOf:
          - items: {}
            type: array
          - type: 'null'
          title: Brand Terms
        last_weekly_run_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Weekly Run At
        last_monthly_run_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Monthly Run At
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
      - id
      - site_id
      - frequency
      - is_active
      - created_at
      title: ScheduleOut
    FailedReportRequest:
      properties:
        period_type:
          type: string
          title: Period Type
        period_start:
          type: string
          format: date-time
          title: Period Start
        period_end:
          type: string
          format: date-time
          title: Period End
        error:
          type: string
          maxLength: 2000
          minLength: 1
          title: Error
        timezone:
          type: string
          maxLength: 64
          minLength: 1
          title: Timezone
          default: UTC
      type: object
      required:
      - period_type
      - period_start
      - period_end
      - error
      title: FailedReportRequest
    DeliveryUpdate:
      properties:
        status:
          type: string
          title: Status
        error:
          anyOf:
          - type: string
          - type: 'null'
          title: Error
      type: object
      required:
      - status
      title: DeliveryUpdate
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ReportOut:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        site_id:
          type: string
          format: uuid
          title: Site Id
        period_type:
          type: string
          title: Period Type
        period_start:
          type: string
          format: date-time
          title: Period Start
        period_end:
          type: string
          format: date-time
          title: Period End
        status:
          type: string
          title: Status
        gsc_data:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Gsc Data
        ga_data:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Ga Data
        shopify_data:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Shopify Data
        keyword_funnel:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Keyword Funnel
        traffic_insights:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Traffic Insights
        report_metadata:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Report Metadata
        source_status:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Source Status
        narrative:
          anyOf:
          - type: string
          - type: 'null'
          title: Narrative
        highlights:
          anyOf:
          - items: {}
            type: array
          - type: 'null'
          title: Highlights
        recommendations:
          anyOf:
          - items: {}
            type: array
          - type: 'null'
          title: Recommendations
        email_sent_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Email Sent At
        delivery_status:
          anyOf:
          - type: string
          - type: 'null'
          title: Delivery Status
        delivery_error:
          anyOf:
          - type: string
          - type: 'null'
          title: Delivery Error
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
      - id
      - site_id
      - period_type
      - period_start
      - period_end
      - status
      - created_at
      title: ReportOut
    BrandingOut:
      properties:
        can_white_label:
          type: boolean
          title: Can White Label
        org_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Org Name
      type: object
      required:
      - can_white_label
      title: BrandingOut
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-Agent-Key