수익쉐어 모델 IMAGE API
Image Search
Image Search API is an API that allows you to search Image content provided by OGQ. Content can be searched with the given keyword.
GET
/v1/images
[request]
요청타입ParameterDescriptionRequired
Query ParamuserIdA unique value that can identify a user within the service.0
Query ParampageSizeThe number of image contents to be received in one request. The default number is 40, and the maximum number is 100.X
Query ParampagePage number Page number starts from 0.X
Query ParamkeywordKeyword to use for image search If there is no keyword value, a list of popular stickers will be shown as a response.X
Query ParamcreatorNames검색 결과 중 크리에이터의 이름으로 검색 결과내 검색을 수행하게 됩니다. 크리에이터 명은 List로 전달 받습니다.X
[Request example]
GET
`https://oapi.ogq.me/v1/images`
[ Response Body (data)]
요청이 성공하면 응답 바디에 JSON 객체로 아래 값을 포함합니다.
파라미터명타입설명
hasNextbooleanA field to check if there is more content to be searched. If there is more data with the search condition, hasNext returns a value of "true".
elementsobjectThe list of searched image elements
elements
파라미터명타입설명
contentIdStringUnique ID value of the image content
titleStringThe name of the image content
descriptionStringDetailed description of the image content
creatorobjectIt displays the information of the creator who created the image content.
imagesobjectA list of detailed image
feedbacksobjectObject for delivering event information of individual image
salesPolicieslistProvide information about the recommended consumer price and supply price of images
creator
파라미터명타입설명
nameStringCreator's name
profileUrlStringURL of the creator's profile image
images
파라미터명타입설명
thumbnailobjectThumbnail image to be displayed on the list screen
webobjectImages to be used in streaming or web/app
thumbnail
파라미터명타입설명
urlStringThumbnail Image URL
widthnumberWidth of streaming image
heightnumberheight of streaming image
web
파라미터명타입설명
urlStringStreaming or web/app image URL
widthnumberWidth of streaming or web/app image
heightnumberHeight of streaming or the Web / app image
feedbacks
파라미터명타입설명
onUsedStringURL to call when individual image are used
salesPolicies
파라미터명타입설명
currencyStringcurrency of this amount
policyCodeStringcode value of the pricing policy (license type)
priceOfSupplynumberThe amount of public money that falls under this pricing policy
recommendedPricenumberRecommended consumer price for this pricing policy
[Response example]
{
	"code": 20000,
	"data": {
		"hasNext": true,
		"elements": [
			{
				"contentId": "122283f2cff2",
				"title": "이미지의 제목",
				"description": "이미지의 설명",
				"creator": {
					"name": "testCreator",
					"profileUrl": "https://preview.files.api.ogq.me/profile/test/with/some_iamge.jpg?format=r240_240"
				},
				"images": {
					"thumbnail": {
						"url": "https://preview.files.api.ogq.me/thumbail/test/with/some_image.png?format=c240_240",
						"width": 240,
						"height": 135
					},
					"web": {
						"url": "https://preview.files.api.ogq.me/web/test/with/some_image.png?format=c240_240",
						"width": 720,
						"height": 405
					}
				},
				"feedbacks": {
					"onUsed": "https://oapi.ogq.me/v1/feedbacks?feedback_query_params"
				},
				"salesPolicies": [
					{
						"policyCode": "OGQ-IMAGE-SR",
						"priceOfSupply": 120,
						"recommendedPrice": 165,
						"currency": "KRW"
					}
				]
			}
		]
	}
}
Search “Favorites Image”
"Favorites" is a list of images that users use frequently. This is an API that helps add the “Favorites” function and images in this list to your service.
GET
/v1/favorite-images
[request]
요청타입ParameterDescriptionRequired
Query ParamuserIdA unique value that can identify a user within the service.0
Query ParampageSizeThe number of image elements to be received in one request. The default number is 40, and the maximum number is 100.X
Query ParampagePage number Page number starts from 0.X
[Request example]
GET
`https://oapi.ogq.me/v1/favorite-images`
[ Response Body (data)]
요청이 성공하면 응답 바디에 JSON 객체로 아래 값을 포함합니다.
파라미터명타입설명
hasNextbooleanA field to check if there is more content to be searched. If there is more data with the search condition, hasNext returns a value of "true".
elementsobjectlist of images added to "Favorites"
elements
파라미터명타입설명
contentIdStringUnique ID value of the image content
titleStringThe name of the image content
descriptionStringDetailed description of the image content
creatorobjectIt displays the information of the creator who created the image content.
imagesobjectA list of detailed images
feedbacksobjectObject for delivering event information of individual
salesPolicieslistProvide information about the recommended consumer price and supply price of images
creator
파라미터명타입설명
nameStringCreator's name
profileUrlStringURL of the creator's profile image
images
파라미터명타입설명
thumbnailobjectThumbnail image to be displayed on the list screen
webobjectImages to be used in streaming or web/app
thumbnail
파라미터명타입설명
urlStringThumbnail Image URL
widthnumberWidth of streaming image
heightnumberheight of streaming image
web
파라미터명타입설명
urlStringStreaming or web/app image URL
widthnumberWidth of streaming or web/app image
heightnumberHeight of streaming or the Web / app image
feedbacks
파라미터명타입설명
onUsedStringURL to call when individual images are used
salesPolicies
파라미터명타입설명
currencyStringcurrency of this amount
policyCodeStringcode value of the pricing policy (license type)
priceOfSupplynumberThe amount of public money that falls under this pricing policy
recommendedPricenumberRecommended consumer price for this pricing policy
[Response example]
{
	"code": 20000,
	"data": {
		"hasNext": true,
		"elements": [
			{
				"ordering": 0,
				"image": {
					"contentId": "122283f2cff2",
					"title": "이미지의 제목",
					"description": "이미지의 설명",
					"creator": {
						"name": "testCreator",
						"profileUrl": "https://preview.files.api.ogq.me/profile/test/with/some_iamge.jpg?format=r240_240"
					},
					"images": {
						"thumbnail": {
							"url": "https://preview.files.api.ogq.me/thumbail/test/with/some_image.png?format=c240_240",
							"width": 240,
							"height": 135
						},
						"web": {
							"url": "https://preview.files.api.ogq.me/web/test/with/some_image.png?format=c240_240",
							"width": 720,
							"height": 405
						}
					},
					"feedbacks": {
						"onUsed": "https://oapi.ogq.me/v1/feedbacks?feedback_query_params"
					},
					"salesPolicies": [
						{
							"policyCode": "OGQ-IMAGE-SR",
							"priceOfSupply": 120,
							"recommendedPrice": 165,
							"currency": "KRW"
						}
					]
				}
			}
		]
	}
}
Add the feature of "Favorites Image"
Add your favorite images.
POST
/v1/favorite-images
[request]
요청타입ParameterDescriptionRequired
Query ParamuserIdA unique value that can identify a user within the service.0
BodycontentIdsList of image IDs to add to "Favorites"0
[Request example]
POST
`https://oapi.ogq.me/v1/favorite-images`
{
	"contentIds": [
		"17506d5fe220111",
		"17506d5fe220112",
		"17506d5fe220113"
	]
}
change the order in "Favorites Images"
Users can change the order of images in "Favorites". This is an API for the change of the order in "Favorites".
PUT
/v1/favorite-images?userId={userId}
[request]
요청타입ParameterDescriptionRequired
Query ParamuserIdA unique value that can identify a user within the service.0
BodyfavoriteItemsAn item list of favorite images sets0
favoriteItems
요청타입ParameterDescriptionRequired
BodycontentIdThe image ID you added to "Favorites"X
Bodyorderingorder of images in ”Favorite"X
[Request example]
PUT
`https://oapi.ogq.me/v1/favorite-images?userId={userId}`
{
	"favoriteItems": [
		{
			"contentId": "17506d5fe220111",
			"ordering": 3
		},
		{
			"contentId": "17506d5fe220112",
			"ordering": 4
		}
	]
}
Delete "Favorite Image"
This is an API for the deletion of image elements from "Favorites"
DELETE
/v1/favorite-images/{contentId}
[request]
요청타입ParameterDescriptionRequired
Query ParamuserIdA unique value that can identify a user within the service.0
pathcontentIdContentId to delete from image favorites0
[Request example]
DELETE
`https://oapi.ogq.me/v1/favorite-images/{contentId}`
Search "Recent Images"
“Recent Images" is a list of the most recently used images by the user. Calling the onUsed URL in the Feedback API will add the user's recently used image to this list. This is an API that provides a list of recently used images.
GET
/v1/recent-images
[request]
요청타입ParameterDescriptionRequired
Query ParamuserIdA unique value that can identify a user within the service.0
Query ParampageSizeThe number of image elements to be received in one request. The default number is 40, and the maximum number is 100.X
Query ParampagePage number Page number starts from 0.X
[Request example]
GET
`https://oapi.ogq.me/v1/recent-images`
[ Response Body (data)]
요청이 성공하면 응답 바디에 JSON 객체로 아래 값을 포함합니다.
파라미터명타입설명
elementsobjectlist of recently used image
elements
파라미터명타입설명
recentIdStringID recently used
imagelistimage used recently
image
파라미터명타입설명
contentIdStringUnique ID value of the image content
titleStringThe name of the image content
descriptionStringDetailed description of the image content
creatorobjectIt displays the information of the creator who created the image content.
imagesobjectA list of detailed images
feedbacksobjectObject for delivering event information of individual image
salesPolicieslistProvide information about the recommended consumer price and supply price of images
creator
파라미터명타입설명
nameStringCreator's name
profileUrlStringURL of the creator's profile image
images
파라미터명타입설명
thumbnailobjectThumbnail image to be displayed on the list screen
webobjectImages to be used in streaming or web/app
feedbacks
파라미터명타입설명
onUsedStringURL to call when individual image are used
salesPolicies
파라미터명타입설명
currencyStringcurrency of this amount
policyCodeStringcode value of the pricing policy (license type)
priceOfSupplynumberThe amount of public money that falls under this pricing policy
recommendedPricenumberRecommended consumer price for this pricing policy
[Response example]
{
	"code": 20000,
	"data": {
		"elements": [
			{
				"recentId": 0,
				"usedItemId": "1",
				"image": {
					"contentId": "122283f2cff2",
					"title": "이미지의 제목",
					"description": "이미지의 설명",
					"creator": {
						"name": "testCreator",
						"profileUrl": "https://preview.files.api.ogq.me/profile/test/with/some_iamge.jpg?format=r240_240"
					},
					"images": {
						"thumbnail": {
							"url": "https://preview.files.api.ogq.me/thumbail/test/with/some_image.png?format=c240_240",
							"width": 240,
							"height": 135
						},
						"web": {
							"url": "https://preview.files.api.ogq.me/web/test/with/some_image.png?format=c240_240",
							"width": 720,
							"height": 405
						}
					},
					"feedbacks": {
						"onUsed": "https://oapi.ogq.me/v1/feedbacks?feedback_query_params"
					},
					"salesPolicies": [
						{
							"policyCode": "OGQ-IMAGE-SR",
							"priceOfSupply": 120,
							"recommendedPrice": 165,
							"currency": "KRW"
						}
					]
				}
			}
		]
	}
}
Delete "Recent Images"
Delete the image in the "Recent Stickers" list
DELETE
/v1/recent-images/{recentId}
[request]
요청타입ParameterDescriptionRequired
Query ParamuserIdA unique value that can identify a user within the service.0
pathrecentIdId to delete from most recent usage image0
[Request example]
DELETE
`https://oapi.ogq.me/v1/recent-images/{recentId}`
Image Streaming
call URL for image streaming
GET
/v1/images/{contentId}/streamingUrl
[request]
요청타입ParameterDescriptionRequired
Query ParamuserIdA unique value that can identify a user within the service.0
Query ParampolicyCodeStreaming license type (for example: OGQ-IMAGE-SR)X
PathcontentIdthe content ID of the image to be used in streaming0
[Request example]
GET
`https://oapi.ogq.me/v1/images/{contentId}/streamingUrl`
[ Response Body (data)]
요청이 성공하면 응답 바디에 JSON 객체로 아래 값을 포함합니다.
파라미터명타입설명
imageUrlStringImage URL with watermark removed. This URL is valid for 24 hours. (※ Note. This is a URL that cannot be used after 24 hours, so please use after saving the commercial service)
[Response example]
{
	"code": 20000,
	"data": {
		"imageUrl": "https://preview.files.api.ogq.me/STOCK_IMAGE_BULK/3fb800f3/5a51e3f008bf3/OGQ_jrjeon_2020-05-08.jpg?format=w1280_cc"
	}
}
Feedback API
This is an API that enables the server to use and access sticker contents. You can call the URL in "sticker.items.feedbacks.onUsed" in the sticker response results.
GET
/v1/feedbacks
[Request example]
GET
`https://oapi.ogq.me/v1/feedbacks`