---
title: "Detect logos in an image"
method: GET
path: "/api/logos"
tags: ["Images"]
---

# Detect logos in an image

`GET /api/logos`

## Request

- Base URL: `https://api.sponsorunited.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sponsorunited.com/api/logos`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/logos/get.ts> (a function with typed inputs; its response is checked against the schema)

Fetches an image from the provided URL and uses Google Cloud Vision to detect logos.

## Query parameters

- `img_url` string, url, required

## Response `200`

Logo detection results

- object
  - `total` integer: Total number of logos detected
  - `threshold` number, float: Confidence threshold used
  - `height` integer: Image height in pixels
  - `width` integer: Image width in pixels
  - `logos` object[]: Logos above threshold
    - `id` string
    - `name` string
    - `score` number, float
    - `vertices` object[]
      - `x` integer
      - `y` integer
    - `company` object, nullable
      - `id` integer
      - `name` string
  - `skippedLogos` object[]: Logos below threshold

## Other responses

- `422`: Validation error or failed to fetch the image

---

[API](https://skmtc.dev/sponsorunited/apis/sponsorunited-api.md) - [All operations](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/revisions/cbf1ca5bff8f?raw)
