Abstract API URL API

The Url API from Abstract API — 1 operation(s) for url.

Operations 2

GET /url Process an image provided by URL #
POST /url Process an image provided by URL #

Documentation

📖
Documentation
https://docs.abstractapi.com/api/email-reputation.md
📖
Documentation
https://docs.abstractapi.com/api/phone-intelligence.md
📖
Documentation
https://www.abstractapi.com/api/ip-geolocation-api
📖
Documentation
https://docs.abstractapi.com/api/ip-intelligence.md
📖
Documentation
https://docs.abstractapi.com/api/company-enrichment.md
📖
Documentation
https://docs.abstractapi.com/api/exchange-rates.md
📖
Documentation
https://docs.abstractapi.com/api/holidays.md
📖
Documentation
https://docs.abstractapi.com/api/timezones.md
📖
Documentation
https://docs.abstractapi.com/api/vat-validation.md
📖
Documentation
https://docs.abstractapi.com/api/iban-validation.md
📖
Documentation
https://docs.abstractapi.com/api/screenshot.md
📖
Documentation
https://docs.abstractapi.com/api/images.md
📖
Documentation
https://docs.abstractapi.com/api/scrape.md
📖
Documentation
https://docs.abstractapi.com/api/avatars.md
📖
APIReference
https://docs.abstractapi.com/api/avatars
📖
APIReference
https://docs.abstractapi.com/api/company-enrichment
📖
APIReference
https://docs.abstractapi.com/api/email-reputation
📖
APIReference
https://docs.abstractapi.com/api/exchange-rates
📖
APIReference
https://docs.abstractapi.com/api/iban-validation
📖
APIReference
https://docs.abstractapi.com/api/images
📖
APIReference
https://www.abstractapi.com/api/ip-geolocation-api
📖
APIReference
https://docs.abstractapi.com/api/ip-intelligence
📖
APIReference
https://docs.abstractapi.com/api/phone-intelligence
📖
APIReference
https://docs.abstractapi.com/api/holidays
📖
APIReference
https://docs.abstractapi.com/api/timezones
📖
APIReference
https://docs.abstractapi.com/api/scrape
📖
APIReference
https://docs.abstractapi.com/api/screenshot

Specifications

Schemas & Data

📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/email-reputation-breach-info-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/phone-intelligence-phone-country-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/ip-geolocation-currency-info-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/ip-intelligence-asn-info-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/company-enrichment-company-enrichment-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/exchange-rates-convert-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/public-holidays-holiday-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/timezones-convert-time-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/vat-validation-vat-calculate-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/iban-validation-iban-validation-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/image-processing-image-processing-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/web-scraping-web-scraping-response-schema.json

Other Resources

🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/email-reputation-breach-info-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/phone-intelligence-phone-country-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/ip-geolocation-currency-info-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/ip-intelligence-asn-info-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/company-enrichment-company-enrichment-response-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/exchange-rates-convert-response-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/public-holidays-holiday-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/timezones-convert-time-response-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/vat-validation-vat-calculate-response-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/iban-validation-iban-validation-response-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/image-processing-image-processing-response-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/web-scraping-web-scraping-response-example.json

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/abstract-api-url-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

abstract-api-url-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Abstract Image Processing URL API
  description: Compress, convert, resize, and crop images programmatically in a single request.
  version: 1.0.0
  termsOfService: https://www.abstractapi.com/legal/legal
  contact:
    name: Abstract API
    url: https://www.abstractapi.com/api/image-processing-optimization-api
  license:
    name: Commercial — see Terms of Service
    url: https://www.abstractapi.com/legal/legal
