API Endpoints
Reverse email
Use this endpoint to find a people profile URL from a professional email
Endpoint
POST https://api.airscale.io/v1/reverse-email
Headers
Key | Value | Required |
|---|---|---|
Content-Type | application/json | Yes |
Authorization | Bearer <YOUR_API_KEY> | Yes |
Request Body
{ "email": "victor@airscale.io" }
Field | Type | Required |
|---|---|---|
string | Yes |
Response
Successful Response (200)
{ "status": "success", "url": "https://www.linkedin.com/vdetraz" }
Example Usage
cURL
curl -X POST https://api.airscale.io/v1/reverse-email \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"email": "victor@airscale.io"}'
Python
import requests url = 'https://api.airscale.io/v1/reverse-email' headers = { 'Authorization': 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' } payload = { 'email': 'victor@airscale.io' } response = requests.post(url, headers=headers, json=payload) data = response.json() print(data)
JavaScript (Fetch)
const response = await fetch('https://api.airscale.io/v1/reverse-email', { method: 'POST', headers: { 'Authorization': 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' }, body: JSON.stringify({ email: 'victor@airscale.io' }) }); const data = await response.json(); console.log(data);
PHP
<?php function reverseEmailLookup($email) { $url = 'https://api.airscale.io/v1/reverse-email'; $apiKey = 'YOUR_API_KEY'; $data = ['email' => $email]; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data)); curl_setopt($ch, CURLOPT_HTTPHEADER, [ 'Content-Type: application/json', 'Authorization: Bearer ' . $apiKey ]); $response = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); if ($response === false) {
GO
package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" ) type ReverseEmailRequest struct { Email string `json:"email"` } func reverseEmailLookup(email string) error { url := "https://api.airscale.io/v1/reverse-email" payload := ReverseEmailRequest{ Email: email, } jsonData, err := json.Marshal(payload) if err != nil { return fmt.Errorf("error marshaling JSON: %w", err) } req, err := http.NewRequest("POST", url, bytes.NewBuffer(jsonData)) if err != nil { return fmt.Errorf("error creating request: %w", err) } req.Header.Set("Authorization", "Bearer YOUR_API_KEY") req.Header.Set("Content-Type", "application/json") client := &http.Client{} resp, err := client.Do(req) if err != nil { return fmt.Errorf("error making request: %w", err) } defer resp.Body.Close() body, err := io.ReadAll(resp.Body) if err != nil { return fmt.Errorf("error reading response: %w", err) } fmt.Printf("Status: %d\n", resp.StatusCode) fmt.Printf("Response: %s\n", string(body)) return nil } func main() { err := reverseEmailLookup("victor@airscale.io") if err != nil { fmt.Printf("Error: %v\n", err) } }
On this page
