Skip to main content
Glama

get_resource_detail_by_id

Retrieve detailed information for a specific Freepik resource by its ID, including metadata, formats, and related content for photos, vectors, PSD files, and AI-generated assets.

Instructions

Retrieve the detailed information of a specific resource by its ID. This endpoint supports multiple resource types including PSD, vector, photo, and AI-generated content.

Path Parameters:

  • resource-id (Required): Photo, video or PSD resource ID

Responses:

  • 200 (Success): OK Response

    • Content-Type: application/json

    • Response Properties:

    • Example:

{
  "data": {
    "preview": {
      "width": 300,
      "url": "https://www.freepik.com/free-ai-image/surreal-landscape_41357833.htm",
      "height": 500
    },
    "new": true,
    "author": {
      "assets": 0,
      "name": "John Doe",
      "id": 2147483647,
      "avatar": "https://avatar.cdnpk.net/61668527-220726032514.jpg",
      "slug": "merry-christmas"
    },
    "created": "2023-03-07T23:05:26Z",
    "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
          }
        ]
      }
    },
    "type": "photo",
    "url": "https://www.freepik.com/free-photo/white-t-shirts-with-copy-space-gray-background_15667327.htm",
    "license": "https://www.freepik.com/profile/license/pdf/4350594",
    "premium": true,
    "is_ai_generated": true,
    "related_resources": {
      "suggested": [
        {
          "preview": {
            "width": 300,
            "url": "https://www.freepik.com/free-ai-image/surreal-landscape_41357833.htm",
            "height": 500
          },
          "new": true,
          "premium": true,
          "is_ai_generated": true,
          "author": {
            "assets": 0,
            "name": "John Doe",
            "id": 2147483647,
            "avatar": "https://avatar.cdnpk.net/61668527-220726032514.jpg",
            "slug": "merry-christmas"
          },
          "name": "White t-shirt with copy space on gray background",
          "id": 15667327,
          "type": "vector",
          "has_prompt": true,
          "slug": "merry-christmas",
          "url": "https://www.freepik.com/free-photo/white-t-shirts-with-copy-space-gray-background_15667327.htm"
        },
        {
          "preview": {
            "width": 300,
            "url": "https://www.freepik.com/free-ai-image/surreal-landscape_41357833.htm",
            "height": 500
          },
          "new": true,
          "premium": true,
          "is_ai_generated": true,
          "author": {
            "assets": 0,
            "name": "John Doe",
            "id": 2147483647,
            "avatar": "https://avatar.cdnpk.net/61668527-220726032514.jpg",
            "slug": "merry-christmas"
          },
          "name": "White t-shirt with copy space on gray background",
          "id": 15667327,
          "type": "vector",
          "has_prompt": true,
          "slug": "merry-christmas",
          "url": "https://www.freepik.com/free-photo/white-t-shirts-with-copy-space-gray-background_15667327.htm"
        }
      ],
      "same_author": [
        {
          "preview": {
            "width": 300,
            "url": "https://www.freepik.com/free-ai-image/surreal-landscape_41357833.htm",
            "height": 500
          },
          "new": true,
          "premium": true,
          "is_ai_generated": true,
          "author": {
            "assets": 0,
            "name": "John Doe",
            "id": 2147483647,
            "avatar": "https://avatar.cdnpk.net/61668527-220726032514.jpg",
            "slug": "merry-christmas"
          },
          "name": "White t-shirt with copy space on gray background",
          "id": 15667327,
          "type": "vector",
          "has_prompt": true,
          "slug": "merry-christmas",
          "url": "https://www.freepik.com/free-photo/white-t-shirts-with-copy-space-gray-background_15667327.htm"
        },
        {
          "preview": {
            "width": 300,
            "url": "https://www.freepik.com/free-ai-image/surreal-landscape_41357833.htm",
            "height": 500
          },
          "new": true,
          "premium": true,
          "is_ai_generated": true,
          "author": {
            "assets": 0,
            "name": "John Doe",
            "id": 2147483647,
            "avatar": "https://avatar.cdnpk.net/61668527-220726032514.jpg",
            "slug": "merry-christmas"
          },
          "name": "White t-shirt with copy space on gray background",
          "id": 15667327,
          "type": "vector",
          "has_prompt": true,
          "slug": "merry-christmas",
          "url": "https://www.freepik.com/free-photo/white-t-shirts-with-copy-space-gray-background_15667327.htm"
        }
      ],
      "same_collection": {
        "items": [
          {
            "preview": {
              "width": 300,
              "url": "https://www.freepik.com/free-ai-image/surreal-landscape_41357833.htm",
              "height": 500
            },
            "new": true,
            "premium": true,
            "is_ai_generated": true,
            "author": {
              "assets": 0,
              "name": "John Doe",
              "id": 2147483647,
              "avatar": "https://avatar.cdnpk.net/61668527-220726032514.jpg",
              "slug": "merry-christmas"
            },
            "name": "White t-shirt with copy space on gray background",
            "id": 15667327,
            "type": "vector",
            "has_prompt": true,
            "slug": "merry-christmas",
            "url": "https://www.freepik.com/free-photo/white-t-shirts-with-copy-space-gray-background_15667327.htm"
          },
          {
            "preview": {
              "width": 300,
              "url": "https://www.freepik.com/free-ai-image/surreal-landscape_41357833.htm",
              "height": 500
            },
            "new": true,
            "premium": true,
            "is_ai_generated": true,
            "author": {
              "assets": 0,
              "name": "John Doe",
              "id": 2147483647,
              "avatar": "https://avatar.cdnpk.net/61668527-220726032514.jpg",
              "slug": "merry-christmas"
            },
            "name": "White t-shirt with copy space on gray background",
            "id": 15667327,
            "type": "vector",
            "has_prompt": true,
            "slug": "merry-christmas",
            "url": "https://www.freepik.com/free-photo/white-t-shirts-with-copy-space-gray-background_15667327.htm"
          }
        ],
        "url": "https://www.freepik.com/collection/shining"
      },
      "same_series": {
        "items": [
          {
            "preview": {
              "width": 300,
              "url": "https://www.freepik.com/free-ai-image/surreal-landscape_41357833.htm",
              "height": 500
            },
            "new": true,
            "premium": true,
            "is_ai_generated": true,
            "author": {
              "assets": 0,
              "name": "John Doe",
              "id": 2147483647,
              "avatar": "https://avatar.cdnpk.net/61668527-220726032514.jpg",
              "slug": "merry-christmas"
            },
            "name": "White t-shirt with copy space on gray background",
            "id": 15667327,
            "type": "vector",
            "has_prompt": true,
            "slug": "merry-christmas",
            "url": "https://www.freepik.com/free-photo/white-t-shirts-with-copy-space-gray-background_15667327.htm"
          },
          {
            "preview": {
              "width": 300,
              "url": "https://www.freepik.com/free-ai-image/surreal-landscape_41357833.htm",
              "height": 500
            },
            "new": true,
            "premium": true,
            "is_ai_generated": true,
            "author": {
              "assets": 0,
              "name": "John Doe",
              "id": 2147483647,
              "avatar": "https://avatar.cdnpk.net/61668527-220726032514.jpg",
              "slug": "merry-christmas"
            },
            "name": "White t-shirt with copy space on gray background",
            "id": 15667327,
            "type": "vector",
            "has_prompt": true,
            "slug": "merry-christmas",
            "url": "https://www.freepik.com/free-photo/white-t-shirts-with-copy-space-gray-background_15667327.htm"
          }
        ],
        "url": "https://www.freepik.com/serie/32689488"
      }
    },
    "name": "White t-shirt with copy space on gray background",
    "id": 15667327,
    "has_prompt": true,
    "download_size": 1024,
    "slug": "merry-christmas",
    "related_tags": [
      {
        "name": "Merry Christmas",
        "slug": "merry-christmas",
        "url": "https://www.freepik.com/dog"
      },
      {
        "name": "Merry Christmas",
        "slug": "merry-christmas",
        "url": "https://www.freepik.com/dog"
      }
    ],
    "dimensions": {
      "width": 2000,
      "height": 3000
    }
  }
}
  • 400: Bad Request - The server could not understand the request due to invalid syntax.

    • Content-Type: application/json

    • Response Properties:

    • Example:

