├── LICENSE └── README.md /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 techspecs 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![GitHub stars](https://img.shields.io/github/stars/techspecs/api.svg)](https://github.com/techspecs/api/stargazers) 2 | [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/shakee93/fonoapi/master/LICENSE) 3 | 4 | # Getting Started With TechSpecs API 5 | 6 | TechSpecs API provides the easiest way to get instant access to the official technical specifications of the worlds' consumer electronics. Our database is the largest and most up-to-date in the world so you can be sure you're always getting the latest information. 7 | 8 | **Available categories;** 9 | * Smartphones 10 | * Tablets 11 | * Smartwatches 12 | * Laptops 13 | 14 | **Available Endpoints;** 15 | * Product Search 16 | * Product Details 17 | * Get All Categories 18 | * Get All Brands 19 | * Get All Products 20 | 21 | **Available Datapoints;** 22 | * Specifications: **Dimension, Weight, Display, Camera, Battery, CPU, GPU, and over 200 more…** 23 | * Images: **Front view, Back view** 24 | * Launch Prices: Available for iOS devices 25 | 26 | 27 | ## Prerequisite: Get your TechSpecs API Key & URL 28 | Visit https://techspecs.io to signup and get your API key. Registration is free, no credit card required. 29 | 30 | ## 1. Product Search 31 | ### Python Example 32 | 33 | ```python 34 | import requests 35 | 36 | url = "https://api.techspecs.io/v4/product/search?query=iPhone%2014" 37 | 38 | headers = { 39 | "accept": "application/json", 40 | "Authorization": "Bearer techspecs_api_key", 41 | "content-type": "application/json" 42 | } 43 | 44 | response = requests.post(url, headers=headers) 45 | 46 | print(response.text) 47 | ``` 48 | 49 | ### Node Example 50 | ```node 51 | const sdk = require('api')('@techspecs/v3.0#5dlse1lclezifmcf'); 52 | 53 | sdk.searchProducts({query: 'iPhone%2014', authorization: 'Bearer techspecs_api_key'}) 54 | .then(({ data }) => console.log(data)) 55 | .catch(err => console.error(err)); 56 | ``` 57 | ### PHP Example 58 | ```php 59 | request('POST', 'https://api.techspecs.io/v4/product/search?query=iPhone%2014', [ 65 | 'headers' => [ 66 | 'Authorization' => 'Bearer techspecs_api_key', 67 | 'accept' => 'application/json', 68 | 'content-type' => 'application/json', 69 | ], 70 | ]); 71 | 72 | echo $response->getBody(); 73 | ``` 74 | ## Docs and code samples 75 | Visit https://techspecs.readme.io to read the documentation. 76 | 77 | ## Feedback 78 | Visit https://feedback.techspecs.io/ to share your feedback and/or feature requests. 79 | 80 | ## Support 81 | Email: support@techspecs.io 82 | 83 | --------------------------------------------------------------------------------