Where can I get documents about GeoJSON API?
I want to know the details about query parameter of filtering by attribute and geospatial extent.
I guess you are looking for the REST API. In case you want to query a featureservice layer you can find the details here:
ArcGIS REST API - Services and Data Types
In case of a map service more info here:
The JSON syntax of geometries can be found here:
Kind regards, Xander