> ## Documentation Index
> Fetch the complete documentation index at: https://docs.magnific.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Search images and templates

> Search photos, vectors, PSDs and templates by `query` and filters, a page at a time.



## OpenAPI

````yaml openapi/magnific-api-v2-stock-openapi.yaml GET /v2/stock/resources
openapi: 3.1.0
info:
  title: Magnific API v2 — Stock
  version: 2.0.0
  description: >-
    Search, read and download stock under `/v2/stock`: images and templates,
    icons and videos (same items, licences and billing as API v1), and music and
    sound effects (free, as on the web).
servers:
  - url: https://api.magnific.com
    description: Production V2
security:
  - magnificApiKey: []
  - bearerAuth: []
tags:
  - name: Videos
    description: >-
      Generate and edit videos. Add `?dry_run=true` to get the price of a
      request first.
paths:
  /v2/stock/resources:
    get:
      tags:
        - Resources
      summary: Search images and templates
      description: >-
        Search photos, vectors, PSDs and templates. Follow
        `meta.pagination.next_cursor` while `has_more`; a search with no results
        is an empty page.


        A personal token needs `api:read`.
      operationId: stock_resources
      parameters:
        - description: >
            Specifies the search query language using the ISO 639-1 (2-letter

            language code) and the ISO 3166-1 (2-letter country code) for
            language variants.

            The API will use "en-US" as a default language for processing if a
            code is not

            provided, or does not exist.
          example: en-US
          in: header
          name: Accept-Language
          required: false
          schema:
            type: string
        - description: >
            Specifies the order in which search results are returned. The
            available options allow you to prioritize results based on different
            criteria:
             - `relevance`: Prioritizes results that are most relevant to the search query.
             - `recent`: Sorts results by the most recent updates.
          example: recent
          in: query
          name: order
          required: false
          schema:
            default: relevance
            enum:
              - relevance
              - recent
            type: string
        - description: The text to search for.
          example: nature
          in: query
          name: query
          required: false
          schema:
            type: string
        - description: Advanced filtering options for resources
          explode: true
          in: query
          name: filters
          schema:
            properties:
              orientation:
                properties:
                  landscape:
                    default: 0
                    description: >-
                      Filters results to only include resources with a landscape
                      orientation. Set to 1 to enable, 0 to disable.
                    type: number
                  portrait:
                    default: 0
                    description: >-
                      Filters results to only include resources with a portrait
                      orientation. Set to 1 to enable, 0 to disable.
                    type: number
                  square:
                    default: 0
                    description: >-
                      Filters results to only include resources with a square
                      orientation. Set to 1 to enable, 0 to disable.
                    type: number
                  panoramic:
                    default: 0
                    description: >-
                      Filters results to only include resources with a panoramic
                      orientation. Set to 1 to enable, 0 to disable.
                    type: number
                type: object
              content_type:
                properties:
                  photo:
                    default: 0
                    description: >-
                      Filters results to only include resources of type photo.
                      Set to 1 to enable, 0 to disable.
                    type: number
                  psd:
                    default: 0
                    description: >-
                      Filters results to only include resources of type PSD
                      (Photoshop Document). Set to 1 to enable, 0 to disable.
                    type: number
                  vector:
                    default: 0
                    description: >-
                      Filters results to only include resources of type vector.
                      Set to 1 to enable, 0 to disable.
                    type: number
                  template:
                    default: 0
                    description: >-
                      Filters results to only include templates (PSD and vector
                      resources designed to be customized, such as flyers,
                      invitations or social media posts). Set to 1 to enable, 0
                      to disable. Only applied when `term` is provided.
                    type: number
                  mockup:
                    default: 0
                    description: >-
                      Filters results to only include mockups. Set to 1 to
                      enable, 0 to disable. Only applied when `term` is
                      provided.
                    type: number
                type: object
              license:
                properties:
                  freemium:
                    default: 0
                    description: >-
                      Filters results to only include resources with a freemium
                      license. Set to 1 to enable, 0 to disable.
                    type: number
                  premium:
                    default: 0
                    description: >-
                      Filters results to only include resources with a premium
                      license. Set to 1 to enable, 0 to disable.
                    type: number
                type: object
              people:
                properties:
                  include:
                    default: 0
                    description: Filter by included people
                    example: 1
                    type: number
                  exclude:
                    default: 0
                    description: Filter by excluded people
                    example: 1
                    type: number
                  number:
                    description: Filter by number of people
                    enum:
                      - '1'
                      - '2'
                      - '3'
                      - more_than_three
                    example: '2'
                    type: string
                  age:
                    description: Filter by age of the people
                    enum:
                      - infant
                      - child
                      - teen
                      - young-adult
                      - adult
                      - senior
                      - elder
                    example: child
                    type: string
                  gender:
                    description: Filter by gender of the people
                    enum:
                      - male
                      - female
                    example: female
                    type: string
                  ethnicity:
                    description: Filter by ethnicity of the people
                    enum:
                      - south-asian
                      - middle-eastern
                      - east-asian
                      - black
                      - hispanic
                      - indian
                      - white
                      - multiracial
                      - southeast-asian
                    example: black
                    type: string
                type: object
              period:
                description: >-
                  Filters results based on the time period in which the
                  resources were added.
                enum:
                  - last-month
                  - last-quarter
                  - last-semester
                  - last-year
                type: string
              color:
                description: Filters results by the predominant color in the resources.
                enum:
                  - black
                  - blue
                  - gray
                  - green
                  - orange
                  - red
                  - white
                  - yellow
                  - purple
                  - cyan
                  - pink
                type: string
              author:
                default: 0
                description: >-
                  Filters results to include resources by a specific author,
                  identified by their author ID.
                type: number
              ai_generated:
                properties:
                  excluded:
                    default: 0
                    description: >-
                      Excludes AI-generated images from the results. Set to 1 to
                      exclude, 0 to include.
                    type: number
                  only:
                    default: 0
                    description: >-
                      Filters results to only include AI-generated images. Set
                      to 1 to include only AI-generated images, 0 to include all
                      images.
                    type: number
                type: object
              vector:
                properties:
                  type:
                    description: File type for vectors
                    enum:
                      - jpg
                      - ai
                      - eps
                      - svg
                    type: string
                  style:
                    description: >-
                      Style type for vectors, ignored if content_type exists and
                      it is not vector
                    enum:
                      - watercolor
                      - flat
                      - cartoon
                      - geometric
                      - gradient
                      - isometric
                      - 3d
                      - hand-drawn
                    type: string
                type: object
              psd:
                properties:
                  type:
                    description: File type for psd
                    enum:
                      - jpg
                      - psd
                    type: string
                type: object
              ids:
                description: >-
                  Filter by list of ids. This filter is incompatible with any
                  other filters. In case of using this filter, the rest of
                  filters will be ignored.
                example: 1,2,3,4,5
                type: string
            type: object
          style: deepObject
        - name: limit
          in: query
          required: false
          description: >-
            Results per page, 1 to 100. A cursor keeps the size of the page it
            came from.
          schema:
            type: integer
            minimum: 1
            maximum: 100
        - name: cursor
          in: query
          required: false
          description: The `next_cursor` of the previous page; absent for the first.
          schema:
            type: string
            maxLength: 256
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    description: A list of resources.
                    items:
                      $ref: >-
                        #/components/schemas/Stocksearch_resources_200_response_data_inner
                    type: array
                  meta:
                    $ref: '#/components/schemas/StockV2Meta'
                required:
                  - data
                  - meta
              examples:
                example:
                  summary: Success - Found matched resources in English
                  value:
                    data:
                      - id: 770011
                        title: Sports car
                        url: >-
                          https://www.magnific.com/free-icon/sports-car_770011.htm
                        filename: sports-car.zip
                        licenses:
                          - type: freemium
                            url: >-
                              https://www.magnific.com/profile/license/pdf/770011?lang=en
                        products: []
                        meta:
                          published_at: '2022-01-14T20:45:28.000Z'
                          is_new: true
                          available_formats:
                            jpg:
                              total: 2
                              items:
                                - id: 444
                                  name: Sports car
                                  colorspace: RGB
                                  size: 100
                                - id: 555
                                  name: Sports car
                                  colorspace: RGB
                                  size: 200
                        image:
                          type: photo
                          orientation: square
                          source:
                            url: >-
                              https://img.flaticon.com/icons/png/512/67/67994.png
                            key: large
                            size: 128x128
                        related:
                          serie: []
                          others: []
                          keywords: []
                        stats:
                          downloads: 52527
                          likes: 137
                        author:
                          id: 744082
                          name: flaticon
                          avatar: https://avatar.cdnpk.net/744082.jpg
                          slug: flaticon
                      - id: 1540200
                        title: Grey car logo collection
                        url: >-
                          https://www.magnific.com/free-vector/grey-car-logo-collection_1540200.htm
                        filename: grey-car-logo-collection.zip
                        licenses:
                          - type: freemium
                            url: >-
                              https://www.magnific.com/profile/license/pdf/1540200?lang=en
                        products:
                          - type: essential
                            url: >-
                              https://www.magnific.com/profile/license/pdf/1540200?lang=en
                        meta:
                          published_at: '2022-01-14T16:06:23.000Z'
                          is_new: true
                          available_formats:
                            jpg:
                              total: 2
                              items:
                                - id: 444
                                  size: 100
                                - id: 555
                                  size: 200
                        image:
                          type: vector
                          orientation: square
                          source:
                            url: https://
                            key: large
                            size: 626x626
                        related:
                          serie: []
                          others: []
                          keywords: []
                        stats:
                          downloads: 1639
                          likes: 18
                        author:
                          id: 23
                          name: magnific
                          avatar: https://avatar.cdnpk.net/23.jpg
                          slug: magnific
                    meta:
                      pagination:
                        has_more: true
                        next_cursor: eyJwYWdlIjoyfQ
        '400':
          description: >-
            `validation_failed`: a parameter is not valid (`details.errors` by
            field, e.g. `query`, `cursor`, `filters.color`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StockV2Error'
        '401':
          description: '`unauthenticated`: the token or API key is missing or not valid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StockV2Error'
        '403':
          description: >-
            `forbidden`, `upgrade_required` (a premium asset on a plan without
            premium), `restricted_author_content`, `magnific_api_disabled`,
            `key_not_supported` or `api_key_wallet_unavailable`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StockV2Error'
        '429':
          description: '`rate_limited`: too many requests or downloads.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StockV2Error'
        '500':
          description: '`internal_error`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StockV2Error'
        '503':
          description: >-
            `service_unavailable`: the search engine or a dependency is down;
            retry later.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StockV2Error'
      security:
        - magnificApiKey: []
        - bearerAuth: []
components:
  schemas:
    Stocksearch_resources_200_response_data_inner:
      anyOf:
        - $ref: '#/components/schemas/Stockvector_psd_resource'
        - $ref: '#/components/schemas/Stockphoto_resource'
    StockV2Meta:
      type: object
      required:
        - pagination
      properties:
        pagination:
          type: object
          required:
            - has_more
          properties:
            has_more:
              type: boolean
              description: 'More results follow: send `next_cursor` as `cursor`.'
            next_cursor:
              type: string
              description: Send it as `cursor` for the next page. Absent on the last page.
    StockV2Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: >-
            Stable, for code: `validation_failed`, `unauthenticated`,
            `insufficient_credits`, `forbidden`, `upgrade_required`,
            `not_found`, `rate_limited`, `internal_error`,
            `service_unavailable`...
          example: validation_failed
        message:
          type: string
          description: For people. Never the cause of a server error.
        details:
          type: object
          description: Absent on a server error.
          properties:
            errors:
              type: object
              description: Validation messages by field.
              additionalProperties:
                type: array
                items:
                  type: string
        request_id:
          type: string
    Stockvector_psd_resource:
      additionalProperties: true
      allOf:
        - $ref: '#/components/schemas/Stockresource_base'
        - description: A resource within a list of resources from collection
          properties:
            filename:
              description: The filename of this resource.
              type: string
            products:
              deprecated: true
              description: These products of this resource
              items:
                $ref: '#/components/schemas/Stockresource_product'
              type: array
            meta:
              $ref: '#/components/schemas/Stockresource_meta'
            related:
              $ref: '#/components/schemas/Stockresource_related'
            stats:
              $ref: '#/components/schemas/Stockresource_stats'
          required:
            - filename
            - meta
            - related
            - stats
          type: object
      example:
        image:
          orientation: horizontal
          source:
            size: 740x640
            key: large
            url: https://img.b2bpic.net/free-photo/tshirt_53876-104920.jpg
          type: vector
        licenses:
          - type: freemium
            url: https://www.magnific.com/profile/license/pdf/4350594
          - type: freemium
            url: https://www.magnific.com/profile/license/pdf/4350594
        filename: filename
        related:
          keywords:
            name: Merry Christmas
            slug: merry-christmas
          serie:
            image:
              orientation: horizontal
              source:
                size: 740x640
                key: large
                url: https://img.b2bpic.net/free-photo/tshirt_53876-104920.jpg
              type: vector
            licenses:
              - type: freemium
                url: https://www.magnific.com/profile/license/pdf/4350594
              - type: freemium
                url: https://www.magnific.com/profile/license/pdf/4350594
            author:
              assets: 0
              name: John Doe
              id: 2147483647
              avatar: https://avatar.cdnpk.net/61668527-220726032514.jpg
              slug: merry-christmas
            id: 15667327
            title: White t-shirt with copy space on gray background
            url: >-
              https://www.magnific.com/free-photo/white-t-shirts-with-copy-space-gray-background_15667327.htm
          others:
            image:
              orientation: horizontal
              source:
                size: 740x640
                key: large
                url: https://img.b2bpic.net/free-photo/tshirt_53876-104920.jpg
              type: vector
            licenses:
              - type: freemium
                url: https://www.magnific.com/profile/license/pdf/4350594
              - type: freemium
                url: https://www.magnific.com/profile/license/pdf/4350594
            author:
              assets: 0
              name: John Doe
              id: 2147483647
              avatar: https://avatar.cdnpk.net/61668527-220726032514.jpg
              slug: merry-christmas
            id: 15667327
            title: White t-shirt with copy space on gray background
            url: >-
              https://www.magnific.com/free-photo/white-t-shirts-with-copy-space-gray-background_15667327.htm
        stats:
          downloads: 0
          likes: 0
        author:
          assets: 0
          name: John Doe
          id: 2147483647
          avatar: https://avatar.cdnpk.net/61668527-220726032514.jpg
          slug: merry-christmas
        meta:
          is_new: true
          available_formats:
            psd:
              total: 1
              items:
                - size: 100
                  colorspace: RGB
                  name: image.jpg
                  id: 1
                - size: 100
                  colorspace: RGB
                  name: image.jpg
                  id: 1
            jpg:
              total: 1
              items:
                - size: 100
                  colorspace: RGB
                  name: image.jpg
                  id: 1
                - size: 100
                  colorspace: RGB
                  name: image.jpg
                  id: 1
            zip:
              total: 1
              items:
                - size: 100
                  colorspace: RGB
                  name: image.jpg
                  id: 1
                - size: 100
                  colorspace: RGB
                  name: image.jpg
                  id: 1
            fonts:
              total: 1
              items:
                - size: 100
                  colorspace: RGB
                  name: image.jpg
                  id: 1
                - size: 100
                  colorspace: RGB
                  name: image.jpg
                  id: 1
            svg:
              total: 1
              items:
                - size: 100
                  colorspace: RGB
                  name: image.jpg
                  id: 1
                - size: 100
                  colorspace: RGB
                  name: image.jpg
                  id: 1
            ai:
              total: 1
              items:
                - size: 100
                  colorspace: RGB
                  name: image.jpg
                  id: 1
                - size: 100
                  colorspace: RGB
                  name: image.jpg
                  id: 1
            png:
              total: 1
              items:
                - size: 100
                  colorspace: RGB
                  name: image.jpg
                  id: 1
                - size: 100
                  colorspace: RGB
                  name: image.jpg
                  id: 1
            eps:
              total: 1
              items:
                - size: 100
                  colorspace: RGB
                  name: image.jpg
                  id: 1
                - size: 100
                  colorspace: RGB
                  name: image.jpg
                  id: 1
            resources:
              total: 1
              items:
                - size: 100
                  colorspace: RGB
                  name: image.jpg
                  id: 1
                - size: 100
                  colorspace: RGB
                  name: image.jpg
                  id: 1
            3d-render:
              total: 1
              items:
                - size: 100
                  colorspace: RGB
                  name: image.jpg
                  id: 1
                - size: 100
                  colorspace: RGB
                  name: image.jpg
                  id: 1
            atn:
              total: 1
              items:
                - size: 100
                  colorspace: RGB
                  name: image.jpg
                  id: 1
                - size: 100
                  colorspace: RGB
                  name: image.jpg
                  id: 1
          published_at: '2020-12-01T23:50:50.000Z'
        id: 15667327
        title: White t-shirt with copy space on gray background
        url: >-
          https://www.magnific.com/free-photo/white-t-shirts-with-copy-space-gray-background_15667327.htm
        products:
          - type: essential
            url: >-
              https://www.magnific.com/free-photo/white-t-shirts-with-copy-space-gray-background_15667327.htm
          - type: essential
            url: >-
              https://www.magnific.com/free-photo/white-t-shirts-with-copy-space-gray-background_15667327.htm
    Stockphoto_resource:
      additionalProperties: true
      allOf:
        - $ref: '#/components/schemas/Stockresource_base'
        - description: A resource within a list of resources from collection
          properties:
            filename:
              description: The filename of this resource.
              type: string
            products:
              deprecated: true
              description: These products of this resource
              items:
                $ref: '#/components/schemas/Stockresource_product'
              type: array
            meta:
              $ref: '#/components/schemas/Stockphoto_meta'
            related:
              $ref: '#/components/schemas/Stockresource_base'
            stats:
              $ref: '#/components/schemas/Stockresource_stats'
          required:
            - filename
            - meta
            - related
            - stats
          type: object
    Stockresource_base:
      description: A resource within a list of resources from collection
      example:
        image:
          orientation: horizontal
          source:
            size: 740x640
            key: large
            url: https://img.b2bpic.net/free-photo/tshirt_53876-104920.jpg
          type: vector
        licenses:
          - type: freemium
            url: https://www.magnific.com/profile/license/pdf/4350594
          - type: freemium
            url: https://www.magnific.com/profile/license/pdf/4350594
        author:
          assets: 0
          name: John Doe
          id: 2147483647
          avatar: https://avatar.cdnpk.net/61668527-220726032514.jpg
          slug: merry-christmas
        id: 15667327
        title: White t-shirt with copy space on gray background
        url: >-
          https://www.magnific.com/free-photo/white-t-shirts-with-copy-space-gray-background_15667327.htm
      properties:
        id:
          description: Resource's id.
          example: 15667327
          minimum: 1
          type: integer
        title:
          description: Resource's title.
          example: White t-shirt with copy space on gray background
          type: string
        url:
          description: Resource's url
          example: >-
            https://www.magnific.com/free-photo/white-t-shirts-with-copy-space-gray-background_15667327.htm
          format: uri
          type: string
        licenses:
          description: The licenses of this resource
          items:
            $ref: '#/components/schemas/Stocklicense-information'
          type: array
        image:
          $ref: '#/components/schemas/Stockresource-image'
        author:
          $ref: '#/components/schemas/Stockauthor'
      required:
        - author
        - id
        - image
        - licenses
        - title
        - url
      type: object
    Stockresource_product:
      deprecated: true
      example:
        type: essential
        url: >-
          https://www.magnific.com/free-photo/white-t-shirts-with-copy-space-gray-background_15667327.htm
      properties:
        type:
          deprecated: true
          description: The type of product
          example: essential
          type: string
        url:
          deprecated: true
          description: The url of product
          example: >-
            https://www.magnific.com/free-photo/white-t-shirts-with-copy-space-gray-background_15667327.htm
          format: uri
          type: string
      required:
        - type
        - url
      type: object
    Stockresource_meta:
      example:
        is_new: true
        available_formats:
          psd:
            total: 1
            items:
              - size: 100
                colorspace: RGB
                name: image.jpg
                id: 1
              - size: 100
                colorspace: RGB
                name: image.jpg
                id: 1
          jpg:
            total: 1
            items:
              - size: 100
                colorspace: RGB
                name: image.jpg
                id: 1
              - size: 100
                colorspace: RGB
                name: image.jpg
                id: 1
          zip:
            total: 1
            items:
              - size: 100
                colorspace: RGB
                name: image.jpg
                id: 1
              - size: 100
                colorspace: RGB
                name: image.jpg
                id: 1
          fonts:
            total: 1
            items:
              - size: 100
                colorspace: RGB
                name: image.jpg
                id: 1
              - size: 100
                colorspace: RGB
                name: image.jpg
                id: 1
          svg:
            total: 1
            items:
              - size: 100
                colorspace: RGB
                name: image.jpg
                id: 1
              - size: 100
                colorspace: RGB
                name: image.jpg
                id: 1
          ai:
            total: 1
            items:
              - size: 100
                colorspace: RGB
                name: image.jpg
                id: 1
              - size: 100
                colorspace: RGB
                name: image.jpg
                id: 1
          png:
            total: 1
            items:
              - size: 100
                colorspace: RGB
                name: image.jpg
                id: 1
              - size: 100
                colorspace: RGB
                name: image.jpg
                id: 1
          eps:
            total: 1
            items:
              - size: 100
                colorspace: RGB
                name: image.jpg
                id: 1
              - size: 100
                colorspace: RGB
                name: image.jpg
                id: 1
          resources:
            total: 1
            items:
              - size: 100
                colorspace: RGB
                name: image.jpg
                id: 1
              - size: 100
                colorspace: RGB
                name: image.jpg
                id: 1
          3d-render:
            total: 1
            items:
              - size: 100
                colorspace: RGB
                name: image.jpg
                id: 1
              - size: 100
                colorspace: RGB
                name: image.jpg
                id: 1
          atn:
            total: 1
            items:
              - size: 100
                colorspace: RGB
                name: image.jpg
                id: 1
              - size: 100
                colorspace: RGB
                name: image.jpg
                id: 1
        published_at: '2020-12-01T23:50:50.000Z'
      properties:
        published_at:
          description: The datetime when this resource was published.
          example: '2020-12-01T23:50:50.000Z'
          type: string
        is_new:
          description: True if this resource is new. False, otherwise.
          example: true
          type: boolean
        available_formats:
          $ref: '#/components/schemas/Stockavailable_formats_1'
      required:
        - available_formats
        - is_new
        - published_at
      type: object
    Stockresource_related:
      example:
        keywords:
          name: Merry Christmas
          slug: merry-christmas
        serie:
          image:
            orientation: horizontal
            source:
              size: 740x640
              key: large
              url: https://img.b2bpic.net/free-photo/tshirt_53876-104920.jpg
            type: vector
          licenses:
            - type: freemium
              url: https://www.magnific.com/profile/license/pdf/4350594
            - type: freemium
              url: https://www.magnific.com/profile/license/pdf/4350594
          author:
            assets: 0
            name: John Doe
            id: 2147483647
            avatar: https://avatar.cdnpk.net/61668527-220726032514.jpg
            slug: merry-christmas
          id: 15667327
          title: White t-shirt with copy space on gray background
          url: >-
            https://www.magnific.com/free-photo/white-t-shirts-with-copy-space-gray-background_15667327.htm
        others:
          image:
            orientation: horizontal
            source:
              size: 740x640
              key: large
              url: https://img.b2bpic.net/free-photo/tshirt_53876-104920.jpg
            type: vector
          licenses:
            - type: freemium
              url: https://www.magnific.com/profile/license/pdf/4350594
            - type: freemium
              url: https://www.magnific.com/profile/license/pdf/4350594
          author:
            assets: 0
            name: John Doe
            id: 2147483647
            avatar: https://avatar.cdnpk.net/61668527-220726032514.jpg
            slug: merry-christmas
          id: 15667327
          title: White t-shirt with copy space on gray background
          url: >-
            https://www.magnific.com/free-photo/white-t-shirts-with-copy-space-gray-background_15667327.htm
      properties:
        serie:
          $ref: '#/components/schemas/Stockresource_base'
        others:
          $ref: '#/components/schemas/Stockresource_base'
        keywords:
          $ref: '#/components/schemas/Stocktag_1'
      required:
        - keywords
        - others
        - serie
      type: object
    Stockresource_stats:
      example:
        downloads: 0
        likes: 0
      properties:
        downloads:
          description: The number of downloads of this resource.
          example: 0
          type: integer
        likes:
          description: The number of likes of this resource.
          example: 0
          type: integer
      required:
        - downloads
        - likes
      type: object
    Stockphoto_meta:
      properties:
        published_at:
          description: The datetime when this resource was published.
          example: '2020-12-01T23:50:50.000Z'
          type: string
        is_new:
          description: True if this resource is new. False, otherwise.
          example: true
          type: boolean
        available_formats:
          $ref: '#/components/schemas/Stockphoto_available_formats'
      required:
        - available_formats
        - is_new
        - published_at
      type: object
    Stocklicense-information:
      example:
        type: freemium
        url: https://www.magnific.com/profile/license/pdf/4350594
      properties:
        type:
          description: The type of license.
          enum:
            - freemium
            - premium
          type: string
        url:
          description: The URL of the license.
          example: https://www.magnific.com/profile/license/pdf/4350594
          format: uri
          type: string
      required:
        - type
        - url
      type: object
    Stockresource-image:
      example:
        orientation: horizontal
        source:
          size: 740x640
          key: large
          url: https://img.b2bpic.net/free-photo/tshirt_53876-104920.jpg
        type: vector
      properties:
        type:
          $ref: '#/components/schemas/Stockregular-resource-type'
        orientation:
          $ref: '#/components/schemas/Stockorientation'
        source:
          $ref: '#/components/schemas/Stockresource_image_source'
      required:
        - orientation
        - source
        - type
      type: object
    Stockauthor:
      example:
        assets: 0
        name: John Doe
        id: 2147483647
        avatar: https://avatar.cdnpk.net/61668527-220726032514.jpg
        slug: merry-christmas
      properties:
        id:
          maximum: 9223372036854776000
          minimum: 1
          type: integer
        name:
          example: John Doe
          minLength: 1
          type: string
        avatar:
          example: https://avatar.cdnpk.net/61668527-220726032514.jpg
          format: uri
          type: string
        assets:
          description: The number of assets of this author.
          minimum: 0
          type: integer
        slug:
          example: merry-christmas
          minLength: 1
          type: string
      required:
        - assets
        - avatar
        - id
        - name
        - slug
      type: object
    Stockavailable_formats_1:
      description: The available formats for the resource.
      example:
        psd:
          total: 1
          items:
            - size: 100
              colorspace: RGB
              name: image.jpg
              id: 1
            - size: 100
              colorspace: RGB
              name: image.jpg
              id: 1
        jpg:
          total: 1
          items:
            - size: 100
              colorspace: RGB
              name: image.jpg
              id: 1
            - size: 100
              colorspace: RGB
              name: image.jpg
              id: 1
        zip:
          total: 1
          items:
            - size: 100
              colorspace: RGB
              name: image.jpg
              id: 1
            - size: 100
              colorspace: RGB
              name: image.jpg
              id: 1
        fonts:
          total: 1
          items:
            - size: 100
              colorspace: RGB
              name: image.jpg
              id: 1
            - size: 100
              colorspace: RGB
              name: image.jpg
              id: 1
        svg:
          total: 1
          items:
            - size: 100
              colorspace: RGB
              name: image.jpg
              id: 1
            - size: 100
              colorspace: RGB
              name: image.jpg
              id: 1
        ai:
          total: 1
          items:
            - size: 100
              colorspace: RGB
              name: image.jpg
              id: 1
            - size: 100
              colorspace: RGB
              name: image.jpg
              id: 1
        png:
          total: 1
          items:
            - size: 100
              colorspace: RGB
              name: image.jpg
              id: 1
            - size: 100
              colorspace: RGB
              name: image.jpg
              id: 1
        eps:
          total: 1
          items:
            - size: 100
              colorspace: RGB
              name: image.jpg
              id: 1
            - size: 100
              colorspace: RGB
              name: image.jpg
              id: 1
        resources:
          total: 1
          items:
            - size: 100
              colorspace: RGB
              name: image.jpg
              id: 1
            - size: 100
              colorspace: RGB
              name: image.jpg
              id: 1
        3d-render:
          total: 1
          items:
            - size: 100
              colorspace: RGB
              name: image.jpg
              id: 1
            - size: 100
              colorspace: RGB
              name: image.jpg
              id: 1
        atn:
          total: 1
          items:
            - size: 100
              colorspace: RGB
              name: image.jpg
              id: 1
            - size: 100
              colorspace: RGB
              name: image.jpg
              id: 1
      properties:
        psd:
          $ref: '#/components/schemas/Stockformats'
        ai:
          $ref: '#/components/schemas/Stockformats'
        eps:
          $ref: '#/components/schemas/Stockformats'
        atn:
          $ref: '#/components/schemas/Stockformats'
        fonts:
          $ref: '#/components/schemas/Stockformats'
        resources:
          $ref: '#/components/schemas/Stockformats'
        png:
          $ref: '#/components/schemas/Stockformats'
        jpg:
          $ref: '#/components/schemas/Stockformats'
        3d-render:
          $ref: '#/components/schemas/Stockformats'
        zip:
          $ref: '#/components/schemas/Stockformats'
        svg:
          $ref: '#/components/schemas/Stockformats'
      type:
        - object
        - 'null'
    Stocktag_1:
      example:
        name: Merry Christmas
        slug: merry-christmas
      properties:
        slug:
          example: merry-christmas
          minLength: 1
          type: string
        name:
          description: The name of the tag.
          example: Merry Christmas
          minLength: 1
          type: string
      required:
        - name
        - slug
      type: object
    Stockphoto_available_formats:
      description: The available formats for the photo.
      properties:
        jpg:
          $ref: '#/components/schemas/Stockphoto_formats'
      type:
        - object
        - 'null'
    Stockregular-resource-type:
      description: The type of the resource.
      enum:
        - photo
        - vector
        - psd
      example: vector
      type: string
    Stockorientation:
      description: The orientation of the image.
      enum:
        - horizontal
        - vertical
        - square
        - panoramic
        - unknown
      type: string
    Stockresource_image_source:
      example:
        size: 740x640
        key: large
        url: https://img.b2bpic.net/free-photo/tshirt_53876-104920.jpg
      properties:
        key:
          description: The size of this image
          enum:
            - large
          example: large
          type: string
        url:
          description: The orientation of this resource.
          example: https://img.b2bpic.net/free-photo/tshirt_53876-104920.jpg
          format: uri
          type: string
        size:
          description: The width and height of the image
          example: 740x640
          pattern: ^[1-9][0-9]+x[1-9][0-9]+$
          type: string
      required:
        - key
        - size
        - url
      type: object
    Stockformats:
      allOf:
        - $ref: '#/components/schemas/Stockformats_1'
        - properties:
            items:
              items:
                $ref: '#/components/schemas/Stockformat_1'
              type: array
          required:
            - items
          type: object
      example:
        total: 1
        items:
          - size: 100
            colorspace: RGB
            name: image.jpg
            id: 1
          - size: 100
            colorspace: RGB
            name: image.jpg
            id: 1
    Stockphoto_formats:
      properties:
        total:
          description: The total number of files for that format.
          example: 1
          type: integer
        items:
          items:
            $ref: '#/components/schemas/Stockphoto_format'
          type: array
      required:
        - items
        - total
      type: object
    Stockformats_1:
      properties:
        total:
          description: The total number of files for that format.
          example: 1
          type: integer
        items:
          items:
            $ref: '#/components/schemas/Stockformat'
          type: array
      required:
        - items
        - total
      type: object
    Stockformat_1:
      allOf:
        - $ref: '#/components/schemas/Stockformat'
        - properties:
            name:
              description: The name of the file.
              example: image.jpg
              type: string
            colorspace:
              description: The colorspace of the file.
              enum:
                - RGB
                - CMYK
                - UNKNOWN
              example: RGB
              type: string
          required:
            - colorspace
            - name
          type: object
      example:
        size: 100
        colorspace: RGB
        name: image.jpg
        id: 1
    Stockphoto_format:
      properties:
        id:
          description: The id of the format. Null if doesn't exist
          example: 1
          minimum: 1
          type:
            - integer
            - 'null'
        colorspace:
          description: >-
            The colorspace of the file. This property is not sent when the file
            id is null.
          enum:
            - RGB
            - CMYK
            - UNKNOWN
          example: RGB
          type: string
        name:
          description: >-
            The name of the file. This property is not sent when the file id is
            null.
          example: image.jpg
          type: string
        size:
          description: The size of the photo in bytes.
          example: 100
          type: integer
        is_remove_bg:
          description: Indicates that the file is the result of the remove background tool.
          example: true
          type: boolean
      required:
        - size
      type: object
    Stockformat:
      example:
        size: 100
        id: 1
      properties:
        id:
          description: The id of the format. Null if doesn't exist
          example: 1
          type:
            - integer
            - 'null'
        size:
          description: The size of the file in bytes.
          example: 100
          type: integer
      required:
        - id
        - size
      type: object
  securitySchemes:
    magnificApiKey:
      type: apiKey
      in: header
      name: x-magnific-api-key
      description: >-
        Your Magnific API key. [Learn how to obtain an API
        key](https://docs.magnific.com/quickstart)
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        A personal access token, sent as `Authorization: Bearer <token>`. [How
        to get one](/api-reference/v2/overview#get-a-personal-access-token)

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.