Products

Ouch API Public v1.0.0

Public API for accessing illustrations, styles, tags, and categories

#

Security definitions

You can authenticate using one of the following methods:

  • An Api-Key header. For example, Api-Key: YOUR_API_KEY.
  • A token query parameter. For example, if you want to make a request to a resource with URL /endpoint, you can specify your key as /endpoint?token=YOUR_API_KEY

Make sure that each request you perform includes your API key in one of the specified formats. Otherwise, the request will fail.

#

Search illustrations



Search illustrations by query

#

Parameters

query required string

Text search query


styles optional array of string

Coma separated styles


type optional string one of illustration​component​


mediaFormat optional string one of png​svg​

Filter by media resources


orderBy optional string default relevant one of relevant​random​


locale optional string default en one of en​ru​fr​de​it​jp​es​br​cn​ko​

Query and result language


page optional integer default 1

Page number


perPage optional integer default 10

Number of results per page. Max: 100


fields optional string default id,mediaResources,urls

Return only specified fields. Example: "id,mediaResources,urls(thumb)". Please request only needed fields.


#

Responses

200 - Paged illustrations response
#

Body

total optional integer

Total number of illustrations matching the query


illustrations optional array of object


id optional string


free optional boolean

Whether the illustration is free to use


type optional string

Type of content (illustration, component)


heading optional string


description optional string


author optional object


icons8Id optional string


name optional string


url optional string



styles optional array of string

List of style identifiers


categories optional array of string

List of category identifiers


tags optional array of string

List of tag identifiers


mediaResources optional array of string

Available media resources


urls optional object


thumb optional object


url optional string


width optional integer


height optional integer



small optional object


url optional string


width optional integer


height optional integer



medium optional object


url optional string


width optional integer


height optional integer



large optional



createdAt optional integer

Unix timestamp of creation



#

List illustrations



List illustrations with filters

#

Parameters

type optional string one of illustration​component​


mediaFormat optional string one of png​svg​

Filter by media resources


author optional string


styles optional array of string

Coma separated styles


categories optional array of string

Coma separated categories


tags optional array of string

Coma separated tags


orderBy optional string default latest one of latest​oldest​random​


locale optional string default en one of en​ru​fr​de​it​jp​es​br​cn​ko​

Query and result language


page optional integer default 1

Page number


perPage optional integer default 10

Number of results per page. Max: 100


fields optional string default id,mediaResources,urls

Return only specified fields. Example: "id,mediaResources,urls(thumb)". Please request only needed fields.


#

Responses

200 - Paged illustrations response
#

Body

total optional integer

Total number of illustrations matching the query


illustrations optional array of object


id optional string


free optional boolean

Whether the illustration is free to use


type optional string

Type of content (illustration, component)


heading optional string


description optional string


author optional object


icons8Id optional string


name optional string


url optional string



styles optional array of string

List of style identifiers


categories optional array of string

List of category identifiers


tags optional array of string

List of tag identifiers


mediaResources optional array of string

Available media resources


urls optional object


thumb optional object


url optional string


width optional integer


height optional integer



small optional object


url optional string


width optional integer


height optional integer



medium optional object


url optional string


width optional integer


height optional integer



large optional



createdAt optional integer

Unix timestamp of creation



#

Illustration by id



Get illustration by ID

#

Parameters

id required string

ID


locale optional string default en one of en​ru​fr​de​it​jp​es​br​cn​ko​

Query and result language


fields optional string default id,mediaResources,urls

Return only specified fields. Example: "id,mediaResources,urls(thumb)". Please request only needed fields.


#

Responses

200 - Single illustration response
#

Body

id optional string


free optional boolean

Whether the illustration is free to use


type optional string

Type of content (illustration, component)


heading optional string


description optional string


author optional object


icons8Id optional string


name optional string


url optional string



styles optional array of string

List of style identifiers


categories optional array of string

List of category identifiers


tags optional array of string

List of tag identifiers


mediaResources optional array of string

Available media resources


urls optional object


thumb optional object


url optional string


width optional integer


height optional integer



small optional object


url optional string


width optional integer


height optional integer



medium optional object


url optional string


width optional integer


height optional integer



large optional



createdAt optional integer

Unix timestamp of creation


#

High-resolution illustration



Get high-resolution illustration asset

#

Parameters

id required string

ID


mediaFormat optional string default png one of png​svg​png-hd​


#

Responses

200 - High-resolution asset response
#

Body

url optional string


width optional integer


height optional integer


#

List styles



Get available illustration styles

#

Parameters

fields optional string default id,mediaResources,urls

Return only specified fields. Example: "id,mediaResources,urls(thumb)". Please request only needed fields.


#

Responses

200 - Paged styles response
#

Body

total optional integer

Total number of styles


styles optional array of object


id optional string


prettyId optional string


title optional string


primaryColor optional string

Primary color hex code


secondaryColor optional string

Secondary color hex code


backgroundColor optional string

Background color hex code


description optional string


icon optional object


url optional string


width optional integer


height optional integer



animated optional boolean


allowRequest optional boolean


allowPngLow optional boolean


freeDistribution optional boolean


meta optional array of object


type optional string


value optional string


prettyId optional string



totalIllustrationCount optional integer


thumb1x optional


thumb2x optional



#

List tags



Get paginated tag collection

#

Parameters

locale optional string default en one of en​ru​fr​de​it​jp​es​br​cn​ko​

Query and result language


page optional integer default 1

Page number


perPage optional integer default 10

Number of results per page. Max: 100


fields optional string default id,mediaResources,urls

Return only specified fields. Example: "id,mediaResources,urls(thumb)". Please request only needed fields.


#

Responses

200 - Paged tags response
#

Body

total optional integer

Total number of tags


tags optional array of object


title optional string


illustrationsCount optional integer

Number of illustrations with this tag



#

Get categories tree



Get hierarchical categories tree

#

Parameters

locale optional string default en one of en​ru​fr​de​it​jp​es​br​cn​ko​

Query and result language


parent_id optional string

Parent category pretty ID


style_pretty_ids optional array of string

Comma separated style pretty IDs


#

Responses

200 - Hierarchical categories structure
#

Body

categories optional array of object

Hierarchical list of categories


id optional string


title optional string


prettyId optional string


illustrationsCount optional integer

Number of illustrations in this category


children optional array of

Child categories (recursive)