# Author Finder

Find the email of the author of an article URL. Reach the writers of articles in your space: PR, content partnerships, link building.

**Credits:** 1 search credit when found. Lookups that find nothing cost nothing. See [Pricing and limits](../pricing-and-limits).

## Inputs and options

Input: `url` (Article URL)

This tool has no options.

## Try one value

```sql
CALL TOMBA.core.author_finder('https://example.com/blog/how-we-scaled');
```

The call returns the result as a `VARIANT` (example values, shortened):

```json
{
    "status": "found",
    "credits": 1,
    "results": [
        {
            "EMAIL": "jane.doe@example.com",
            "FULL_NAME": "Jane Doe",
            "ARTICLE_TITLE": "How we scaled",
            "PUBLISHER_NAME": "Example"
        }
    ]
}
```

`status` is `found`, `not_found`, `invalid` or `error`; `results` holds the output columns and `data` the complete
Tomba record.

## Run it over a table

Create a small table to try it (or use one of yours, after [granting the app access](../installation#3-let-the-app-read-your-tables)):

```sql
CREATE OR REPLACE TABLE my_db.public.articles (URL STRING);
INSERT INTO my_db.public.articles VALUES
    ('https://example.com/blog/how-we-scaled');
GRANT SELECT ON TABLE my_db.public.articles TO APPLICATION TOMBA;
```

Run the tool, then read the results:

```sql
CALL TOMBA.core.find_authors('MY_DB.PUBLIC.ARTICLES', 'URL', 'ARTICLES_AUTHOR_FINDER', 100);

SELECT INPUT_URL, EMAIL, FULL_NAME, ARTICLE_TITLE, PUBLISHER_NAME, PUBLISH_DATE
  FROM TOMBA.results.ARTICLES_AUTHOR_FINDER
 WHERE lookup_status = 'found';
```

Signature: `find_authors(input_table STRING, url_column STRING, output_table STRING, max_rows INT DEFAULT 100000)`

<Callout type="tip">
    Start with a small `max_rows` (like 100) to check the match rate on your
    data, then run the whole table, in the [background](../background-runs) if
    it is large.
</Callout>

## Output columns

Each row starts with `INPUT_<name>` columns (your values, unchanged) and then has:

`EMAIL`, `SCORE`, `VERIFICATION_STATUS`, `FIRST_NAME`, `LAST_NAME`, `FULL_NAME`, `POSITION`, `DEPARTMENT`, `COMPANY`, `WEBSITE_URL`, `COUNTRY`, `LINKEDIN`, `TWITTER`, `EMAIL_TYPE`, `ACCEPT_ALL`, `PHONE_NUMBER`, `ARTICLE_TITLE`, `PUBLISHER_NAME`, `PUBLISH_DATE`, followed by the [common columns](../reference/output-columns)
(`LOOKUP_STATUS`, `CREDITS`, `DATA`, `SOURCE`, …).

## Tips

- Pass the article's own URL, not the site's home page.

## Related

- [Email Finder](./email-finder)
- [Email Verifier](./email-verifier)