{
  "message": "message"
}
  • 401: Unauthorized - The client must authenticate itself to get the requested response.

    • Content-Type: application/json

    • Response Properties:

    • Example:

{
  "message": "message"
}
  • 404: Not Found - The server can not find the requested resource.

    • Content-Type: application/json

    • Response Properties:

    • Example:

{
  "message": "message"
}
  • 500: Internal Server Error - The server has encountered a situation it doesn't know how to handle.

    • Content-Type: application/json

    • Response Properties:

    • Example:

{
  "message": "Internal Server Error"
}
  • 503: Service Unavailable

    • Content-Type: application/json

    • Response Properties:

    • Example:

{
  "message": "Service Unavailable. Please try again later."
}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
resource-idYesPhoto, video or PSD resource ID
Accept-LanguageNoSpecifies 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.
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. It mentions the tool 'supports multiple resource types' and includes HTTP response codes with examples, which adds some context. However, it doesn't disclose critical behavioral traits like authentication requirements, rate limits, whether it's idempotent, or error handling specifics beyond status codes. For a read operation with no annotation coverage, this leaves significant gaps in understanding how the tool behaves.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is excessively long and poorly structured for an AI agent. It front-loads the purpose but then includes massive JSON response examples (over 200 lines) that belong in an output schema, not a description. The 'Path Parameters' section duplicates schema information. While comprehensive, it violates conciseness principles by including implementation details that don't help an agent select or invoke the tool correctly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no annotations and no output schema, the description attempts to compensate with extensive response examples and error codes. However, this creates information overload rather than targeted completeness. It covers response formats but misses behavioral context like authentication needs. For a read operation with 2 parameters, it's partially complete but inefficiently organized, mixing tool selection guidance with implementation details.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents both parameters thoroughly. The description adds minimal parameter semantics beyond the schema: it repeats the resource-id requirement in a 'Path Parameters' section but doesn't provide additional context about ID formats or examples. The Accept-Language parameter isn't mentioned in the description at all. With high schema coverage, baseline 3 is appropriate as the description adds little value over the structured schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Retrieve the detailed information of a specific resource by its ID' with specific resource types listed (PSD, vector, photo, AI-generated content). It distinguishes from siblings like search_resources (which searches) and download_resource_by_id (which downloads), but doesn't explicitly contrast them. The verb 'retrieve' and resource specificity are clear, though sibling differentiation is implicit rather than explicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no explicit guidance on when to use this tool versus alternatives. While it mentions resource types, it doesn't indicate when to choose this over get_icon_detail_by_id for icons, or when detailed info is needed versus download_resource_by_id for downloading. No prerequisites, exclusions, or alternative scenarios are mentioned, leaving usage context unclear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/freepik-company/freepik-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server