> For the complete documentation index, see [llms.txt](https://docs.genser.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.genser.ai/integration/action-data/api-references/search.md).

# 검색 (Search)

검색 관련 사용자 행동 수집 API

## 사용자 행동수집 - 검색 결과

> 검색 결과 수집 API

```json
{"openapi":"3.1.0","info":{"title":"젠서 이벤트 수집 API (기본)","version":"1.0.0"},"tags":[{"name":"검색 (Search)","description":"검색 관련 사용자 행동 수집 API"}],"servers":[{"url":"https://statistics.genser.app","description":"Production"},{"url":"http://localhost","description":"Local Development (포트 80)"},{"url":"http://localhost:8080","description":"Local Development (포트 8080)"}],"paths":{"/actions/search/result":{"post":{"summary":"사용자 행동수집 - 검색 결과","description":"검색 결과 수집 API","tags":["검색 (Search)"],"parameters":[{"name":"Content-Type","in":"header","required":true,"schema":{"type":"string","enum":["application/json"]},"description":"컨텐츠 타입"},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"멱등성 키 - 클라이언트가 호출시 전달해야 함 (UUID)"},{"name":"serviceKey","in":"header","required":true,"schema":{"type":"string"},"description":"서비스키"},{"name":"requestId","in":"header","required":true,"schema":{"type":"string"},"description":"리퀘스트 아이디"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionsSearchResultEvent"}}}},"responses":{"200":{"description":"수집 성공"},"400":{"description":"잘못된 요청"},"503":{"description":"서비스 일시 불가"}}}}},"components":{"schemas":{"ActionsSearchResultEvent":{"title":"사용자 행동수집 - 검색 결과","description":"사용자에게 검색결과가 노출된 행동을 수집하는 API","type":"object","required":["time","source","data"],"properties":{"specversion":{"type":"string","description":"스펙 버전","enum":["1.0.0"]},"id":{"type":"string","description":"이벤트 고유 식별자","enum":["EVT-SEARCH-RESULT"]},"type":{"type":"string","description":"이벤트 유형","enum":["search_result"]},"time":{"type":"string","description":"ISO 8601 UTC 이벤트 생성시간","format":"date-time"},"source":{"type":"string","description":"이벤트 발생 출처"},"datacontenttype":{"type":"string","description":"데이터 컨텐츠 타입","enum":["application/ld+json"]},"dataschema":{"type":"string","description":"데이터 스키마 경로","enum":["https://api.genser.app/schema/actions/search_result.json"]},"data":{"type":"object","description":"이벤트 데이터 객체","required":["agent","object"],"properties":{"@context":{"type":"string","description":"스키마 context","enum":["https://schema.org/"]},"@type":{"type":"string","description":"액션 유형","enum":["ViewAction"]},"agent":{"type":"object","description":"검색결과를 조회한 행위자 (Person)","required":["identifier"],"properties":{"@type":{"type":"string","enum":["Person"]},"identifier":{"items":{"type":"object","required":["propertyID","value"],"properties":{"@type":{"type":"string","enum":["PropertyValue"]},"propertyID":{"type":"string","description":"행위자 아이디 속성명"},"value":{"type":"string","description":"행위자 아이디 값"}}},"type":"array","description":"행위자 식별자 목록 (userId, memberId, cookieId 는 필수로 추가해야 함, 속성의 추가가 필요할 경우 협의)"},"gender":{"type":"string","enum":["Female","Male","https://schema.org/Female","https://schema.org/Male"]},"additionalProperty":{"items":{"type":"object","required":["propertyID","value"],"properties":{"@type":{"type":"string","enum":["PropertyValue"]},"propertyID":{"type":"string","description":"추가 속성 필드명"},"value":{"oneOf":[{"type":"string"},{"type":"number"}],"description":"추가 속성 필드 값"}}},"type":"array","description":"행위자 추가 속성 (회원등급, 연령 등)"}}},"object":{"oneOf":[{"$ref":"#/components/schemas/ActionsSearchResultItemList"},{"type":"array","items":{"$ref":"#/components/schemas/ActionsSearchResultItemList"}}]},"target":{"type":"object","description":"검색 엔드포인트 정보","required":["urlTemplate"],"properties":{"@type":{"type":"string","enum":["EntryPoint"]},"urlTemplate":{"type":"string","description":"검색 URL"}}}}}}},"ActionsSearchResultItemList":{"type":"object","required":["numberOfItems","itemListElement"],"properties":{"@type":{"type":"string","enum":["ItemList"]},"numberOfItems":{"type":"number"},"itemListElement":{"$ref":"#/components/schemas/ActionsSearchResultListItem"}}},"ActionsSearchResultListItem":{"type":"object","required":["position","item"],"properties":{"@type":{"type":"string","enum":["ListItem"]},"item":{"$ref":"#/components/schemas/ActionsSearchResultProduct"},"position":{"type":"number"}}},"ActionsSearchResultProduct":{"description":"상품 객체","type":"object","required":["sku"],"properties":{"@type":{"type":"string","enum":["Product"]},"sku":{"type":"string","description":"상품 고유 식별자, 상품코드 (SKU)"},"name":{"description":"상품명","oneOf":[{"description":"단순 문자열","type":"string"},{"description":"다국어 객체","type":"object","required":["@value","@language"],"properties":{"@value":{"type":"string","description":"상품명 값"},"@language":{"type":"string","description":"언어 코드","enum":["ko","en","ja"]}}},{"description":"다국어 배열","type":"array","items":{"type":"object","required":["@value","@language"],"properties":{"@value":{"type":"string","description":"상품명 값"},"@language":{"type":"string","description":"언어 코드","enum":["ko","en","ja"]}}}}]},"position":{"type":"number","description":"검색결과 내 순위"}}}}}}
```

## 사용자 행동수집 - 검색 제출

> 검색 제출 수집 API

```json
{"openapi":"3.1.0","info":{"title":"젠서 이벤트 수집 API (기본)","version":"1.0.0"},"tags":[{"name":"검색 (Search)","description":"검색 관련 사용자 행동 수집 API"}],"servers":[{"url":"https://statistics.genser.app","description":"Production"},{"url":"http://localhost","description":"Local Development (포트 80)"},{"url":"http://localhost:8080","description":"Local Development (포트 8080)"}],"paths":{"/actions/search/submitted":{"post":{"summary":"사용자 행동수집 - 검색 제출","description":"검색 제출 수집 API","tags":["검색 (Search)"],"parameters":[{"name":"Content-Type","in":"header","required":true,"schema":{"type":"string","enum":["application/json"]},"description":"컨텐츠 타입"},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","format":"uuid"},"description":"멱등성 키 - 클라이언트가 호출시 전달해야 함 (UUID)"},{"name":"serviceKey","in":"header","required":true,"schema":{"type":"string"},"description":"서비스키"},{"name":"requestId","in":"header","required":true,"schema":{"type":"string"},"description":"리퀘스트 아이디"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionsSearchSubmittedEvent"}}}},"responses":{"200":{"description":"수집 성공"},"400":{"description":"잘못된 요청"},"503":{"description":"서비스 일시 불가"}}}}},"components":{"schemas":{"ActionsSearchSubmittedEvent":{"title":"사용자 행동수집 - 검색 제출","description":"사용자가 검색어를 제출한 행동을 수집하는 API","type":"object","required":["time","source","data"],"properties":{"specversion":{"type":"string","description":"스펙 버전","enum":["1.0.0"]},"id":{"type":"string","description":"이벤트 고유 식별자","enum":["EVT-SEARCH-SUBMITTED"]},"type":{"type":"string","description":"이벤트 유형","enum":["search_submitted"]},"time":{"type":"string","description":"ISO 8601 UTC 이벤트 생성시간","format":"date-time"},"source":{"type":"string","description":"이벤트 발생 출처"},"datacontenttype":{"type":"string","description":"데이터 컨텐츠 타입","enum":["application/ld+json"]},"dataschema":{"type":"string","description":"데이터 스키마 경로","enum":["https://api.genser.app/schema/actions/search_submitted.json"]},"data":{"type":"object","description":"이벤트 데이터 객체","required":["agent","query"],"properties":{"@context":{"type":"string","description":"스키마 context","enum":["https://schema.org/"]},"@type":{"type":"string","description":"액션 유형","enum":["SearchAction"]},"agent":{"type":"object","description":"검색을 수행한 행위자 (Person)","required":["identifier"],"properties":{"@type":{"type":"string","enum":["Person"]},"identifier":{"items":{"type":"object","required":["propertyID","value"],"properties":{"@type":{"type":"string","enum":["PropertyValue"]},"propertyID":{"type":"string","description":"행위자 아이디 속성명"},"value":{"type":"string","description":"행위자 아이디 값"}}},"type":"array","description":"행위자 식별자 목록 (userId, memberId, cookieId 는 필수로 추가해야 함, 속성의 추가가 필요할 경우 협의)"},"gender":{"type":"string","enum":["Female","Male","https://schema.org/Female","https://schema.org/Male"]},"additionalProperty":{"items":{"type":"object","required":["propertyID","value"],"properties":{"@type":{"type":"string","enum":["PropertyValue"]},"propertyID":{"type":"string","description":"추가 속성 필드명"},"value":{"oneOf":[{"type":"string"},{"type":"number"}],"description":"추가 속성 필드 값"}}},"type":"array","description":"행위자 추가 속성 (회원등급, 연령 등)"}}},"query":{"type":"string","description":"검색어"},"object":{"type":"object","description":"검색 대상 객체 및 필터 옵션","required":["actionOption"],"properties":{"@type":{"type":"string","enum":["Thing"]},"actionOption":{"items":{"type":"object","required":["propertyID","value"],"properties":{"@type":{"type":"string","enum":["PropertyValue"]},"propertyID":{"type":"string","description":"검색 필터 속성명"},"value":{"oneOf":[{"type":"string"},{"type":"number"}],"description":"검색 필터 값"}}},"type":"array","description":"검색 필터 옵션 목록"}}},"target":{"type":"object","description":"검색 엔드포인트 정보","required":["urlTemplate"],"properties":{"@type":{"type":"string","enum":["EntryPoint"]},"urlTemplate":{"type":"string","description":"검색 URL"}}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.genser.ai/integration/action-data/api-references/search.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
