All Tools

  1. SEORCH
  2. SEO API
  3. Source Comparison API

Source Comparison API

Request

Fetches a page with two user agents and shows the differences, for example between Googlebot and Chrome.

https://seorch.net/api/compare-source/?key=YOUR_KEY&url=https://example.com&ua1=gbotdesktopstatic&ua2=chromestatic

Parameters

ParametersRequiredMeaning
keyyesYour API key, alternatively in the X-API-Key header
urlyesThe URL to check
ua1noFirst user agent, default gbotdesktopstatic
ua2noSecond user agent, default chromestatic. Possible: gbotdesktopstatic, gbotdesktopjs, gbotmobilestatic, gbotmobilejs, chromestatic, chromejs

Response

FieldMeaning
identical_source, identical_http_headersWhether source code and HTTP headers are identical
different_fieldsWhich values differ
source_a, source_bFor each fetch status, title, description, robots, canonical, words, links, sentences and HTTP headers
links_only_in_a, sentences_only_in_aLinks and sentences found in only one fetch, up to 200 each
Sample response, shortened
{
  "api_version": 1,
  "url": "https://www.getmad.de/",
  "identical_source": true,
  "identical_http_headers": false,
  "different_fields": [],
  "source_a": {
    "user_agent": "gbotdesktopstatic",
    "label": "Google Bot Desktop Static",
    "url_effective": "https://www.getmad.de/",
    "http_status": 200,
    "error": null,
    "filesize_kb": 60,
    "title": " Dividenden Blog – getmad \n\t",
    "meta_description": "",
    "meta_robots": "",
    "canonical": "",
    "hreflang_tags": 0,
    "html_elements": 526,
    "links": 165,
    "words": 2699,
    "sentences": 154,
    "http_headers": {
      "Status": "HTTP/2 200"
    }
  },
  "source_b": {
    "…": "…"
  },
  "links_only_in_a": [],
  "links_only_in_b": [],
  "sentences_only_in_a": [],
  "sentences_only_in_b": []
}

Errors

Errors are returned as JSON with a fixed code. All APIs use missing_key and invalid_key (401), rate_limited (429) and missing or invalid parameters (400). Additionally for this API: url_not_allowed, url_unreachable.

Limits

Each key allows 10 requests per minute and 500 per day. Higher limits are available on request.