Get compatible cars list by article number
v2EndpointId: API-PAR-007
Get a list of compatible vehicles for a given article number
Media Type: multipart/form-data
Parameters Specification
| Parameter Field | Type | Constraints | Description / Default Value | Param Location |
|---|---|---|---|---|
typeId |
int | Required |
Example Value: 1
|
body
|
langId |
int | Required |
Example Value: 4
|
body
|
articleNo |
string | Required |
Example Value: C 2029
|
body
|
supplierId |
int | Required |
Example Value: 4
|
body
|
countryFilterId |
int | Required |
Example Value: 63
|
body
|
Use this endpoint
POST
https://auto-parts-catalog.apiprofile.com/api/articles/get-compatible-cars-by-article-number
curl -X POST 'https://auto-parts-catalog.apiprofile.com/api/articles/get-compatible-cars-by-article-number' \
-H 'Accept: application/json' \
-H 'x-apiprofile-key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"typeId":"1","langId":"4","articleNo":"C 2029","supplierId":"4","countryFilterId":"63"}'
const response = await fetch('https://auto-parts-catalog.apiprofile.com/api/articles/get-compatible-cars-by-article-number', {
method: 'POST',
headers: {
'Accept': 'application/json',
'x-apiprofile-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"typeId": "1",
"langId": "4",
"articleNo": "C 2029",
"supplierId": "4",
"countryFilterId": "63"
}),
});
const data = await response.json();
console.log(data);
const axios = require('axios');
const { data } = await axios({
method: 'post',
url: 'https://auto-parts-catalog.apiprofile.com/api/articles/get-compatible-cars-by-article-number',
headers: {
'Accept': 'application/json',
'x-apiprofile-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
data: {
"typeId": "1",
"langId": "4",
"articleNo": "C 2029",
"supplierId": "4",
"countryFilterId": "63"
},
});
console.log(data);
import requests
url = "https://auto-parts-catalog.apiprofile.com/api/articles/get-compatible-cars-by-article-number"
headers = {
'Accept': 'application/json',
'x-apiprofile-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
}
payload = {
'typeId': '1',
'langId': '4',
'articleNo': 'C 2029',
'supplierId': '4',
'countryFilterId': '63',
}
response = requests.request('POST', url, headers=headers, json=payload)
print(response.json())
<?php
$ch = curl_init();
$payload = array (
'typeId' => '1',
'langId' => '4',
'articleNo' => 'C 2029',
'supplierId' => '4',
'countryFilterId' => '63',
);
curl_setopt_array($ch, [
CURLOPT_URL => 'https://auto-parts-catalog.apiprofile.com/api/articles/get-compatible-cars-by-article-number',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Accept: application/json',
'x-apiprofile-key: YOUR_API_KEY',
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode($payload),
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
package main
import (
"fmt"
"io"
"net/http"
"strings"
)
func main() {
url := "https://auto-parts-catalog.apiprofile.com/api/articles/get-compatible-cars-by-article-number"
payload := strings.NewReader(`{"typeId":"1","langId":"4","articleNo":"C 2029","supplierId":"4","countryFilterId":"63"}`)
req, _ := http.NewRequest("POST", url, payload)
req.Header.Set("Accept", "application/json")
req.Header.Set("x-apiprofile-key", "YOUR_API_KEY")
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
require 'uri'
require 'net/http'
require 'json'
url = URI('https://auto-parts-catalog.apiprofile.com/api/articles/get-compatible-cars-by-article-number')
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = (url.scheme == 'https')
request = Net::HTTP::Post.new(url)
request['Accept'] = 'application/json'
request['x-apiprofile-key'] = 'YOUR_API_KEY'
request['Content-Type'] = 'application/json'
request.body = {
"typeId": "1",
"langId": "4",
"articleNo": "C 2029",
"supplierId": "4",
"countryFilterId": "63"
}.to_json
response = http.request(request)
puts response.read_body
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://auto-parts-catalog.apiprofile.com/api/articles/get-compatible-cars-by-article-number"))
.header("Accept", "application/json")
.header("x-apiprofile-key", "YOUR_API_KEY")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\"typeId\":\"1\",\"langId\":\"4\",\"articleNo\":\"C 2029\",\"supplierId\":\"4\",\"countryFilterId\":\"63\"}"))
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("POST"), "https://auto-parts-catalog.apiprofile.com/api/articles/get-compatible-cars-by-article-number");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("x-apiprofile-key", "YOUR_API_KEY");
request.Headers.Add("Content-Type", "application/json");
request.Content = new StringContent("{\"typeId\":\"1\",\"langId\":\"4\",\"articleNo\":\"C 2029\",\"supplierId\":\"4\",\"countryFilterId\":\"63\"}", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);