Piloterr Grainger API
The Grainger API from Piloterr — 2 operation(s) for grainger.
The Grainger API from Piloterr — 2 operation(s) for grainger.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/piloterr-com:piloterr-com-grainger-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Piloterr API Reference Grainger API
description: Complete API reference documentation.
version: 1.0.0
servers:
- url: https://api.piloterr.com
description: API Server
tags:
- name: Grainger
paths:
/v2/grainger/search:
get:
summary: Grainger Search
description: 'Search Grainger US or Canada by keyword, category URL or SKU. Returns product listings, category branches and suggestions via browser rendering.
**Credit cost:** 2 credits per call'
operationId: get-grainger-search
security:
- ApiKeyAuth: []
parameters:
- name: query
in: query
required: true
description: 'Keyword, full Grainger search/category URL, category path, or SKU.
**Examples:**
```
carolina
```
```
https://www.grainger.com/search?searchQuery=carolina&searchBar=true
```
```
https://www.grainger.com/category/abrasives
```
```
category/abrasives
```
```
3FRU1
```
A full Grainger URL auto-detects `region`.'
schema:
type: string
description: 'Keyword, full Grainger search/category URL, category path, or SKU.
**Examples:**
```
carolina
```
```
https://www.grainger.com/search?searchQuery=carolina&searchBar=true
```
```
https://www.grainger.com/category/abrasives
```
```
category/abrasives
```
```
3FRU1
```
A full Grainger URL auto-detects `region`.'
- name: region
in: query
required: false
description: 'Grainger country when `query` is not a full URL (default: `com`).
**Supported:**
- `com` → www.grainger.com, USD
- `ca` → www.grainger.ca, CAD
**Example:** `ca`'
schema:
type: string
description: 'Grainger country when `query` is not a full URL (default: `com`).
**Supported:**
- `com` → www.grainger.com, USD
- `ca` → www.grainger.ca, CAD
**Example:** `ca`'
- name: return_page_source
in: query
required: false
description: 'When `true`, return rendered HTML as `{"result": "..."}` instead of JSON. Defaults to `false`.'
schema:
type: boolean
description: 'When `true`, return rendered HTML as `{"result": "..."}` instead of JSON. Defaults to `false`.'
- $ref: '#/components/parameters/fields'
- $ref: '#/components/parameters/is_async'
- $ref: '#/components/parameters/soft_fail'
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
url:
type: string
query:
type: string
region:
type: string
categories:
type: array
items:
type: object
properties:
url:
type: string
title:
type: string
total_results:
type: integer
examples:
Keyword carolina (category branches):
value:
url: https://www.grainger.com/search?searchQuery=carolina&searchBar=true
query: carolina
region: com
categories:
- url: https://www.grainger.com/category/safety/footwear-footwear-accessories/safety-toe-work-boots-shoes
title: Close Match Safety-Toe Work Boots & Shoes
- url: https://www.grainger.com/category/safety/footwear-footwear-accessories/plain-toe-work-boots-shoes
title: Plain-Toe Work Boots & Shoes
total_results: 0
SKU 3FRU1 redirected to product:
value:
url: https://www.grainger.com/search?searchQuery=3FRU1&searchBar=true
query: 3FRU1
region: com
results:
- sku: 3FRU1
url: https://www.grainger.com/product/PENTAIR-PENTEK-Water-Filter-Cartridge-5-micron-3FRU1
price: 6.67
title: 'PENTAIR/PENTEK Water Filter Cartridge: 5 micron, Melt Blown, 2 gpm, Polypropylene'
currency: USD
total_results: 1
'400':
description: Bad Request — missing or invalid parameters.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Bad Request
'401':
description: Unauthorized — the API key is missing, invalid, inactive, or expired, or a rate limit was exceeded (`Rate limit exceeded…` message).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
invalidKey:
value:
error: Invalid API Key
planRateLimit:
value:
error: 'Rate limit exceeded: You''ve exceeded the per second rate limit on your subscription'
keyQuota:
value:
error: 'Rate limit exceeded for the API key: quota monthly'
'402':
description: Payment Required — your subscription or credit balance is insufficient.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Payment required
'500':
description: Internal Server Error — something went wrong on our side.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Internal Error
tags:
- Grainger
post:
summary: Grainger Search
description: 'Search Grainger US or Canada by keyword, category URL or SKU. Returns product listings, category branches and suggestions via browser rendering.
**Credit cost:** 2 credits per call'
operationId: post-grainger-search
security:
- ApiKeyAuth: []
parameters:
- $ref: '#/components/parameters/fields'
- $ref: '#/components/parameters/is_async'
- $ref: '#/components/parameters/soft_fail'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
query:
type: string
description: 'Keyword, full Grainger search/category URL, category path, or SKU.
**Examples:**
```
carolina
```
```
https://www.grainger.com/search?searchQuery=carolina&searchBar=true
```
```
https://www.grainger.com/category/abrasives
```
```
category/abrasives
```
```
3FRU1
```
A full Grainger URL auto-detects `region`.'
region:
type: string
description: 'Grainger country when `query` is not a full URL (default: `com`).
**Supported:**
- `com` → www.grainger.com, USD
- `ca` → www.grainger.ca, CAD
**Example:** `ca`'
return_page_source:
type: boolean
description: 'When `true`, return rendered HTML as `{"result": "..."}` instead of JSON. Defaults to `false`.'
required:
- query
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
url:
type: string
query:
type: string
region:
type: string
categories:
type: array
items:
type: object
properties:
url:
type: string
title:
type: string
total_results:
type: integer
examples:
Keyword carolina (category branches):
value:
url: https://www.grainger.com/search?searchQuery=carolina&searchBar=true
query: carolina
region: com
categories:
- url: https://www.grainger.com/category/safety/footwear-footwear-accessories/safety-toe-work-boots-shoes
title: Close Match Safety-Toe Work Boots & Shoes
- url: https://www.grainger.com/category/safety/footwear-footwear-accessories/plain-toe-work-boots-shoes
title: Plain-Toe Work Boots & Shoes
total_results: 0
SKU 3FRU1 redirected to product:
value:
url: https://www.grainger.com/search?searchQuery=3FRU1&searchBar=true
query: 3FRU1
region: com
results:
- sku: 3FRU1
url: https://www.grainger.com/product/PENTAIR-PENTEK-Water-Filter-Cartridge-5-micron-3FRU1
price: 6.67
title: 'PENTAIR/PENTEK Water Filter Cartridge: 5 micron, Melt Blown, 2 gpm, Polypropylene'
currency: USD
total_results: 1
'400':
description: Bad Request — missing or invalid parameters.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Bad Request
'401':
description: Unauthorized — the API key is missing, invalid, inactive, or expired, or a rate limit was exceeded (`Rate limit exceeded…` message).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
invalidKey:
value:
error: Invalid API Key
planRateLimit:
value:
error: 'Rate limit exceeded: You''ve exceeded the per second rate limit on your subscription'
keyQuota:
value:
error: 'Rate limit exceeded for the API key: quota monthly'
'402':
description: Payment Required — your subscription or credit balance is insufficient.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Payment required
'500':
description: Internal Server Error — something went wrong on our side.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Internal Error
tags:
- Grainger
/v2/grainger/product:
get:
summary: Grainger Product
description: 'Get a Grainger US or Canada product page: SKU, brand, price, images, description and specs via browser rendering.
**Credit cost:** 2 credits per call'
operationId: get-grainger-product
security:
- ApiKeyAuth: []
parameters:
- name: query
in: query
required: true
description: 'SKU, full Grainger product URL, or relative `/product/...` path.
**Examples:**
```
3FRU1
```
```
https://www.grainger.com/product/PENTAIR-PENTEK-Water-Filter-Cartridge-5-micron-3FRU1
```
```
/product/ROCKPORT-WORKS-6-Inch-Work-Boot-Men-s-16V679
```'
schema:
type: string
description: 'SKU, full Grainger product URL, or relative `/product/...` path.
**Examples:**
```
3FRU1
```
```
https://www.grainger.com/product/PENTAIR-PENTEK-Water-Filter-Cartridge-5-micron-3FRU1
```
```
/product/ROCKPORT-WORKS-6-Inch-Work-Boot-Men-s-16V679
```'
- name: region
in: query
required: false
description: 'Grainger country when `query` is not a full URL (default: `com`).
**Supported:** `com` (USD), `ca` (CAD).'
schema:
type: string
description: 'Grainger country when `query` is not a full URL (default: `com`).
**Supported:** `com` (USD), `ca` (CAD).'
- name: return_page_source
in: query
required: false
description: 'When `true`, return rendered HTML as `{"result": "..."}` instead of JSON. Defaults to `false`.'
schema:
type: boolean
description: 'When `true`, return rendered HTML as `{"result": "..."}` instead of JSON. Defaults to `false`.'
- $ref: '#/components/parameters/fields'
- $ref: '#/components/parameters/is_async'
- $ref: '#/components/parameters/soft_fail'
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
sku:
type: string
url:
type: string
brand:
type: string
model:
type: string
price:
type: number
title:
type: string
images:
type: array
items:
type: string
region:
type: string
currency:
type: string
product_id:
type: string
description:
type: string
specifications:
type: object
properties:
Brand:
type: string
Series:
type: string
Micron Rating:
type: string
Filter Media Material:
type: string
examples:
Filter cartridge 3FRU1:
value:
sku: 3FRU1
url: https://www.grainger.com/product/PENTAIR-PENTEK-Water-Filter-Cartridge-5-micron-3FRU1
brand: PENTAIR/PENTEK
model: 155030-43
price: 6.67
title: 'PENTAIR/PENTEK Water Filter Cartridge: 5 micron, Melt Blown, 2 gpm, Polypropylene'
images:
- https://static.grainger.com/rp/s/is/image/Grainger/3FRU1_AS01
region: com
currency: USD
product_id: '40161516'
description: Product Description Melt blown filters use porous outer layers...
specifications:
Brand: PENTAIR/PENTEK
Series: Pentek P
Micron Rating: 5 micron
Filter Media Material: Polypropylene
'400':
description: Bad Request — missing or invalid parameters.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Bad Request
'401':
description: Unauthorized — the API key is missing, invalid, inactive, or expired, or a rate limit was exceeded (`Rate limit exceeded…` message).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
invalidKey:
value:
error: Invalid API Key
planRateLimit:
value:
error: 'Rate limit exceeded: You''ve exceeded the per second rate limit on your subscription'
keyQuota:
value:
error: 'Rate limit exceeded for the API key: quota monthly'
'402':
description: Payment Required — your subscription or credit balance is insufficient.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Payment required
'500':
description: Internal Server Error — something went wrong on our side.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Internal Error
tags:
- Grainger
post:
summary: Grainger Product
description: 'Get a Grainger US or Canada product page: SKU, brand, price, images, description and specs via browser rendering.
**Credit cost:** 2 credits per call'
operationId: post-grainger-product
security:
- ApiKeyAuth: []
parameters:
- $ref: '#/components/parameters/fields'
- $ref: '#/components/parameters/is_async'
- $ref: '#/components/parameters/soft_fail'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
query:
type: string
description: 'SKU, full Grainger product URL, or relative `/product/...` path.
**Examples:**
```
3FRU1
```
```
https://www.grainger.com/product/PENTAIR-PENTEK-Water-Filter-Cartridge-5-micron-3FRU1
```
```
/product/ROCKPORT-WORKS-6-Inch-Work-Boot-Men-s-16V679
```'
region:
type: string
description: 'Grainger country when `query` is not a full URL (default: `com`).
**Supported:** `com` (USD), `ca` (CAD).'
return_page_source:
type: boolean
description: 'When `true`, return rendered HTML as `{"result": "..."}` instead of JSON. Defaults to `false`.'
required:
- query
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
sku:
type: string
url:
type: string
brand:
type: string
model:
type: string
price:
type: number
title:
type: string
images:
type: array
items:
type: string
region:
type: string
currency:
type: string
product_id:
type: string
description:
type: string
specifications:
type: object
properties:
Brand:
type: string
Series:
type: string
Micron Rating:
type: string
Filter Media Material:
type: string
examples:
Filter cartridge 3FRU1:
value:
sku: 3FRU1
url: https://www.grainger.com/product/PENTAIR-PENTEK-Water-Filter-Cartridge-5-micron-3FRU1
brand: PENTAIR/PENTEK
model: 155030-43
price: 6.67
title: 'PENTAIR/PENTEK Water Filter Cartridge: 5 micron, Melt Blown, 2 gpm, Polypropylene'
images:
- https://static.grainger.com/rp/s/is/image/Grainger/3FRU1_AS01
region: com
currency: USD
product_id: '40161516'
description: Product Description Melt blown filters use porous outer layers...
specifications:
Brand: PENTAIR/PENTEK
Series: Pentek P
Micron Rating: 5 micron
Filter Media Material: Polypropylene
'400':
description: Bad Request — missing or invalid parameters.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Bad Request
'401':
description: Unauthorized — the API key is missing, invalid, inactive, or expired, or a rate limit was exceeded (`Rate limit exceeded…` message).
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
invalidKey:
value:
error: Invalid API Key
planRateLimit:
value:
error: 'Rate limit exceeded: You''ve exceeded the per second rate limit on your subscription'
keyQuota:
value:
error: 'Rate limit exceeded for the API key: quota monthly'
'402':
description: Payment Required — your subscription or credit balance is insufficient.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Payment required
'500':
description: Internal Server Error — something went wrong on our side.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
example:
error: Internal Error
tags:
- Grainger
components:
parameters:
fields:
name: fields
in: query
required: false
description: Comma-separated list of response fields to return, with dot notation for nested fields (e.g. `name,location.city`).
schema:
type: string
is_async:
name: is_async
in: query
required: false
description: 'Run the request as a background job: the API answers `202` with a `job_id` to poll on `GET /v1/jobs/{id}`.'
schema:
type: boolean
default: false
soft_fail:
name: soft_fail
in: query
required: false
description: Return HTTP 200 even when the request fails; the error is in the `error` field of the body.
schema:
type: boolean
default: false
schemas:
ErrorResponse:
type: object
required:
- error
properties:
error:
type: string
description: Human-readable error message.
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: x-api-key
description: Your API key. Include it in the x-api-key header for every request.