all-about-apikey/abstract-image-processing
Muhammad Daffa 043959c57d Minor changes 2022-07-25 13:04:42 +07:00
..
README.md Minor changes 2022-07-25 13:04:42 +07:00

README.md

Abstract Image Processing

Description

Manage your images programmatically with this powerful API: compress, convert, crop, resize, and more.

Example Request

  • Curl
curl https://images.abstractapi.com/v1/url/ -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d '{"api_key": "{{token}}", "lossy": true, "url": "https://s3.amazonaws.com/static.abstractapi.com/test-images/dog.jpg"}
  • Raw
POST https://images.abstractapi.com/v1/url/ HTTP/1.1
Host: images.abstractapi.com
Content-Type: application/json
Accept: application/json

{"api_key": "{{token}}", "lossy": true, "url": "https://s3.amazonaws.com/static.abstractapi.com/test-images/dog.jpg"}

Response

  • Success
{
    "original_size":205559,
    "original_height":430,
    "original_width":1142,
    "final_size":75101,
    "bytes_saved":130458,
    "final_height":430,
    "final_width":1142,
    "url":"https://abstr..."
}
  • Error
{
    "error":{
        "message":"Invalid API key provided.",
        "code":"unauthorized",
        "details":null
    }
}

Regex

[a-z0-9]{32}

Example API key

of3ab02f3xd12ldofxc3fosc129sd241