Scrap(스크랩, 미리보기)란?

카카오톡 Scrap(스크랩, 미리보기)

1. 개요


카카오톡 스크랩 서버는 사용자가 카카오톡에서 URL을 입력하거나 공유하거나, 스크랩 방식의 공유하기 / 메시지 기능을 사용할 때 해당 웹페이지의 정보를 자동으로 수집·가공하여 미리보기 형태로 제공하는 시스템입니다.

또한, 카카오톡 공유하기 기능에서 이미지가 포함된 경우, 해당 이미지를 최적화하기 위해 스크랩 서버가 원본 URL의 이미지 정보를 직접 조회합니다.

이 과정은 카카오톡 환경에 최적화된 콘텐츠를 빠르게 제공하기 위한 목적입니다.

2. 동작방식


(1) URL 접근 및 정보 수집

사용자가 카카오톡 채팅방에서 URL을 입력하거나 공유 기능을 사용할 경우, 스크랩 서버는 원본 URL에 직접 접근하여 다음 요소를 분석합니다.

  • OG(Open Graph) Tag
  • title Tag
  • description Tag
  • 대표 img Tag(og:img가 없을 경우)

해당 정보는 미리보기 노출을 위해 최소한만 신속하게 수집됩니다.

(2) 모바일 최적화 처리

수집된 텍스트와 이미지는 모바일 환경에서 빠르게 로딩될 수 있도록 별도로 최적화된 형태로 변환되며, 특히 이미지는 단위별로 최적화와 캐싱이 함께 이루어집니다.

3. 캐시 정책


URL 단위 캐시
  • 동일한 URL은 1시간 이상 캐시됩니다.
  • 캐시된 정보가 존재하는 동안은 원본 사이트에 다시 접근하지 않습니다.
이미지 단위 캐시
  • 이미지 URL 기준으로 수 시간 동안 카카오 서버에 캐시됩니다.
  • 이용자의 디바이스에도 별도로 캐시됩니다.
  • 이전 이미지가 캐시에 남아 있는 경우, 콘텐츠가 수정되었더라도 사용자의 기기에서는 예전 이미지가 보일 수 있습니다.

4. 캐시 초기화 방법


콘텐츠 변경 후 즉시 새로운 미리보기를 반영하고 싶다면 카카오 공유 디버거(Share Debugger)를 이용해 캐시를 삭제할 수 있습니다. 이 도구는 URL을 다시 스크랩하도록 강제하여 최신 정보를 반영합니다.

FAQ: 스크랩 캐시 삭제는 어떻게 하나요?


5. 카카오톡 스크랩 서버 정보 (Agent)

카카오 스크랩 서버는 특정 IP 대역과 User-Agent를 사용해 원본 URL에 접근합니다.
내부 서비스가 스크랩 요청을 정상적으로 처리하려면 아래 정보를 허용해야 합니다.

IP Range

(카카오로부터 스크랩 요청을 수신하기 위한 접근 허용 범위)

211.231.103.0/24
27.0.238.0/24

User-Agent

(스크랩 서버가 원본 페이지에 접근할 때 사용하는 식별자)

kakaotalk-scrap/1.0; +https://devtalk.kakao.com/t/scrap/33984

KakaoTalk Scrap(Preview)

1. Overview


The KakaoTalk scrap server is a system that automatically collects and processes information from a webpage to provide a preview when a user enters or shares a URL in KakaoTalk, or uses the scrap-type sharing or scrap-type message features.

In addition, when an image is included in the KakaoTalk sharing feature, the scrap server directly fetches the image information from the original URL to optimize it.

This process is intended to deliver content optimized for the KakaoTalk environment quickly.

2. How It Works


(1) URL Access and Information Collection

When a user enters a URL in a KakaoTalk chatroom or uses the sharing function, the scrap server directly accesses the original URL and analyzes the following elements

  • OG(Open Graph) Tag
  • title Tag
  • description Tag
  • img Tag(if og:image is not available)

Only the minimum necessary information is quickly collected to generate the preview.

(2) Mobile Optimization

The collected text and images are converted into an optimized format for fast loading in mobile environments. In particular, images undergo unit-level optimization and caching.

3. Cache Policy


URL-Level Cache
  • The same URL is cached for at least one hour.
    • While cached data exists, the original site is not accessed again.
Image-Level Cache
  • Images are cached on Kakao servers for several hours based on the image URL.
  • They are also cached separately on the user’s device.
  • If a previous image remains in the cache, users may still see the old image on their device even if the content has been updated.

4. How to Clear the Cache


If you want the updated content to appear immediately after making changes, you can use the Kakao Share Debugger to delete the cache. This tool forces the URL to be scraped again so that the latest information is applied.

FAQ: How do I delete the scrap cache?


5. KakaoTalk Scrap Server Information (Agent)

The KakaoTalk scrap server accesses the original URL using specific IP ranges and a designated User-Agent.
To ensure that your internal service properly processes scrap requests, you need to allow the information below.

IP Range

(Access ranges allowed for receiving scrap requests from Kakao)

211.231.103.0/24
27.0.238.0/24

User-Agent

(Identifiers used by the scrap server when accessing the original page)

kakaotalk-scrap/1.0; +https://devtalk.kakao.com/t/scrap/33984