Discover/SparkFun API
live

SparkFun APIsparkfun.com

Access SparkFun's electronics catalog via API. Search products, retrieve pricing, bulk tiers, stock status, category hierarchy, and today's deals.

Endpoint health
verified 16h ago
get_product_pricing_and_stock
get_todays_deals
get_product_details
browse_category
list_all_categories
6/6 passing latest checkself-healing
Endpoints
6
Updated
22d ago

What is the SparkFun API?

The SparkFun API covers 6 endpoints that expose product search, full product details, live pricing, stock status, category browsing, and daily deals from SparkFun's electronics catalog. The get_product_details endpoint alone returns 10 fields per product including bulk pricing tiers, review count, and image arrays. Whether you're building a parts-sourcing tool or a price tracker, the API gives structured access to SparkFun's full catalog.

Try it
Page number for pagination.
Items per page. Accepted values: 12, 24, 36, 48, all.
Search keyword (e.g. 'arduino', 'sensor', 'led').
Sort field. Accepted values: name, price, sf_golive_date, relevance.
api.parse.bot/scraper/13fda662-fc79-49a7-a8b2-70033f773694/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/13fda662-fc79-49a7-a8b2-70033f773694/search_products?page=1&limit=12&query=arduino&sort_by=relevance' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace sparkfun-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""SparkFun Electronics API — search products, browse categories, check stock."""
from parse_apis.sparkfun_electronics_api import SparkFun, Sort, ProductNotFound

client = SparkFun()

# Search for Arduino products sorted by price, capped at 5 results.
for item in client.products.search(query="arduino", sort_by=Sort.PRICE, limit=5):
    print(item.name, item.price, item.slug)

# Drill into the first search result for full details.
summary = client.products.search(query="sensor", limit=1).first()
if summary:
    product = summary.details()
    print(product.name, product.sku, product.stock_status)

# Browse a category by constructing it from its slug.
for item in client.category(slug="audio").products(sort_by=Sort.NAME, limit=3):
    print(item.name, item.price)

# Fetch product pricing and bulk tiers from a known product.
try:
    detail = client.products.get(product_id="sparkfun-qwiic-buzzer")
    pricing = detail.pricing()
    print(pricing.price, pricing.stock_status, len(pricing.price_tiers))
except ProductNotFound as exc:
    print(f"Product not found: {exc.product_id}")

# List available categories.
for cat in client.categories.list(limit=3):
    print(cat.name, cat.slug, len(cat.subcategories))

print("exercised: products.search / summary.details / products.get / product.pricing / category.products / categories.list")
All endpoints · 6 totalmissing one? ·

Full-text search over SparkFun's product catalog. Returns paginated results sorted by relevance, name, price, or go-live date. Each result includes product name, price, URL slug, and thumbnail. Use the slug to fetch full details via get_product_details.

Input
ParamTypeDescription
pageintegerPage number for pagination.
limitstringItems per page. Accepted values: 12, 24, 36, 48, all.
queryrequiredstringSearch keyword (e.g. 'arduino', 'sensor', 'led').
sort_bystringSort field. Accepted values: name, price, sf_golive_date, relevance.
Response
{
  "type": "object",
  "fields": {
    "page": "current page number",
    "limit": "items per page",
    "query": "search keyword echoed back",
    "products": "array of product summaries with name, sku, url, slug, price, image_url",
    "total_results": "total number of matching products"
  },
  "sample": {
    "data": {
      "page": 1,
      "limit": 12,
      "query": "arduino",
      "products": [
        {
          "sku": null,
          "url": "https://www.sparkfun.com/arduino-fio.html",
          "name": "Arduino Fio",
          "slug": "arduino-fio",
          "price": "$10.83",
          "image_url": "https://www.sparkfun.com/media/catalog/product/cache/df4360b598d6f0c75fa659693b376bad/1/0/10116-01.jpg"
        }
      ],
      "total_results": 467
    },
    "status": "success"
  }
}

About the SparkFun API

Search and Browse the Catalog

The search_products endpoint accepts a query string and returns paginated results including each product's name, sku, price, slug, and image_url. Pagination is controlled with page and limit (accepted values: 12, 24, 36, 48, or all), and results can be sorted by name, price, sf_golive_date, or relevance. The browse_category endpoint works the same way but scopes results to a specific category — supply a category_slug obtained from list_all_categories, which returns the full SparkFun category hierarchy including nested subcategories, each with its own slug and url.

