💻 API Documentation
RESTful API for UPC and barcode lookup. Simple, fast, and reliable.
Getting Started
Base URL
Authentication
For programmatic API access, you need to include an API key in your requests. Create a free account and generate your API key from the API Keys page.
Include your API key in the Authorization header:
Response Format
All API responses are returned in JSON format. Successful requests return a 200 status code along with the requested data.
Rate Limiting & Usage Quotas
API usage is tracked per API key with monthly quotas based on your pricing tier:
- Free Tier: 1,000 requests per month
- Starter Tier: 10,000 requests per month
- Pro Tier: 100,000 requests per month
- Enterprise Tier: Unlimited requests
API Endpoints
/api/products/:upc
Get product information by UPC code
Parameters
upc (string, required) - The UPC code to look up
Example Request
curl -H "Authorization: Bearer YOUR_API_KEY" \ https://searchupcdata.com/api/products/7865578655204
Example Response
{
"id": "e062a65b-5661-4662-ba70-6775e55d2556",
"upc": "7865578655204",
"name": "Taqwa XXXL Steamed Basmati Rice",
"description": "Delicious steamed basmati rice 10lb",
"imageUrl": "https://...",
"brand": "Taqwa",
"category": "Rice"
}
/api/products/search
Search products by UPC code, name, or brand
Parameters
query (string, required) - Search term (UPC, product name, or brand)
Example Request
curl -H "Authorization: Bearer YOUR_API_KEY" \ "https://searchupcdata.com/api/products/search?query=rice"
/api/products/search/advanced
Advanced search with filters for brand and category
Parameters
query (string, optional) - Search term
brand (string, optional) - Filter by brand name
category (string, optional) - Filter by category
/api/products/brands
Get list of all unique brands in the database
/api/products/categories
Get list of all unique categories in the database
Error Handling
When an error occurs, the API will return an appropriate HTTP status code along with an error message in JSON format.
Common Error Codes
Unauthorized
API key missing or invalid. Include a valid API key in the Authorization header.
Forbidden
Your API key has been deactivated. Contact support for assistance.
Not Found
The requested product does not exist in our database.
Quota Exceeded
Monthly quota exceeded. Upgrade your plan or wait for next month's reset.
Internal Server Error
An unexpected error occurred. Please try again later.
Ready to Get Started?
Create a free account and start integrating our UPC lookup API today.