Test learning result
- Print
- PDF
Test learning result
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
The latest service changes have not yet been reflected in this content. We will update the content as soon as possible. Please refer to the Korean version for information on the latest updates.
Test a learning result.
GET https://aitems.apigw.ntruss.com/api/v1/services/{serviceId}/infers/lookup?type={type}&targetId={targetId}
Request
Request parameters
Parameter name | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
serviceId | Yes | String | Service ID created | |
type | Yes | String | Select from among personalRecommend, relatedItem, or pop | Learning type |
targetId | Yes | String | ID to search |
Response
Field name | Type | Description | Remarks |
---|---|---|---|
field | String | Result field name | |
values[] | Array | Result value |
Response status
HTTP Status | Desc |
---|---|
200 | OK (Successfully searched) |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |
Examples
Request example
GET /api/v1/services/49qkb0fbnar/infers/lookup?type=personalRecommend&targetId=em123
Host: aitems.apigw.ntruss.com
accept: application/json
x-ncp-iam-access-key: cPMl0CYGgRYvEa8sylCj
x-ncp-apigw-signature-v2: nn6HxvbYlXzuDBLYG8qNdz4Z7Y6qs+l5EX8BmGwI/EI=
x-ncp-apigw-timestamp: 1551436817715
Response example
{
"field": "ITEM_ID",
"values": [
"i1234",
"i2345",
"i5123"
]
}
Was this article helpful?