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
| Parameters | Required | Meaning |
|---|---|---|
key | yes | Your API key, alternatively in the X-API-Key header |
url | yes | The URL to check |
ua1 | no | First user agent, default gbotdesktopstatic |
ua2 | no | Second user agent, default chromestatic. Possible: gbotdesktopstatic, gbotdesktopjs, gbotmobilestatic, gbotmobilejs, chromestatic, chromejs |
Response
| Field | Meaning |
|---|---|
identical_source, identical_http_headers | Whether source code and HTTP headers are identical |
different_fields | Which values differ |
source_a, source_b | For each fetch status, title, description, robots, canonical, words, links, sentences and HTTP headers |
links_only_in_a, sentences_only_in_a | Links and sentences found in only one fetch, up to 200 each |
{
"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.
Contents