Introduction

You can access GAPC API through GraphQL.





GAPC parts catalog query on GraphQL

Attributes to query

The attributes below are used to identify parts. The identifiers used are decided based on the part category.

  • Part name
  • Category
  • Short description
  • Fitment notes
  • Images
  • Media
  • Part position
  • Attributes
  • Dimensions
  • Interchangeable OE parts
  • Interchangeable aftermarket parts
See full list→

Use cases

E-commerce

Add a vehicle selector (Year Make Model Filter) to your platform, allowing customers to browse for parts based on the vehicle.

Add a compatibility checker on a product page allowing customers to check that the product fits before purchasing.

Auto Parts fitment data vehicle selector Year Make Model Filter

Example Queries

GAPC is used to query all information relating to parts information and fitment data.

With GAPC you can query a part and return all the vehicles from UVDB that fits.

{
  gapc {
    parts(vehicle: {vehicle_definition_id:1000}, limit:5) {
      items {
        name
        barcode
        gapc_brand {
          name
        }
        gapc_part_type {
          name
        }
      }
    }
  }
}

In this example below, we're querying part information and fitment data from a particular store in a marketplace.

{
  me {
    store {
      id
      name
    }
  }
  search(store_id: YOUR_STORE_ID_HERE, limit: 10, q: "") {
    products {
      items {
        id
        name
        price
        presentment_price {
          price
          display_price
          currency_code
        }
        images {
          thumb_url
          large_url
        }
        gapc_part {
          name
          barcode
          gapc_brand {
            name
          }
          fitted_uvdb_vehicle_definitions {
            items {
              id
              name
              uvdb_make {
                name
              }
              uvdb_model {
                name
              }
            }
          }
        }
      }
    }
  }
}