온페이지 SEO 페이지 진단 API
URL 하나의 온페이지 SEO 감사 결과를 반환합니다. 제목, 메타, 제목 태그 수, 온페이지 점수, 점검 항목, 페이지 타이밍이 포함됩니다.
GET /v1/on_page/page온페이지 SEO 페이지 진단 API는 언제 쓰나요
사이트 전체를 크롤링하지 않고 공개 URL 하나를 한 번에 점검할 때 사용하세요.
API 레퍼런스 영문 원문 보기
Returns a technical on-page audit for one URL: title, meta, heading counts, on-page score, checks (HTTPS, canonical, broken links), and page timing. One credit per call.
95개 플랫폼을 하나의 API로 제공합니다
페이지 진단 API로 무엇을 할 수 있을까요
페이지 진단 엔드포인트가 통합 스키마와 계산 필드를 담은 온페이지 SEO 데이터를 한 번의 요청으로 보내드려요. 스크래핑 인프라를 직접 만들거나 유지할 필요가 없어요.
요청 예시
# GET /v1/on_page/page: 1 credit per call. Cache hits are free and failed calls are refunded.
# Check the price first for 0 credits: add dry_run=1 to the query. Nothing is fetched or charged.
# --max-time 60: the API's own time limit for this endpoint.
# --retry 3: retries timeouts, 429 and 5xx, honoring Retry-After.
# -o response.json keeps only the final attempt's body.
# One Idempotency-Key per request, reused on every retry, so a retried call is never charged twice.
IDEMPOTENCY_KEY=$(od -An -N16 -tx1 /dev/urandom | tr -d ' \n')
curl -sS --max-time 60 --retry 3 -o response.json \
-H "x-api-key: YOUR_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
"https://www.socialcrawl.dev/v1/on_page/page?url=https%3A%2F%2Fwww.socialcrawl.dev%2F" && cat response.json# GET /v1/on_page/page: 1 credit per call. Cache hits are free and failed calls are refunded.
# Check the price first for 0 credits: add dry_run=1 to the query. Nothing is fetched or charged.
import os
import random
import time
import uuid
import requests
API_KEY = os.environ.get("SOCIALCRAWL_API_KEY", "YOUR_API_KEY")
TIMEOUT_S = 60 # the API's own time limit for this endpoint.
MAX_RETRIES = 3
URL = "https://www.socialcrawl.dev/v1/on_page/page"
def backoff(attempt):
# Exponential backoff with jitter: about 1 s, 2 s, then 4 s.
return 2 ** attempt * (0.5 + random.random() / 2)
def socialcrawl(params):
# One Idempotency-Key per request, reused on every retry, so a retried call is never charged twice.
idempotency_key = str(uuid.uuid4())
for attempt in range(MAX_RETRIES + 1):
try:
res = requests.get(
URL,
params=params,
headers={"x-api-key": API_KEY, "Idempotency-Key": idempotency_key},
timeout=TIMEOUT_S,
)
body = res.json()
except (requests.RequestException, ValueError):
# A timeout, a dropped connection or a non-JSON gateway page: retry with the same key.
if attempt == MAX_RETRIES:
raise
time.sleep(backoff(attempt))
continue
if body["success"]:
return body
error = body["error"]
# Branch on error["type"], never on the message text.
if error["type"] == "RESOURCE_NOT_FOUND":
return None # refunded: nothing to read
retry_after = res.headers.get("Retry-After")
# SERVICE_UNAVAILABLE without Retry-After is a withdrawn endpoint: permanent.
permanent = error["type"] == "SERVICE_UNAVAILABLE" and retry_after is None
if not error.get("retryable") or permanent or attempt == MAX_RETRIES:
raise RuntimeError(f"{error['type']}: {error['message']} (request_id {body['request_id']})")
# Retry-After (seconds) wins; otherwise back off.
time.sleep(float(retry_after) if retry_after else backoff(attempt))
params = {
"url": "https://www.socialcrawl.dev/",
}
body = socialcrawl(params)
if body is not None:
print(body["data"])// GET /v1/on_page/page: 1 credit per call. Cache hits are free and failed calls are refunded.
// Check the price first for 0 credits: add dry_run=1 to the query. Nothing is fetched or charged.
const API_KEY = process.env.SOCIALCRAWL_API_KEY ?? "YOUR_API_KEY";
const TIMEOUT_MS = 60_000; // the API's own time limit for this endpoint.
const MAX_RETRIES = 3;
type Page = { next_cursor: string | null; has_more: boolean };
type SocialCrawlResponse =
| { success: true; data: any; pagination?: Page; credits_used: number; request_id: string }
| { success: false; error: { type: string; message: string; retryable: boolean }; request_id: string };
const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
// Exponential backoff with jitter: about 1 s, 2 s, then 4 s.
const backoffMs = (attempt: number) => 2 ** attempt * 1000 * (0.5 + Math.random() / 2);
async function socialcrawl(url: URL) {
// One Idempotency-Key per request, reused on every retry, so a retried call is never charged twice.
const idempotencyKey = crypto.randomUUID();
for (let attempt = 0; ; attempt++) {
let res: Response;
let body: SocialCrawlResponse;
try {
res = await fetch(url, {
headers: {
"x-api-key": API_KEY,
"Idempotency-Key": idempotencyKey,
},
signal: AbortSignal.timeout(TIMEOUT_MS),
});
body = (await res.json()) as SocialCrawlResponse;
} catch (error) {
// A timeout, a dropped connection or a non-JSON gateway page: retry with the same key.
if (attempt >= MAX_RETRIES) throw error;
await sleep(backoffMs(attempt));
continue;
}
if (body.success) return body;
// Branch on error.type, never on the message text.
if (body.error.type === "RESOURCE_NOT_FOUND") return null; // refunded: nothing to read
const retryAfter = res.headers.get("Retry-After");
// SERVICE_UNAVAILABLE without Retry-After is a withdrawn endpoint: permanent.
const permanent = body.error.type === "SERVICE_UNAVAILABLE" && retryAfter === null;
if (!body.error.retryable || permanent || attempt >= MAX_RETRIES) {
throw new Error(`${body.error.type}: ${body.error.message} (request_id ${body.request_id})`);
}
// Retry-After (seconds) wins; otherwise back off.
await sleep(retryAfter ? Number(retryAfter) * 1000 : backoffMs(attempt));
}
}
const url = new URL("https://www.socialcrawl.dev/v1/on_page/page");
url.searchParams.set("url", "https://www.socialcrawl.dev/");
const body = await socialcrawl(url);
if (body) console.log(body.data);Call GET https://www.socialcrawl.dev/v1/on_page/page from this project.
Request:
- Query parameters:
- url: https://www.socialcrawl.dev/
- Header x-api-key: read the key from the SOCIALCRAWL_API_KEY environment variable. Never hard-code it, commit it or put it in a URL.
- Header Idempotency-Key: a fresh UUID per request, reused on every retry of that request, so a retried call is never charged twice.
- Client timeout: 60 seconds per attempt (the API's own time limit for this endpoint).
Price: 1 credit per call. Cache hits are free and failed calls are refunded. Check the price first for 0 credits: add dry_run=1 to the query. Nothing is fetched or charged.
Response:
- Success: { success: true, data, credits_used, credits_remaining, request_id, cached }.
- Failure: { success: false, error: { type, message, retryable }, request_id }. Branch on error.type, never on the message text.
- RESOURCE_NOT_FOUND means the target does not exist. It is refunded, so treat it as an empty result.
- Retry only when error.retryable is true, at most 3 times: wait Retry-After seconds when the header is present, otherwise back off exponentially with jitter. A SERVICE_UNAVAILABLE without Retry-After is a withdrawn endpoint, so do not retry it. Retry a timed-out attempt with the same Idempotency-Key.
Before writing code, read this endpoint's live contract (0 credits):
GET https://www.socialcrawl.dev/v1/utility/endpoint?id=on_page/page파라미터
| 파라미터 | 필수 | 설명 |
|---|---|---|
| url | 예 | Absolute page URL to audit, including https://. |
| enable_javascript | 아니오 | Set true to execute JavaScript while loading the page. Default false. |
온페이지 SEO 페이지 진단 API는 무엇을 돌려주나요
모든 응답은 하나의 통합 스키마를 따라요. 크레딧을 쓰기 전에 어떤 필드가 돌아오는지, 실제 응답 본문 그대로 확인해 보세요.
응답 예시 보기
{
"success": true,
"platform": "on_page",
"endpoint": "/v1/on_page/page",
"data": {
"resource_type": "html",
"status_code": 200,
"location": null,
"url": "https://www.socialcrawl.dev/",
"meta": {
"title": "Social Media Scraper API: 67 Platforms | SocialCrawl",
"charset": 65001,
"follow": true,
"generator": null,
"htags": {
"h3": [
"Solutions",
"Tools"
],
"h1": [
"One scraper API for every social platform"
],
"h2": [
"Build with AI",
"The unified social media scraping API for developers"
]
},
"description": "The social media scraper API: one schema, 631 endpoints, 67 platforms. MCP-ready, no compute units, no subscriptions. Start with 100 free credits, no card.",
"favicon": "https://www.socialcrawl.dev/favicon.ico?favicon.36rp_lf50_-9y.ico",
"meta_keywords": "social media scraper,social media API,social media scraping API,scrape social media data,social media data API,unified social media API,tiktok scraper API,instagram scraper API,social media data extraction,social media scraper API",
"canonical": "https://www.socialcrawl.dev/",
"internal_links_count": 89,
"external_links_count": 11,
"inbound_links_count": 0,
"images_count": 49,
"images_size": 0,
"scripts_count": 54,
"scripts_size": 0,
"stylesheets_count": 0,
"stylesheets_size": 0,
"title_length": 52,
"description_length": 155,
"render_blocking_scripts_count": 1,
"render_blocking_stylesheets_count": 0,
"cumulative_layout_shift": 0,
"meta_title": null,
"content": {
"plain_text_size": 11551,
"plain_text_rate": 0.00339632006031107,
"plain_text_word_count": 1864,
"automated_readability_index": 9.88593027150753,
"coleman_liau_readability_index": 11.47093362115488,
"dale_chall_readability_index": 9.398847192809423,
"flesch_kincaid_readability_index": 52.741162816122966,
"smog_readability_index": 11.173244422047542,
"description_to_content_consistency": 0.95652174949646,
"title_to_content_consistency": 1,
"meta_keywords_to_content_consistency": 0.9090909361839294
},
"deprecated_tags": null,
"duplicate_meta_tags": [
"theme-color"
],
"spell": null,
"social_media_tags": {
"og:title": "Social Media Scraper API: 67 Platforms",
"og:description": "The social media scraper API: one schema, 631 endpoints, 67 platforms. MCP-ready, no compute units, no subscriptions. Start with 100 free credits, no card.",
"og:url": "https://www.socialcrawl.dev",
"og:site_name": "SocialCrawl",
"og:image": "https://www.socialcrawl.dev/opengraph-image.png",
"og:image:width": "1200",
"og:image:height": "630",
"og:image:alt": "SocialCrawl",
"og:type": "website",
"twitter:card": "summary_large_image",
"twitter:title": "Social Media Scraper API: 67 Platforms",
"twitter:description": "The social media scraper API: one schema, 631 endpoints, 67 platforms. MCP-ready, no compute units, no subscriptions. Start with 100 free credits, no card.",
"twitter:image": "https://www.socialcrawl.dev/opengraph-image.png",
"twitter:image:alt": "SocialCrawl",
"twitter:image:width": "1200",
"twitter:image:height": "630"
}
},
"page_timing": {
"time_to_interactive": 234,
"dom_complete": 234,
"largest_contentful_paint": 0,
"first_input_delay": 0,
"connection_time": 7,
"time_to_secure_connection": 28,
"request_sent_time": 0,
"waiting_time": 0,
"download_time": 199,
"duration_time": 234,
"fetch_start": 0,
"fetch_end": 234
},
"onpage_score": 91.59,
"total_dom_size": 3401689,
"custom_js_response": null,
"custom_js_client_exception": null,
"resource_errors": {
"errors": [
{
"line": 30,
"column": 28986,
"message": "The closing tag and the currently open tag do not match.",
"status_code": 501
}
],
"warnings": [
{
"line": 1,
"column": 232,
"message": "Has node with more than 60 childs.",
"status_code": 1
},
{
"line": 0,
"column": 0,
"message": "Has more that 1500 nodes.",
"status_code": 2
}
]
},
"broken_resources": false,
"broken_links": false,
"duplicate_title": false,
"duplicate_description": false,
"duplicate_content": false,
"click_depth": 0,
"size": 3401689,
"encoded_size": 0,
"total_transfer_size": 0,
"fetch_time": "2026-10-02 13:06:13 +00:00",
"cache_control": {
"cachable": true,
"ttl": 0
},
"checks": {
"no_content_encoding": false,
"high_loading_time": false,
"from_sitemap": false,
"is_redirect": false,
"is_4xx_code": false,
"is_5xx_code": false,
"is_broken": false,
"is_www": true,
"is_https": true,
"is_http": false,
"high_waiting_time": false,
"has_micromarkup": false,
"has_micromarkup_errors": false,
"no_doctype": false,
"has_html_doctype": true,
"canonical": true,
"no_encoding_meta_tag": false,
"no_h1_tag": false,
"https_to_http_links": false,
"size_greater_than_3mb": false,
"meta_charset_consistency": false,
"has_meta_refresh_redirect": false,
"has_render_blocking_resources": true,
"low_content_rate": true,
"high_content_rate": false,
"low_character_count": false,
"high_character_count": false,
"small_page_size": false,
"large_page_size": true,
"low_readability_rate": false,
"irrelevant_description": false,
"irrelevant_title": false,
"irrelevant_meta_keywords": false,
"title_too_long": false,
"has_meta_title": false,
"title_too_short": false,
"deprecated_html_tags": false,
"duplicate_meta_tags": true,
"duplicate_title_tag": false,
"no_image_alt": true,
"no_image_title": true,
"no_description": false,
"no_title": false,
"no_favicon": false,
"seo_friendly_url": true,
"flash": false,
"frame": false,
"lorem_ipsum": false,
"seo_friendly_url_characters_check": true,
"seo_friendly_url_dynamic_check": true,
"seo_friendly_url_keywords_check": true,
"seo_friendly_url_relative_length_check": true
},
"content_encoding": "br",
"media_type": "text/html",
"server": "Vercel",
"is_resource": false,
"url_length": 28,
"relative_url_length": 1,
"last_modified": null
},
"credits_used": 1,
"request_id": "req_example000000",
"cached": false,
"credits_remaining": 9999,
"source": "captured",
"captured_at": "2026-10-02T13:06:13.723Z",
"redacted": true
}통합 응답 구조를 보여 주는 실제 샘플이에요. 필드 값은 조회한 대상에 따라 달라져요.
온페이지 SEO 페이지 진단 API는 어떻게 동작하나요
API 키와 함께 GET 요청을 보내면, 통합 스키마와 계산 필드를 담은 깔끔한 JSON이 돌아와요.
메서드
GET
응답 형식
JSON
소셜 미디어 데이터를 몇 초 만에 수집하는 방법
개발자를 위한 가장 빠른 소셜 미디어 스크래핑 API. 월간 활성 사용자 100억 명 이상을 포괄하는 95개 플랫폼에서 프로필, 게시물, 댓글, 분석 데이터를 수집하세요.
모든 플랫폼을 하나의 스키마로
동일한 응답 구조로 95개 플랫폼을 조회하세요. 연동은 한 번이면 충분합니다.
단순 수집을 넘어 계산된 필드 제공
엔드포인트가 해당 지표를 지원하고 계산에 필요한 원본 값이 있을 때, 정규화된 레코드에 engagement_rate, estimated_reach, content_category, language를 함께 담아 바로 활용할 수 있습니다.
코드 한 줄 쓰기 전에, 데이터부터
Visual Data Explorer에 URL만 붙여넣으면 결과 카드와 정형화된 테이블, CSV 내보내기를 바로 사용할 수 있습니다.
import requests
response = requests.get(
'https://www.socialcrawl.dev/v1/tiktok/profile',
params={'handle': 'charlidamelio'},
headers={'x-api-key': 'sc_YOUR_API_KEY'}
)
data = response.json(){
"success": true,
"platform": "tiktok",
"data": {
"author": {
"username": "charlidamelio",
"followers": 152400000
},
"engagement": {
"likes": 12400000000,
"engagement_rate": 0.087
},
"metadata": {
"language": "en",
"content_category": "lifestyle"
}
}
}자주 묻는 질문
API, 요금제, 기능에 대한 질문과 답변입니다.
문의하기온페이지 API로 URL을 어떻게 점검하나요?
URL은 어떤 형식이어야 하나요?
자바스크립트를 실행하나요?
GET /v1/on_page/page 요금은 얼마인가요?
도메인 전체를 크롤할 수 있나요?
AI에게 SocialCrawl을 물어보세요
온페이지 SEO 페이지 진단 데이터, 가져올 준비 되셨어요?
API 키 받고 60초 안에 온페이지 SEO 데이터를 받아 가세요.
