Référence API

API API de contrôle du rendu JavaScript SEO

Comparez le HTML brut et rendu pour voir quels signaux SEO dépendent de JavaScript. Utilisez cette référence pour choisir le bon endpoint et voir exactement ce qu'il renvoie.

Opérations

GET /v1/onpage/render-diff Voir la référence API

GET /v1/onpage/render-diff

Opération: getRenderDiffCrédits et authentification: 7Authentification requise
GET/v1/onpage/render-diffCrédits: 7

Paramètres de requête

ParamètreTyperequis
urlstringrequis

Champs de réponse

ChampType
urlstring
final_urlstring
statusstring
reasonstring | null
checked_atstring
rawobject
raw.fetchobject
raw.fetch.http_statusinteger | null
raw.fetch.final_urlstring
raw.fetch.content_typestring | null
raw.fetch.bytesinteger
raw.fetch.truncatedboolean
raw.fetch.redirect_countinteger
raw.fetch.duration_msinteger
raw.fetch.renderedboolean
raw.signalsobject
raw.signals.titlestring | null
raw.signals.meta_descriptionstring | null
raw.signals.canonicalstring | null
raw.signals.robotsstring | null
raw.signals.noindexboolean
raw.signals.h1[]string[]
raw.signals.word_countinteger
raw.signals.internal_linksinteger
raw.signals.external_linksinteger
raw.signals.structured_data_types[]string[]
raw.signals.hreflang_countinteger
raw.signals.langstring | null
renderedobject
rendered.fetchobject
rendered.fetch.http_statusinteger | null
rendered.fetch.final_urlstring
rendered.fetch.content_typestring | null
rendered.fetch.bytesinteger
rendered.fetch.truncatedboolean
rendered.fetch.redirect_countinteger
rendered.fetch.duration_msinteger
rendered.fetch.renderedboolean
rendered.signalsobject
rendered.signals.titlestring | null
rendered.signals.meta_descriptionstring | null
rendered.signals.canonicalstring | null
rendered.signals.robotsstring | null
rendered.signals.noindexboolean
rendered.signals.h1[]string[]
rendered.signals.word_countinteger
rendered.signals.internal_linksinteger
rendered.signals.external_linksinteger
rendered.signals.structured_data_types[]string[]
rendered.signals.hreflang_countinteger
rendered.signals.langstring | null
js_dependencestring | null
rendered_word_sharenumber | null
differences[]object[]
differences[]object
differences[].fieldstring
differences[].changestring
differences[].impactstring
differences[].rawunknown
differences[].renderedunknown
issues[]string[]

Exemple de requête

curl -H "X-API-Key: $DOMSCAN_API_KEY" "https://domscan.net/v1/onpage/render-diff?url=https%3A%2F%2Fexample.com"
const response = await fetch("https://domscan.net/v1/onpage/render-diff?url=https%3A%2F%2Fexample.com", {
  headers: { "X-API-Key": process.env.DOMSCAN_API_KEY },
});
const data = await response.json();
console.log(data);
import os
import requests

response = requests.get(
    "https://domscan.net/v1/onpage/render-diff?url=https%3A%2F%2Fexample.com",
    headers={"X-API-Key": os.environ["DOMSCAN_API_KEY"]},
)
print(response.json())
package main

import (
	"fmt"
	"io"
	"net/http"
	"os"
)

func main() {
	req, err := http.NewRequest(http.MethodGet, "https://domscan.net/v1/onpage/render-diff?url=https%3A%2F%2Fexample.com", nil)
	if err != nil {
		panic(err)
	}
	req.Header.Set("X-API-Key", os.Getenv("DOMSCAN_API_KEY"))

	resp, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()

	data, err := io.ReadAll(resp.Body)
	if err != nil {
		panic(err)
	}
	fmt.Println(resp.Status, string(data))
}
require "json"
require "net/http"

uri = URI("https://domscan.net/v1/onpage/render-diff?url=https%3A%2F%2Fexample.com")
request = Net::HTTP::Get.new(uri)
request["X-API-Key"] = ENV.fetch("DOMSCAN_API_KEY")

response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|
  http.request(request)
end
puts JSON.pretty_generate(JSON.parse(response.body))

Exemple de réponse

{
  "url": "https://example.com/shoes/trail-runner",
  "final_url": "https://example.com/shoes/trail-runner",
  "status": "ok",
  "reason": null,
  "checked_at": "2026-10-13T12:00:00.000Z",
  "raw": {
    "fetch": {
      "http_status": 200,
      "final_url": "https://example.com/shoes/trail-runner",
      "content_type": "text/html",
      "bytes": 183,
      "truncated": false,
      "redirect_count": 0,
      "duration_ms": 380,
      "rendered": false
    },
    "signals": {
      "title": "Example Outdoor",
      "meta_description": null,
      "canonical": null,
      "robots": "noindex",
      "noindex": true,
      "h1": [],
      "word_count": 0,
      "internal_links": 0,
      "external_links": 0,
      "structured_data_types": [],
      "hreflang_count": 0,
      "lang": "en"
    }
  },
  "rendered": {
    "fetch": {
      "http_status": 200,
      "final_url": "https://example.com/shoes/trail-runner",
      "content_type": "text/html",
      "bytes": 3535,
      "truncated": false,
      "redirect_count": 0,
      "duration_ms": 4210,
      "rendered": true
    },
    "signals": {
      "title": "Trail Running Shoes for Rocky Terrain | Example Outdoor",
      "meta_description": "Lightweight trail running shoes with a grippy outsole, rock plate and breathable mesh. Free returns within 30 days on every pair.",
      "canonical": "https://example.com/shoes/trail-runner",
      "robots": "index, follow",
      "noindex": false,
      "h1": [
        "Trail Running Shoes for Rocky Terrain"
      ],
      "word_count": 122,
      "internal_links": 5,
      "external_links": 2,
      "structured_data_types": [
        "AggregateRating",
        "Brand",
        "BreadcrumbList",
        "ListItem",
        "Offer",
        "Product",
        "Rating",
        "Review"
      ],
      "hreflang_count": 3,
      "lang": "en"
    }
  },
  "js_dependence": "high",
  "rendered_word_share": 1,
  "differences": [
    {
      "field": "title",
      "change": "changed_by_js",
      "impact": "high",
      "raw": "Example Outdoor",
      "rendered": "Trail Running Shoes for Rocky Terrain | Example Outdoor"
    },
    {
      "field": "meta_description",
      "change": "added_by_js",
      "impact": "medium",
      "raw": null,
      "rendered": "Lightweight trail running shoes with a grippy outsole, rock plate and breathable mesh. Free returns within 30 days on every pair."
    },
    {
      "field": "canonical",
      "change": "added_by_js",
      "impact": "high",
      "raw": null,
      "rendered": "https://example.com/shoes/trail-runner"
    },
    {
      "field": "robots",
      "change": "changed_by_js",
      "impact": "high",
      "raw": "noindex",
      "rendered": "index, follow"
    },
    {
      "field": "noindex",
      "change": "removed_by_js",
      "impact": "high",
      "raw": true,
      "rendered": false
    }
  ],
  "issues": [
    "robots_changed_by_js",
    "canonical_changed_by_js",
    "h1_requires_js",
    "content_requires_js",
    "links_require_js",
    "structured_data_changed_by_js"
  ]
}

Codes de statut HTTP

  • 200 OK
  • 400 Requête incorrecte
  • 401 Non autorisé
  • 402 Paiement requis
  • 429 Trop de requêtes

Ressources de référence