API Function - Get Changes

Back to API list

Get a list of all changes (sets, mocs, parts, inventories) since a point in time. Use this to apply delta changes within your app/site instead of downloading the entire catalog. Max entries returned is 1000.

URL /api/get_changes
Method GET
Parameters key - API Key
format - How to display output data. Valid values: xml, json, csv, tsv
callback - Optional JSONP callback function name
timestamp - Only get changes after this time (UTC epoch seconds).
timestamp_max - If specified, only get changes before this time (UTC Epoch seconds).
type - Filter on one specific type of change (i.e. S, P, SI, etc), or leave blank for all.

Output data with fields:

  • new_value - Array of new values changed. Empty if this change was a deletion.
  • old_value - Array of old values changed. Empty if this change was an addition.
  • part_id - Part ID if relevant to type.
  • set_id - Set ID if relevan to type.
  • timestamp - Timestamp of change (UTC Epoch seconds).
  • type - P = Part details, PE = Part element mapping, PR = Part relationship, PM = Part number mapping, S = Set details, SI = Set Inventory, SM = Set id mapping, M = MOC details.
  • Error Codes:

  • INVALIDKEY - The API Key is invalid
  • Test Values

    API Key:
    Timestamp min (epoch UTC):
    Timestamp max (epoch UTC):

    Test Results