Help Center> Object Storage Service> FAQs> Billing> How Are Requests Counted?

How Are Requests Counted?

Each calling of an API is counted as a request. When you perform operations on OBS through OBS Console, tools, APIs, or SDKs, you are actually calling APIs.

Request Types

OBS requests include read, write, and delete requests:

  • Read requests: GET, HEAD, and other requests for downloading objects, obtaining bucket locations, and obtaining bucket policies
  • Write requests: PUT, POST, COPY, LIST, and other requests for uploading objects, listing objects, and others
  • Delete requests: DELETE and other requests for deleting objects, canceling multipart upload tasks, and others

Billing

Requests are billed on a pay-per-use basis. The unit prices for different types of requests are the same. For details, see Product Pricing Details.

If you buy a Standard storage package, you will receive a free quota of read and write requests for each month. The free quota is used first. After the free quota is used up, subsequent requests are billed on a pay-per-use basis. If you purchase more than one Standard storage package, you are rewarded with additional free quotas.

Except the requests whose status code is 5XX or 403, all other requests returned by the server are counted in the number of requests.

Examples

Example 1

Take an object upload for example. Each operation on an object or a part of an object is counted as a request. When uploading a folder containing 100 objects, you have the following two options:

  • Call the PutObject API to upload the objects. 100 PUT requests are sent, so the number of requests is 100.
  • Use multipart upload method to upload some large objects in the folder. In this case the final number of requests is greater than 100, because the number of requests are counted based on the number of parts instead of objects. In addition, extra requests are required for initializing multipart upload tasks and merging parts into objects.

Example 2

Each operation on OBS Console delivers a request that is counted for billing.

For example, when you open the home page of OBS Console, the list of buckets is loaded. In this process, requests are sent to obtain the bucket list and bucket locations. Then when you switch to the Overview page of a bucket, requests are sent to query bucket storage information and bucket metadata.