Source Parts Inc. Parts API

Part search and data

GitHub OpenAPI

Operations 15

GET /parts/search Search for parts #
GET /parts/{sku} Get part by SKU #
GET /parts/{sku}/inventory Get part inventory #
GET /parts/{sku}/pricing Get part pricing #
GET /parts/{sku}/alternatives Find alternative parts #
GET /parts/search/status/{job_id} Poll an async supplier search (free — never metered/billed) #
GET /parts/{sku}/specs Get parametric technical specifications #
GET /parts/{sku}/datasheet Get the datasheet URL for a part #
GET /parts/{sku}/marking Get component marking/labeling info #
GET /parts/marking/{code} Resolve a top-marking code to candidate parts #
GET /parts/{sku}/gather Gather specs + inventory + pricing + datasheet in one call #
GET /parts/categories List part categories #
GET /parts/manufacturers List manufacturers #
POST /parts/datasheets/batch Fetch datasheets for multiple SKUs #
POST /parts Add a new part to the database #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/source-parts:source-parts-parts-api"
All apis
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.

Get an API 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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

source-parts-parts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Source Parts API
  description: 'The Source Parts v1 API provides programmatic access to electronic parts data,

    inventory management, BOM processing, and manufacturing workflows.


    **Required headers:** every request must include a non-empty `User-Agent`

    header identifying your application (e.g. `User-Agent: your-app/1.0`).

    Requests without one are rejected with `403 Forbidden` before authentication.'
  version: 1.1.0
  contact:
    name: Source Parts Support
    email: support@source.parts
    url: https://source.parts
  license:
    name: Proprietary
    url: https://source.parts/terms
servers:
- url: https://api.source.parts/v1
  description: Production
- url: http://localhost:9900/v1
  description: Local development
security:
- ApiKeyAuth: []
tags:
- name: Parts
  description: Part search and data
paths:
  /parts/search:
    get:
      tags:
      - Parts
      summary: Search for parts
      parameters:
      - $ref: '#/components/parameters/UserAgentHeader'
      - name: q
        in: query
        required: true
        schema:
          type: string
        description: Search query
      - name: limit
        in: query
        schema:
          type: integer
          default: 25
          maximum: 100
        description: Maximum results
      - name: offset
        in: query
        schema:
          type: integer
          default: 0
        description: Skip results for pagination
      - name: category
        in: query
        schema:
          type: string
        description: Filter by category
      - name: manufacturer
        in: query
        schema:
          type: string
        description: Filter by manufacturer
      responses:
        '200':
          description: Search results
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartsSearchResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
      operationId: getPartsSearch
      x-operation-id-source: derived
  /parts/{sku}:
    get:
      tags:
      - Parts
      summary: Get part by SKU
      parameters:
      - $ref: '#/components/parameters/sku'
      responses:
        '200':
          description: Part details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartResponse'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: getPartsBySku
      x-operation-id-source: derived
  /parts/{sku}/inventory:
    get:
      tags:
      - Parts
      summary: Get part inventory
      parameters:
      - $ref: '#/components/parameters/sku'
      responses:
        '200':
          description: Inventory data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InventoryResponse'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: getPartsBySkuInventory
      x-operation-id-source: derived
  /parts/{sku}/pricing:
    get:
      tags:
      - Parts
      summary: Get part pricing
      parameters:
      - $ref: '#/components/parameters/sku'
      - name: quantities
        in: query
        schema:
          type: string
          default: 1,10,100
        description: Comma-separated quantities for price breaks
      responses:
        '200':
          description: Pricing data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PricingResponse'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: getPartsBySkuPricing
      x-operation-id-source: derived
  /parts/{sku}/alternatives:
    get:
      tags:
      - Parts
      summary: Find alternative parts
      parameters:
      - $ref: '#/components/parameters/sku'
      - name: max_results
        in: query
        schema:
          type: integer
          default: 10
          maximum: 50
      responses:
        '200':
          description: Alternative parts
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AlternativesResponse'
      operationId: getPartsBySkuAlternatives
      x-operation-id-source: derived
  /parts/search/status/{job_id}:
    get:
      tags:
      - Parts
      summary: Poll an async supplier search (free — never metered/billed)
      description: When /parts/search must query external suppliers it returns a job_id + poll_url; poll this until search_status is "complete". Polling is free.
      parameters:
      - $ref: '#/components/parameters/UserAgentHeader'
      - $ref: '#/components/parameters/jobId'
      responses:
        '200':
          $ref: '#/components/responses/Success'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: getPartsSearchStatusByJobId
      x-operation-id-source: derived
  /parts/{sku}/specs:
    get:
      tags:
      - Parts
      summary: Get parametric technical specifications
      parameters:
      - $ref: '#/components/parameters/UserAgentHeader'
      - $ref: '#/components/parameters/sku'
      responses:
        '200':
          $ref: '#/components/responses/Success'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: getPartsBySkuSpecs
      x-operation-id-source: derived
  /parts/{sku}/datasheet:
    get:
      tags:
      - Parts
      summary: Get the datasheet URL for a part
      parameters:
      - $ref: '#/components/parameters/UserAgentHeader'
      - $ref: '#/components/parameters/sku'
      responses:
        '200':
          $ref: '#/components/responses/Success'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: getPartsBySkuDatasheet
      x-operation-id-source: derived
  /parts/{sku}/marking:
    get:
      tags:
      - Parts
      summary: Get component marking/labeling info
      parameters:
      - $ref: '#/components/parameters/UserAgentHeader'
      - $ref: '#/components/parameters/sku'
      responses:
        '200':
          $ref: '#/components/responses/Success'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: getPartsBySkuMarking
      x-operation-id-source: derived
  /parts/marking/{code}:
    get:
      tags:
      - Parts
      summary: Resolve a top-marking code to candidate parts
      description: 'Inverse of /parts/{sku}/marking. Markings are not unique, so the response is ranked candidates, each labeled with the lane that matched: catalog (stored marking equals the code), identified (prior identify.parts recognitions of this code), or mpn (MPN starts or ends with the code).'
      parameters:
      - $ref: '#/components/parameters/UserAgentHeader'
      - name: code
        in: path
        required: true
        schema:
          type: string
        description: The marking as printed on the package (e.g. F407VG)
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 10
          maximum: 25
        description: Max candidates per match lane
      responses:
        '200':
          $ref: '#/components/responses/Success'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: getPartsMarkingByCode
      x-operation-id-source: derived
  /parts/{sku}/gather:
    get:
      tags:
      - Parts
      summary: Gather specs + inventory + pricing + datasheet in one call
      parameters:
      - $ref: '#/components/parameters/UserAgentHeader'
      - $ref: '#/components/parameters/sku'
      responses:
        '200':
          $ref: '#/components/responses/Success'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: getPartsBySkuGather
      x-operation-id-source: derived
  /parts/categories:
    get:
      tags:
      - Parts
      summary: List part categories
      parameters:
      - $ref: '#/components/parameters/UserAgentHeader'
      responses:
        '200':
          $ref: '#/components/responses/Success'
      operationId: getPartsCategories
      x-operation-id-source: derived
  /parts/manufacturers:
    get:
      tags:
      - Parts
      summary: List manufacturers
      parameters:
      - $ref: '#/components/parameters/UserAgentHeader'
      responses:
        '200':
          $ref: '#/components/responses/Success'
      operationId: getPartsManufacturers
      x-operation-id-source: derived
  /parts/datasheets/batch:
    post:
      tags:
      - Parts
      summary: Fetch datasheets for multiple SKUs
      parameters:
      - $ref: '#/components/parameters/UserAgentHeader'
      requestBody:
        $ref: '#/components/requestBodies/GenericJson'
      responses:
        '200':
          $ref: '#/components/responses/Success'
        '400':
          $ref: '#/components/responses/BadRequest'
      operationId: postPartsDatasheetsBatch
      x-operation-id-source: derived
  /parts:
    post:
      tags:
      - Parts
      summary: Add a new part to the database
      x-generated: true
      x-handler: parts.create_part
      responses:
        '200':
          description: Success
        '401':
          description: Authentication required
      operationId: postParts
      x-operation-id-source: derived