servers:
- url: https://images.abstractapi.com/v1
security:
- ApiKeyQuery: []
- BearerAuth: []
tags:
- name: Url
paths:
  /url:
    get:
      operationId: getImageFromUrl
      summary: Process an image provided by URL
      description: Compress, convert, and optionally resize an image hosted at a public URL. Resize options must be supplied via the POST operation or as a JSON-encoded `resize` query value.
      parameters:
      - name: url
        in: query
        required: true
        description: The URL of the image you would like to edit. Cannot be more than 32 MB in size.
        schema:
          type: string
          format: uri
        example: https://s3.amazonaws.com/static.abstractapi.com/test-images/dog.jpg
      - name: lossy
        in: query
        required: false
        description: If true, perform lossy compression, reducing size significantly with a small drop in quality. If false, size is reduced only slightly (10–20% at most) with no quality loss. Defaults to false.
        schema:
          type: boolean
        example: true
      - name: quality
        in: query
        required: false
        description: Integer between 0 and 100 setting the quality level for lossy compression. Determined intelligently when omitted. A quality above 95 is generally useless and may produce a file larger than the input; below 25 the result is usually too low in quality to use.
        schema:
          type: integer
          minimum: 0
          maximum: 100
        example: 80
      responses:
        '200':
          description: Details of the processed image and a download URL.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageResult'
              example:
                original_size: 205559
                original_height: 430
                original_width: 1142
                final_size: 181512
                bytes_saved: 24047
                final_height: 430
                final_width: 1142
                url: https://abstractapi-images.s3.amazonaws.com/e6c6ea1f8bfd46be9ed357b9ce4240ff_dog.jpg
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/QuotaReached'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/ServerError'
      tags:
      - Url
    post:
      operationId: postImageFromUrl
      summary: Process an image provided by URL
      description: 'Same as the GET operation, but accepts the full options object (including `resize`) in the request body. The API key may be supplied in the request body, as the `api_key` query parameter, or as an `Authorization: Bearer ` header.'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/UrlRequest'
          application/json:
            schema:
              $ref: '#/components/schemas/UrlRequest'
            example:
              api_key: YOUR_UNIQUE_API_KEY
              url: https://s3.amazonaws.com/static.abstractapi.com/test-images/dog.jpg
              lossy: true
      responses:
        '200':
          description: Details of the processed image and a download URL.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageResult'
              example:
                original_size: 205559
                original_height: 430
                original_width: 1142
                final_size: 181512
                bytes_saved: 24047
                final_height: 430
                final_width: 1142
                url: https://abstractapi-images.s3.amazonaws.com/e6c6ea1f8bfd46be9ed357b9ce4240ff_dog.jpg
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/QuotaReached'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/ServerError'
      tags:
      - Url
