In Salesforce, every field and object has both a user-facing Label and an internal API Name used in code, integrations, and API calls. The API Name for custom objects typically ends in '__c' (for example, MyObject__c) and custom fields similarly end in '__c' (for example, My_Field__c). Standard objects and standard fields use their underlying API names without the suffix. Knowing the correct API Name is essential for REST and SOAP API calls, Apex code, formulas, and data integrations.
This article explains how to find the API Name of all objects and fields in Salesforce.
Standard Objects
Read the Object Reference for Salesforce and Force.com on developer.salesforce.com. Click on the desired object to get API names for all standard field names.
Custom Fields in Salesforce Classic
Custom Fields in Lightning Experience
Note: In Lightning Experience, the API Name is found in the Fields & Relationships section of the Object Manager. In Salesforce Classic, it is found in the 'Custom Fields & Relationships' section of the object detail page.
Custom Objects in Salesforce Classic
Custom and Standard Objects in Lightning Experience
For more information about custom fields for standard or custom objects, review the "Naming Conventions for Custom Fields" section of the Developer Documentation.
000385500

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.