Quelltext-Vergleich API
Aufruf
Ruft eine Seite mit zwei User Agents ab und zeigt die Unterschiede, zum Beispiel zwischen Googlebot und Chrome.
https://seorch.de/api/compare-source/?key=DEIN_KEY&url=https://example.com&ua1=gbotdesktopstatic&ua2=chromestatic
Parameter
| Parameter | Pflicht | Bedeutung |
|---|---|---|
key | ja | Dein API Key, alternativ im Header X-API-Key |
url | ja | Die zu prüfende URL |
ua1 | nein | Erster User Agent, Standard gbotdesktopstatic |
ua2 | nein | Zweiter User Agent, Standard chromestatic. Möglich: gbotdesktopstatic, gbotdesktopjs, gbotmobilestatic, gbotmobilejs, chromestatic, chromejs |
Antwort
| Feld | Bedeutung |
|---|---|
identical_source, identical_http_headers | Ob Quelltext und HTTP-Header gleich sind |
different_fields | Welche Werte sich unterscheiden |
source_a, source_b | Je Abruf Status, Title, Description, Robots, Canonical, Wörter, Links, Sätze und HTTP-Header |
links_only_in_a, sentences_only_in_a | Links und Sätze, die nur in einem Abruf vorkommen, je bis zu 200 |
{
"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": []
}
Fehler
Fehler kommen als JSON mit festem Code. Für alle APIs gelten missing_key und invalid_key (401), rate_limited (429) und fehlende oder ungültige Parameter (400). Außerdem bei dieser API: url_not_allowed, url_unreachable.
Limits
Pro Key gelten 10 Anfragen pro Minute und 500 pro Tag. Höhere Limits sind auf Anfrage möglich.