Skip to main content
This tutorial will show you how to build a simple “signup radar” that takes an email address and returns information about the person who signed up, using the Linkup API’s structured output feature.

What we’re building

Our signup radar will:
  • Take an email address as input
  • Use Linkup API to search for information about the person
  • Return structured data about the person (name, position, company, LinkedIn URL, etc.)

Prerequisites

  • A Linkup API key
  • Python or Node.js installed

Get your API key

Create a Linkup account for free to get your API key.
1

Install the SDK

2

Set Up the Client

3

Define the Structured Output Schema

The key to our signup radar is using Linkup’s structured output feature. We need to define a schema that specifies what information we want to extract.
4

Create the Signup Radar Function

5

Enhance Query Generation

Let’s improve our query to get better results:
6

Put It All Together

Here’s the complete implementation:

How it works

  1. Email analysis: the tool parses the email to extract the username and domain.
  2. Query generation: it creates a smart search query based on the email components:
    • Formats the username to handle common patterns (first.last, first_last)
    • Uses the domain as a company hint if it’s not a common email provider
  3. Structured output: uses Linkup’s structured output feature with a custom schema to ensure consistent, well-formatted results.
  4. Deep search: uses the "deep" depth for more comprehensive results.

Test examples

Try the signup radar with these email examples:

Advanced enhancements

For a production version, consider adding:
  • Other relevant information on your users you receive in the sign up form. These should be added to the prompt
  • Better manage ambiguity when multiple people could own the same email. Change the prompt and the structured output format to allow for multiple potential people
  • Error handling for invalid emails or API failures
  • Rate limiting to manage API usage
  • Async batch processing for multiple emails

Conclusion

You’ve now built a “signup radar” using the Linkup API that extracts structured information about users from just their email address. Structured output gives you consistent, well-formatted data ready to be ingested into your systems.
Need help? Email support@linkup.so, ping us on Discord, or talk to us.