components:
  responses:
    Unauthorized:
      description: Unauthorized — missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              message: Invalid API key provided.
              code: unauthorized
              details: null
    ServerError:
      description: Internal server error. The body follows the standard error envelope.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    BadRequest:
      description: Bad request — a required parameter is missing or failed validation.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              message: A validation error occurred.
              code: validation_error
              details:
                url:
                - This is a required argument.
    TooManyRequests:
      description: Too Many Requests — rate limit exceeded. The body follows the standard error envelope.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    QuotaReached:
      description: Unprocessable — monthly quota reached or insufficient API credits. The body follows the standard error envelope.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    UrlRequest:
      type: object
      required:
      - url
      properties:
        url:
          type: string
          format: uri
          description: The URL of the image you would like to edit. Cannot be more than 32 MB in size.
          example: https://s3.amazonaws.com/static.abstractapi.com/test-images/dog.jpg
        lossy:
          type: boolean
          description: If true, perform lossy compression, reducing size significantly with a small drop in quality. If false, size is reduced only slightly (10–20% at most) with no quality loss. Defaults to false.
          example: true
        quality:
          type: integer
          minimum: 0
          maximum: 100
          description: Integer between 0 and 100 setting the quality level for lossy compression. Determined intelligently when omitted.
          example: 80
        resize:
          $ref: '#/components/schemas/ResizeOptions'
        api_key:
          type: string
          description: 'Your API key. Optional here if supplied as the `api_key` query parameter or an `Authorization: Bearer <key>` header.'
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - message
          - code
          properties:
            message:
              type: string
              description: Human-readable description of the error.
              example: A validation error occurred.
            code:
              type: string
              description: Machine-readable error code, e.g. validation_error or unauthorized.
              example: validation_error
            details:
              type:
              - object
              - 'null'
              description: Field-keyed validation messages for validation_error responses; null for other error types.
              additionalProperties:
                type: array
                items:
                  type: string
    ResizeOptions:
      type: object
      description: Optional resize configuration. Supply a strategy plus the dimensions it needs. If omitted, the image is only compressed.
      properties:
        strategy:
          type: string
          description: 'The resizing strategy. `exact`: resize to exact width and height (aspect ratio not maintained). `portrait`: set exact height, adjust width to aspect ratio. `landscape`: set exact width, adjust height to aspect ratio. `auto`: choose portrait or landscape by aspect ratio. `fit`: crop and resize to fit the desired width and height. `crop`: crop to the exact size specified. `square`: crop by the shorter dimension to a square, then resize. `fill`: resize to fit the bounds while preserving aspect ratio, filling unused space with a background color.'
          enum:
          - exact
          - portrait
          - landscape
          - auto
          - fit
          - crop
          - square
          - fill
          example: exact
        width:
          type: integer
          description: Target width in pixels. Used by the exact, landscape, auto, fit, crop, and fill strategies.
          example: 100
        height:
          type: integer
          description: Target height in pixels. Used by the exact, portrait, auto, fit, crop, and fill strategies.
          example: 75
        size:
          type: integer
          description: Target side length in pixels for the square strategy.
          example: 100
        scale:
          type: integer
          description: For the crop and fit strategies, a percentage by which to scale the cropped image.
          example: 50
        crop_mode:
          type: string
          description: 'For the crop and fit strategies, the gravity (direction) of the crop. Accepts a compass/edge value: n or t (top), nw or tl (top left), ne or tr (top right), w or l (left), c (center, the default), e or r (right), se or br (bottom right), sw or bl (bottom left), s or b (bottom). An invalid value falls back to center.'
          enum:
          - n
          - t
          - nw
          - tl
          - ne
          - tr
          - w
          - l
          - c
          - e
          - r
          - se
          - br
          - sw
          - bl
          - s
          - b
          example: c
        x:
          type: integer
          description: For a custom crop region, the x coordinate (in pixels) of the top-left corner of the rectangle to extract.
          example: 0
        y:
          type: integer
          description: For a custom crop region, the y coordinate (in pixels) of the top-left corner of the rectangle to extract.
          example: 0
        background:
          type: string
          description: 'For the fill strategy, the color used to fill unused portions of the bounds. HEX (#f60 or #ff6600) or RGB (rgb(255, 0, 0)) notation. Defaults to white.'
          example: rgb(91, 126, 156)
    ImageResult:
      type: object
      properties:
        original_size:
          type:
          - integer
          - 'null'
          description: The original size of the provided image, in bytes. Null when the value is unavailable for an unreadable or edge-case input.
          example: 205559
        original_height:
          type:
          - integer
          - 'null'
          description: The original height of the provided image, in pixels. Null when the value is unavailable for an unreadable or edge-case input.
          example: 430
        original_width:
          type:
          - integer
          - 'null'
          description: The original width of the provided image, in pixels. Null when the value is unavailable for an unreadable or edge-case input.
          example: 1142
        final_size:
          type:
          - integer
          - 'null'
          description: The final size of the processed image, in bytes. Null when the value is unavailable.
          example: 181512
        bytes_saved:
          type:
          - integer
          - 'null'
          description: The number of bytes saved by optimizing the image. May be negative or null when the processed image is not smaller than the input.
          example: 24047
        final_height:
          type:
          - integer
          - 'null'
          description: The final height of the processed image, in pixels. Null when no resize was applied or the value is unavailable.
          example: 430
        final_width:
          type:
          - integer
          - 'null'
          description: The final width of the processed image, in pixels. Null when no resize was applied or the value is unavailable.
          example: 1142
        url:
          type: string
          format: uri
          description: The URL of the processed image hosted by Abstract. Images are available for 1 day.
          example: https://abstractapi-images.s3.amazonaws.com/e6c6ea1f8bfd46be9ed357b9ce4240ff_dog.jpg
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api_key
      description: Your unique Image Processing API key.
    BearerAuth:
      type: http
      scheme: bearer
      description: Send your API key as a Bearer token; omit `api_key` from the query string.
externalDocs:
  description: Official documentation
  url: https://docs.abstractapi.com/api/images
x-openItems:
- The exact code/message strings for the 422, 429, and 500 responses are unconfirmed. The standard error envelope shape is modeled, but the literal `code`/`message` values were not verified against production.
- Nullability of the numeric response fields (original_size, original_height, original_width, final_size, bytes_saved, final_height, final_width) is assumed generously per convention G and needs production confirmation.
- CORS support is unknown and was not verified.
- Whether the `/url` and `/upload` endpoints truly accept GET is assumed. The docs only show POST/--data style requests for `/url` and POST multipart for `/upload`; GET operations are modeled per convention D but are unverified against the documented examples.
- The GET-side `resize` encoding for `/url` (passing the resize options as a JSON-encoded query value) is assumed and unverified; the docs only show resize supplied via the POST body.
- The free-plan rate limit (commonly described as 1 request per second) is unconfirmed against the docs/backend and is therefore not asserted in the 429 response description.
- The processed-image download URL retention ('available for 1 day') needs confirmation against the docs/backend.