For the native PHP8 composer package, please check
https://github.com/sharpapi/sharpapi-php-client
composer require sharpapi/sharpapi-laravel-client
SHARP_API_KEY=your_api_key_here
$statusUrl = \SharpApiService::generateProductIntro( 'Razer Blade 16 Gaming Laptop: NVIDIA GeForce RTX 4090-13th Gen Intel 24-Core i9 HX CPU-16 inch Dual Mode Mini LED (4K UHD+ 120Hz & FHD+ 240Hz) - 32GB RAM - 2TB SSD - Compact GaN Charger - Windows 11 NVIDIA GEFORCE RTX 4090 GRAPHICS,13TH GEN INTEL CORE I9 13950HX PROCESSOR', 'English'); $result = \SharpApiService::fetchResults($statusUrl); $result->getResultJson();
{ "product_intro": "Experience the ultimate gaming and content creation powerhouse with the Razer Blade 16 Gaming Laptop. Featuring the NVIDIA GeForce RTX 4090 graphics and the 13th Gen Intel Core i9 HX CPU, this laptop delivers unparalleled performance for both gaming and resource-intensive tasks. The next-gen dual-mode Mini LED display offers stunning 4K resolution for creative work and ultra-fast refresh rates for smooth gameplay. With a compact GaN charger and an anodized aluminium unibody, this laptop is designed for portability without compromising on power and durability."}
$statusUrl = \SharpApiService::productReviewSentiment( 'This console has amazing graphics!'); $result = \SharpApiService::fetchResults($statusUrl); $result->getResultJson();
{ "opinion": "POSITIVE", "score": 94 }
$statusUrl = \SharpApiService::productCategories( 'Razer Blade 16 Gaming Laptop: NVIDIA GeForce RTX 4090-13th Gen Intel 24-Core i9 HX CPU - 16 inch Dual Mode Mini LED (4K UHD+ 120Hz & FHD+ 240Hz) - 32GB RAM - 2TB SSD - Compact GaN Charger - Windows 11', 'English'); $result = \SharpApiService::fetchResults($statusUrl); $result->getResultJson();
[ { "name": "Gaming Laptops", "weight": 10 }, { "name": "Computer Hardware", "weight": 9 }, { "name": "Electronics", "weight": 8 }, { "name": "Technology", "weight": 7 } ]
$statusUrl = \SharpApiService::generateThankYouEmail( '[IM From] Honey Mask 4.23oz | wash off type, real honey 38.7%, Deep moisturization, Nourishment,Hydrating and Clear Complexion.' , 'English'); $result = \SharpApiService::fetchResults($statusUrl); $result->getResultJson();
{ "email": "We would like to sincerely thank you for purchasing the [I'M From] Honey Mask 4.23oz | wash off type, real honey 38.7%, Deep moisturization, Nourishment, Hydrating and Clear Complexion. We appreciate your support and hope that our product will provide your skin with the nourishment and hydration it needs. If you have any questions or need further assistance, please feel free to contact us. Your satisfaction is our priority, and we are here to ensure that you have a positive experience with our products. Thank you once again for choosing our products. We value your trust and look forward to serving you again." }
$statusUrl = \SharpApiService::translate( 'This phone has the best camera on the market.', 'Spanish'); $result = \SharpApiService::fetchResults($statusUrl); $result->getResultJson();
{ "content": "Este teléfono tiene la mejor cámara del mercado.", "from_language": "English", "to_language": "Spanish" }
$statusUrl = \SharpApiService::detectSpam( 'Hello, this is John from Finance Plus. I\'ve called before, We\'ve helped other individuals like you improve their credit. Please give me a call later.'); $result = \SharpApiService::fetchResults($statusUrl); $result->getResultJson();
{ "pass": false, "score": 80, "reason": "The provided content is likely spam. It exhibits characteristics common in spam messages, including unsolicited outreach, a generic and impersonal tone, and a call to action for credit improvement without specific details about the individual situation. The mention of having called before may be an attempt to create a false sense of familiarity. The overall content raises suspicion of potential spam." }
$statusUrl = \SharpApiService::detectPhones( 'Where to find us? Call with a sales tech advisor: Call: 1800-394-7486 or our Singapore office +65 8888 8888'); $result = \SharpApiService::fetchResults($statusUrl); $result->getResultJson();
[ { "parsed_number": "+18003947486", "detected_number": "1800-394-7486" }, { "parsed_number": "+6588888888", "detected_number": "+65 8888 8888" } ]
$statusUrl = \SharpApiService::detectEmails( 'Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Contact us at example@email.com or lorem.ipsum@email.com for more information. Hidden_email[at]amazon.com'); $result = \SharpApiService::fetchResults($statusUrl); $result->getResultJson();
[ "example@email.com", "lorem.ipsum@email.com", "Hidden_email@amazon.com" ]
$statusUrl = \SharpApiService::summarizeText( 'Xbox Wireless Controller - Carbon Black Includes Xbox Wireless and Bluetooth technology for wireless gaming on supported consoles, Windows 10 PCs, Android phones, and tablets. Stay on target with a textured grip on the triggers, bumpers, and back case. A new hybrid D-pad for accurate, yet familiar input. Make the controller your own by customizing button mapping with the Xbox Accessories app. Manufacturer Microsoft, Item model number QAT-00003 Product Dimensions 17.8 x 17.7 x 7.2 cm; 455 Grams ASIN B08HNSLYYD', 'English'); $result = \SharpApiService::fetchResults($statusUrl); $result->getResultJson();
{ "summary": "Experience gaming like never before with the Xbox Wireless Controller in Carbon Black. This sleek controller offers the freedom of wireless gaming on supported consoles, Windows 10 PCs, Android phones, and tablets give you the flexibility to play wherever you go. Its textured grip ensures you stay on target during intense gameplay, while the new hybrid D-pad provides accurate and familiar input. Plus, you can personalize your gaming experience by customizing button mapping using the Xbox Accessories app. Elevate your gaming with this high-quality controller from Microsoft, designed for precision and comfort." }
$statusUrl = \SharpApiService::generateSeoTags( 'Spigen Urban Fit Designed for New MacBook Pro 14 Inch and 16 Inch Models (2023 and 2021) - Protective Hard Shell Case - Black, Brand Spigen, Color Black, Compatible Devices MacBook Pro 14 inch, Form Factor Case, Shell Type Hard, About this item, Sleek and minimal design with a premium knit fabric, Durable but slim enhanced daily protection, Precise cutouts around ports for easy access, Overheating prevention with elevated bottom, Designed specifically for your MacBook Pro 14 inch with new M3 / M3 Pro / M3 Max and M2 Pro / M2 Max / M1 Pro / M1 Max Chip (A2779 / A2442 / 2023 / 2021), URL: https://www.amazon.com/Spigen-Urban-Designed-MacBook-Shell/dp/B09R2KCXD2?ref_=ast_sto_dp&th=1 , product photo: https://m.media-amazon.com/images/I/71WagddZ64L._AC_SX679_.jpg', 'English'); $result = \SharpApiService::fetchResults($statusUrl); $result->getResultJson();
{ "meta_tags": { "title": "Spigen Urban Fit Designed for MacBook Pro 14 Inch and 16 Inch Models", "description": "Sleek and minimal design with a premium knit fabric. Durable but slim enhanced daily protection. Precise cutouts around ports for easy access. Overheating prevention with elevated bottom.", "keywords": "Spigen, Urban Fit, MacBook Pro 14 inch, protective case, hard shell case, black, M3, M3 Pro, M3 Max, M2 Pro, M2 Max, M1 Pro, M1 Max", "author": "", "og:url": "https://www.amazon.com/Spigen-Urban-Designed-MacBook-Shell/dp/B09R2KCXD2?ref_=ast_sto_dp&th=1", "og:type": "website", "og:image": "https://m.media-amazon.com/images/I/71WagddZ64L._AC_SX679_.jpg", "og:title": "Spigen Urban Fit Designed for MacBook Pro 14 Inch and 16 Inch Models", "og:site_name": "Amazon.com", "og:description": "Sleek and minimal design with a premium knit fabric. Durable but slim enhanced daily protection. Precise cutouts around ports for easy access. Overheating prevention with elevated bottom.", "twitter:card": "summary_large_image", "twitter:image": "https://m.media-amazon.com/images/I/71WagddZ64L._AC_SX679_.jpg", "twitter:title": "Spigen Urban Fit Designed for MacBook Pro 14 Inch and 16 Inch Models", "twitter:description": "Sleek and minimal design with a premium knit fabric. Durable but slim enhanced daily protection. Precise cutouts around ports for easy access. Overheating prevention with elevated bottom.", "twitter:creator": "" } }
How AI-Powered APIs are Transforming Recruitment
Aug 13, 2024
Discover the impact of AI-powered HR tech stacks on modern recruitment challenges and how top HR APIs are reshaping the hiring landscape in 2024. Enhance candidate experience, improve efficiency, and stay competitive with innovative HR technology solutions.
The Future of API Marketplaces: Integrating AI-Powered Solutions
Jul 19, 2024
API marketplaces are evolving rapidly, driven by the surge in AI-based solutions. As a seasoned technologist with over 25 years of coding experience, I’ve had the privilege of witnessing and contributing to this transformation. Recently, I’ve delved deep into the intricacies of API marketplace integration from the perspective of an AI-powered API provider. This article shares my findings, insights, and visions for the future.
Why GPT API Isn’t Good for Scaling Business Workflow Automation
Jun 3, 2024
Integrating AI into business workflows can significantly boost efficiency and productivity. However, while directly accessing APIs like OpenAI's ChatGPT or Google's Gemini might seem like an easy solution, it comes with several challenges that can complicate automation. I'm probably going to ruffle some feathers here, but hear me out. 🙂
Feb 2, 2024
SharpAPI is a powerful AI-powered API, which provides a range of workflow automation endpoints to help improve efficiency across various industries. It has features for E-commerce, Content & Marketing Automation, SEO, HR Tech, and Travel & Hospitality industries.
When Laravel/PHP E-commerce App Meets AI
Jan 1, 2024
Hey fellow Laravel enthusiasts! In the ever-evolving landscape of e-commerce, integrating AI into your Laravel applications is not just a luxury, it’s a necessity. With SharpAPI’s Laravel package, it’s now easier than ever. In this blog, I’ll guide you through 10 transformative use cases for enhancing your Laravel-based e-commerce applications using SharpAPI.