Authenticate
Get your customer API key and API base URL from the YCpedia team. Keep the key on your server, outside source control. SetYCPEDIA_API_URL to the supplied API origin, without a trailing slash. The documentation domain is not the API origin.
Authorization: Bearer YOUR_API_KEY.
Read an article
Use the slug afterlinkedin.com/in/ as the LinkedIn ID.
article and credits_charged: 1.
The article includes title, content, sources, infobox, version, and timestamps.
content is the article text with its original formatting; sources contains its citations.
A missing article returns 404 without a charge.
Generate or update
Generate an article when you need one:202 with a job_id.
To refresh an existing article, use POST /api/v1/articles/jane-doe/update with a new Idempotency-Key and no body. An update costs 100 credits.
Collect the result
ReplaceJOB_ID with the returned job ID. Poll about every 10 seconds while the status is queued or running.
status is succeeded, use article from this response. Polling and reading the job’s result are free. On failed or cancelled, stop polling; reserved credits are refunded.
See credits and retries for payment and error handling, or the endpoint reference for full response schemas.