How are "API requests" determined?

Hey! How does Cloudflare determine “API requests” in the Traffic Analytics?

Does it have anything to do with the request’s Accept header, or maybe just the response Content-Type header? Does it look at the response body at all?