Product Detail and Pricing

Passing a product slug to get_product_details returns the full data set for that item: sku, name, price, description, images array, rating (out of 5, or null if unrated), review_count, price_tiers for bulk purchasing, and an internal product_id. The get_product_pricing_and_stock endpoint is a focused alternative — it returns the same price, price_tiers, and sku fields, plus a stock_status string and a stock_details object with extended availability data. Use this endpoint when you need current availability without fetching the full product description.

Deals and Promotions

The get_todays_deals endpoint takes no inputs and returns the current set of discounted products from SparkFun's Today's Deals page. Each deal item includes name, sku, url, slug, price, and image_url — the same shape as search and category results, making it straightforward to integrate deal monitoring into an existing product pipeline.

Reliability & maintenanceVerified

The SparkFun API is a managed, monitored endpoint for sparkfun.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when sparkfun.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official sparkfun.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
16h ago
Latest check
6/6 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Track price changes on specific SparkFun SKUs by polling get_product_pricing_and_stock on a schedule
  • Build a parts sourcing tool that searches SparkFun by component keyword and returns in-stock items with pricing
  • Aggregate bulk pricing tiers from price_tiers to calculate cost at different order quantities
  • Monitor get_todays_deals daily to surface discounted components for a deal alert service
  • Construct a full category tree using list_all_categories to build a site mirror or internal catalog browser
  • Compare SparkFun product ratings and review counts across similar components using get_product_details
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does SparkFun have an official developer API?+
SparkFun does not currently publish a public developer API. This Parse API provides structured access to their catalog data without requiring a SparkFun developer account.
What does `get_product_details` return that `get_product_pricing_and_stock` does not?+
get_product_details returns the full description text, the images array, rating, review_count, and an internal product_id alongside pricing fields. get_product_pricing_and_stock returns only name, sku, price, price_tiers, stock_status, and stock_details — useful when description content is not needed and you want a lighter response.
Does the API expose customer review text or only aggregate ratings?+
The API currently returns rating (average out of 5) and review_count from get_product_details. Individual review text and reviewer metadata are not included. You can fork the API on Parse and revise it to add an endpoint that retrieves per-review content.
How does pagination work across search and category endpoints?+
Both search_products and browse_category accept page and limit parameters. The limit parameter accepts only discrete values: 12, 24, 36, 48, or all. search_products also echoes back total_results so you can calculate how many pages exist. browse_category does not currently return a total_results field in its response.
Does the API cover SparkFun product tutorials or learn guides?+
Not currently. The API covers catalog products, pricing, stock, categories, and deals. SparkFun's learn.sparkfun.com tutorials and hookup guides are separate content and not included in any current endpoint. You can fork the API on Parse and revise it to add an endpoint targeting that content.
Page content last updated . Spec covers 6 endpoints from sparkfun.com.
Related APIs in EcommerceSee all →
adafruit.com API
Browse and search the complete Adafruit electronics catalog to find product details, pricing, availability, and stock status across categories like magnets and motor components. Discover new arrivals and featured products to stay updated on the latest electronics and components available.
getfpv.com API
Search and browse products from GetFPV's catalog of FPV drone components and accessories. Retrieve listings by keyword or category, view detailed product specifications, pricing, and stock status, and explore new arrivals and current sales.
element14.com API
Search and browse Newark (element14)'s electronic components catalog to find product details, pricing, stock levels, and technical documentation. Retrieve specifications, explore categories and manufacturers, and access real-time inventory information to compare components.
cityelectricsupply.com API
Search and browse City Electric Supply's product catalog across categories, view detailed product information with localized pricing and inventory based on a ZIP code, and manage a shopping cart. Access product details and real-time stock availability for any area.
folksy.com API
Search and browse handmade products on Folksy by category, subcategory, or shop, and access detailed product information including pricing and availability. Discover sales and special offers while exploring artisan shops and their complete listings.
newegg.com API
Search Newegg's product catalog and retrieve listings, specifications, customer reviews, Q&A, category trees, and daily deals.
screwfix.com API
Access Screwfix's full product catalog — browse category hierarchies, retrieve paginated product listings with pricing and ratings, fetch detailed product specifications, and search by keyword. Ideal for price monitoring, product research, and catalog analysis.
amazon.com API
Search and browse Amazon products, reviews, offers, and deals, then manage your shopping cart all through a single integration. Get detailed product information, seller profiles, and best sellers to compare prices and make informed purchasing decisions.