Get All Pesticides
"Unlock the power of pesticide data seamlessly with Aeromegh's pesticide API endpoint."
Last updated
"Unlock the power of pesticide data seamlessly with Aeromegh's pesticide API endpoint."
Last updated
This API provides programmatic access to a list of all pesticides, including names, quantities, and other attributes, with secure API key authentication. Use it to seamlessly integrate pesticide data into applications.
To use the API, insert your API key in the Authorization header like this:
Replace <YOUR_API_KEY>
with your AeroGCS API key. Without it, you'll get a 401 Unauthorized error.
GET : Retrieves a list of all pesticides.
URL parameters are:
Parameter | Description | Optional | Example |
---|---|---|---|
Response Codes Explanation:
Examples of how you can call this API using curl, Node.js, and Python:
Note: Replace <API_KEY>
with the actual API_KEY provided by Aeromegh.
Example of API response in JSON format:
The following parameters are included in API response:
Code | Details | Message |
---|---|---|
Parameter | Description | Example |
---|---|---|
searchString
User can search by pesticide name.
Yes
fromDateTime
FromDateTime in UTC.
Yes
2023-08-19T00:00:20.335Z
toDateTime
ToDateTime in UTC.
Yes
2024-05-07T23:59:20.335Z
orderBy
Order by field name (default is pesticide).
Yes
pesticide
orderType
OrderType is in ASC or DESC (default DESC).
Yes
DESC
pageSize
Number of records shown on each page.
Yes
15
pageNumber
Number of pages greater than zero.
Yes
1
200
The request was successful.
"OK"
400
Request parameters missing.
"Request parameters missing"
500
Internal server error.
"Internal server error"
pesticide
The type of pesticide returned in the response
Amistar Top