Authentication

All API requests require an API key. Pass it via the X-API-Key header:

curl -H "X-API-Key: YOUR_API_KEY" https://opendata.best/api/v1/data/products

Get your free API key from RapidAPI or contact [email protected] for direct access.

Base URL

https://opendata.best/api/v1

All endpoints use HTTPS. HTTP requests are redirected to HTTPS automatically.

List Products

GET /data/products

Returns the full catalog of available data products.

ParameterTypeDescription
limitintegerMax results (default: 100, max: 1000)
offsetintegerPagination offset
categorystringFilter by category (e.g., business, procurement)
countrystringFilter by ISO country code (e.g., US, CA)

Example Response

{
  "status": "ok",
  "data": [
    {
      "product_id": "us_sam_gov",
      "display_name": "US Federal Contracts (SAM.gov)",
      "category": "procurement",
      "country": "US",
      "description": "Federal contract awards and opportunities...",
      "record_count": 1250000,
      "search_capability": "text_search"
    }
  ]
}

Query a Product

GET /data/products/{product_id}/query

Search and retrieve records from a specific data product.

ParameterTypeDescription
searchstringFull-text search query
limitintegerMax results (default: 25, max: 100)
offsetintegerPagination offset

Some products support additional filter parameters specific to their data type. Check the product's metadata for available filters.

Query Parameters

Parameters vary by product type. Common patterns:

Business Registries

ParameterDescription
searchCompany name or keyword
stateState/province filter
statusEntity status (active, inactive)

Procurement

ParameterDescription
searchContract title or keyword
agencyIssuing agency
naics_codeNAICS industry code

Response Format

All responses are JSON with a consistent structure:

{
  "status": "ok",
  "request_id": "uuid-v4",
  "data": [ ... ],
  "meta": {
    "total": 1250,
    "limit": 25,
    "offset": 0,
    "product_id": "us_sam_gov",
    "cache_hit": true
  }
}

Error Handling

StatusMeaning
200Success
400Bad request — missing or invalid parameters
401Invalid or missing API key
404Product not found
429Rate limit exceeded
500Server error — please retry

Rate Limits

PlanRequests/MonthRate
Free1001 req/sec
Pro ($29/mo)10,00010 req/sec
EnterpriseUnlimitedCustom

Rate limit headers are included in every response: X-RateLimit-Remaining, X-RateLimit-Reset.

Examples

Search US Business Registries

curl "https://opendata.best/api/v1/data/products/us_business_fl/query?search=OpenAI" \
  -H "X-API-Key: YOUR_KEY"

Find Government Contracts

curl "https://opendata.best/api/v1/data/products/us_sam_gov/query?search=cybersecurity" \
  -H "X-API-Key: YOUR_KEY"

Screen Against Sanctions

curl "https://opendata.best/api/v1/data/products/us_ofac_sdn/query?search=Bank%20of%20Iran" \
  -H "X-API-Key: YOUR_KEY"

List All Canadian Products

curl "https://opendata.best/api/v1/data/products?country=CA" \
  -H "X-API-Key: YOUR_KEY"