components:
  schemas:
    PartResponse:
      type: object
      properties:
        status:
          type: string
        data:
          $ref: '#/components/schemas/Part'
    InventoryResponse:
      type: object
      properties:
        status:
          type: string
        data:
          type: object
          properties:
            part_number:
              type: string
            quantity:
              type: integer
            minimum_quantity:
              type: integer
            location:
              type: string
    PartsSearchResponse:
      type: object
      properties:
        status:
          type: string
        data:
          type: object
          properties:
            parts:
              type: array
              items:
                $ref: '#/components/schemas/Part'
            total:
              type: integer
            limit:
              type: integer
            offset:
              type: integer
    PricingResponse:
      type: object
      properties:
        status:
          type: string
        data:
          type: object
          properties:
            part_number:
              type: string
            currency:
              type: string
            price_breaks:
              type: array
              items:
                type: object
                properties:
                  quantity:
                    type: integer
                  unit_price:
                    type: number
    SuccessResponse:
      type: object
      properties:
        status:
          type: string
          example: success
        data:
          type: object
          description: Endpoint-specific payload
    ErrorResponse:
      type: object
      properties:
        status:
          type: string
          example: error
        error:
          type: string
        details:
          type: object
    Part:
      type: object
      properties:
        part_number:
          type: string
        manufacturer:
          type: string
        description:
          type: string
        category:
          type: string
        unit_price:
          type: number
        quantity:
          type: integer
    AlternativesResponse:
      type: object
      properties:
        status:
          type: string
        data:
          type: object
          properties:
            part_number:
              type: string
            alternatives:
              type: array
              items:
                type: object
                properties:
                  sku:
                    type: string
                  manufacturer:
                    type: string
                  compatibility:
                    type: string
                  match_score:
                    type: number
  responses:
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Success:
      description: Success — payload under "data"
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/SuccessResponse'
    NotFound:
      description: Not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    BadRequest:
      description: Bad request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  parameters:
    jobId:
      name: job_id
      in: path
      required: true
      schema:
        type: string
      description: Async job id returned by the originating endpoint
    sku:
      name: sku
      in: path
      required: true
      schema:
        type: string
      description: Part number or SKU
    UserAgentHeader:
      name: User-Agent
      in: header
      required: true
      schema:
        type: string
        example: your-app/1.0
      description: 'Required on every request. Must be a non-empty string identifying your application; requests without a User-Agent are rejected with 403 Forbidden before authentication.

        '
  requestBodies:
    GenericJson:
      required: true
      content:
        application/json:
          schema:
            type: object
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: API key (sp_live_xxx or sp_test_xxx)