Skip to main content
Every report takes a site_id. List the sites your key can see and pick one by domain.

How this example works

  1. One call lists every site in the organization. No pagination.
  2. Match on domain, which is unique and stable. Names can be edited in the dashboard.
  3. Save the ID as RANKRAFT_SITE_ID; it never changes.

What comes back

Reports for a site that has not finished setup in the dashboard return 409 site_not_set_up. Finish onboarding first.